1. Reference
  2. Media

<pin>

A marker on a map at a latitude and longitude, in a color, with a label.

Media

This 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.

pin.ham
<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>
The snippet drawn by Hype Apps on a phone, in light mode The snippet drawn by Hype Apps on a phone, in dark mode
This snippet as Hype Apps draws it on a phone. It follows this page's light or dark theme.

Attributes

NameWhat it doesDefault
color Marker color
red, blue, green, orange, purple, black, white
red
label Tooltip text
string
lat
also latitude
Marker latitude
number
0.0
lng
also 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.

This page is also Markdown, and all of HAM is in llms.txt.