Map Pins
A dotted world map drawn from a coarse grid: pins drop one by one, routes arc between them with a dot travelling along, and a strip of numbers counts up. Press a pin to make it the hub.
pixikit.com/docs/blocks/illustrations/map-pins
Customize
Autoplay
Loop
Speed1.0
Height360px
Width560px
Props
13| Name | Type | Default | Description |
|---|---|---|---|
places | MapPinsPlace[] | DEFAULT_PLACES | The places pinned on the map, in route order. |
title | string | "Where the team works" | The name in the top bar. |
stats | MapPinsStat[] | None | The numbers counted up in the strip at the bottom; by default places, routes and a made-up total. |
hub | number | None | The place all routes start from, as an index, when you control it. |
defaultHub | number | None | The place the scene opens on as the hub when you do not control it; by default routes chain place to place. |
onHubChange | (index: number) => void | None | Called with the index when a pin is pressed to become the hub. |
autoplay | boolean | true | Starts when the scene scrolls into view; when off it waits for the replay button. |
loop | boolean | true | Starts over on its own after a pause. |
speed | number | 1 | A multiplier for the pace of the whole scene. |
height | number | 360 | The height of the scene in px. |
width | number | 560 | The widest the scene grows, in px. It shrinks to fit a narrower parent. |
replayLabel | string | "Replay" | What screen readers call the replay button. |
className | string | None |