# <pin>

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

Category: Media. Also written `<marker>`.

This tag needs a map tile service, so try it on your phone.

```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>
```

How Hype Apps draws it on a phone: [light](https://hypeapps.dev/img/tags/pin-light.webp), [dark](https://hypeapps.dev/img/tags/pin-dark.webp).

## Attributes

| Name | What it does | Default |
|---|---|---|
| `color` | Marker color (red, blue, green, orange, purple, black, white) | `red` |
| `label` | Tooltip text |  |
| `lat` (also `latitude`) | Marker latitude | `0.0` |
| `lng` (also `longitude`) | Marker longitude | `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.

## Related tags

- [`<map>`](https://hypeapps.dev/docs/reference/map.md): An OpenStreetMap map you can pan and zoom, centered on a place, with pins on it.
- [`<audio>`](https://hypeapps.dev/docs/reference/audio.md): A compact audio player bar with play, a progress track and the track's title and artist.
- [`<camera>`](https://hypeapps.dev/docs/reference/camera.md): A live camera viewfinder with a shutter; the photo's path goes into a variable.
- [`<canvas>`](https://hypeapps.dev/docs/reference/canvas.md): A drawing surface for finger or stylus, with a pen, eraser and color toolbar; it saves as a PNG.
- [`<file-picker>`](https://hypeapps.dev/docs/reference/file-picker.md): Opens the device's photo, video or file picker (or the camera) and puts the chosen file in a variable.
- [`<img>`](https://hypeapps.dev/docs/reference/img.md): Shows a picture from a URL or the app's files, sized and cropped by its style.
- [`<layer>`](https://hypeapps.dev/docs/reference/layer.md): Declares one layer of a drawing surface: a locked picture to trace over, and a layer to paint on.
- [`<lottie>`](https://hypeapps.dev/docs/reference/lottie.md): Plays a Lottie vector animation from a JSON file; taps and media commands control it.

All tags: https://hypeapps.dev/docs/reference.md · The full reference: https://hypeapps.dev/llms.txt
