Skip to content
Elements / Data

pin

inside map

A labelled point on a Canvas map. The optional detail is shown in a multiline hover tooltip.

Spec · edit me

No problems. The parser accepted every line.

Result · try itOpen in playground
Tweak the props
lat
33.4484
lon
-112.074
tone
size
9

Props

"text"textThe place name shown next to the pin.required
latnumberLatitude in degrees (-90 to 90).required
lonnumberLongitude in degrees (-180 to 180).required
detailstringTooltip details; separate lines with |. Supports interpolated dataset expressions.—
toneink · accent · good · warn · bad · mutedTheme color: ink, accent, good, warn, bad or muted.ink
sizenumberMarker radius in CSS pixels, clamped to 2..18. Supports expressions.5
ifconditionShow only when this expression is true, e.g. if=done or if={count>0}. Every element takes it.—
tipstringA short explanation shown on hover, keyboard focus or a tap, e.g. tip="Orders not yet shipped": for a term or a number some people won't know, instead of more words on screen. It makes the element a Tab stop if it isn't one. Every element takes it.—

Only inside: map

SayShape v0.1 is an early prototype under the MIT License. Status · GitHub