Skip to content
PixiKit

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
NameTypeDefaultDescription
placesMapPinsPlace[]DEFAULT_PLACESThe places pinned on the map, in route order.
titlestring"Where the team works"The name in the top bar.
statsMapPinsStat[]NoneThe numbers counted up in the strip at the bottom; by default places, routes and a made-up total.
hubnumberNoneThe place all routes start from, as an index, when you control it.
defaultHubnumberNoneThe place the scene opens on as the hub when you do not control it; by default routes chain place to place.
onHubChange(index: number) => voidNoneCalled with the index when a pin is pressed to become the hub.
autoplaybooleantrueStarts when the scene scrolls into view; when off it waits for the replay button.
loopbooleantrueStarts over on its own after a pause.
speednumber1A multiplier for the pace of the whole scene.
heightnumber360The height of the scene in px.
widthnumber560The widest the scene grows, in px. It shrinks to fit a narrower parent.
replayLabelstring"Replay"What screen readers call the replay button.
classNamestringNone

Related