<pin>
A marker on a map at a latitude and longitude, in a color, with a label.
Aliases
Reset to canonicalThis tag has more than one name. Every spelling is the same tag, so write whichever feels natural. Pick one and every example on this page uses it.
This tag needs a map tile service, so try it on your phone.
<map lat="48.8566"
lng="2.3522"
zoom="13"
height="320"
style="rounded-xl">
<pin lat="48.8584"
lng="2.2945"
label="Eiffel Tower"/>
<pin lat="48.8606"
lng="2.3376"
label="Louvre"
color="purple"/>
</map>
Attributes
| Name | What it does | Default |
|---|---|---|
color |
Marker color red, blue, green, orange, purple, black, white |
red |
label |
Tooltip text string |
|
latalso latitude |
Marker latitude number |
0.0 |
lngalso longitude |
Marker longitude number |
0.0 |
Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.