ReferenceComponents

map

Places on a map: stores nearby, a route, where the courier is.

Where things are. map puts up to ten pins on a map — the stores near the user, the stops of a route, where the courier is now — with a short label each.

On the page the map is a still picture of the pins; a tap opens it full screen, where it pans and zooms, and offers Open in Maps. The SDKs draw it with MapLibre over open map data from OpenStreetMap, served from the EU; no map provider sees anything but the tiles it is asked for.

Re-rendered in the browser from the SDK’s own scales. Not a screenshot.

What the server checks

Every pin's coordinates have to be exactly what one of your actions returned. The model never gives a map image or a tile address.

Props

Every block also carries type and a required fallback_text of 1 to 300 characters.

PropTypeRequiredConstraints
pinsarrayYes1 to 10 entries.
pins[].latnumberYes-90 to 90.
pins[].lngnumberYes-180 to 180.
pins[].labelstringYes1 to 60 characters.
pins[].subtitlestringNoUp to 80 characters.
captionstringNoUp to 120 characters.