hd-map
A map with a pin for each hd-map-pin inside it; pins glide when they move and the map follows them, framing all or one. Light or dark with the theme. Reduced motion jumps; e-ink is a still map in greys. Lists the places where maps can’t be drawn.
| Attribute | What it is |
|---|---|
view | fit: all pins in view; follow: centred on the follow pin.One of fit, follow. Default fit. |
follow | The device of the pin to follow (drawn in the accent). |
zoom | How close it comes, 3 to 18; fitting never zooms closer.Default 15. |
look | auto (with the theme), light, dark or streets.One of auto, light, dark, streets. Default auto. |
interactive | true: one finger scrolls the page, two fingers move or pinch-zoom the map; a mouse drag moves it. false keeps it still to the touch. The wheel always scrolls the page.Default true. |
label | Accessible label; otherwise it lists the places. |
<hd-map zoom="14"> <hd-map-pin lat="52.3731" lon="4.8922" name="Home"></hd-map-pin> <hd-map-pin lat="52.3602" lon="4.8852" name="Car" icon="device.vehicle"></hd-map-pin></hd-map>