Skip to content
PixiKit

Route Track

A delivery being tracked on a drawn map: the route draws itself, a vehicle drives it and the steps complete as it passes them, the arrival minutes count down and the pin bounces on arrival. Visitors can pick a step to move the vehicle there or drag the slider along the route.

pixikit.com/docs/blocks/illustrations/route-track

Customize

Minutes24min
Default step0
Autoplay
Loop
Speed1.0x
Height360px
Width560px

Props

15
NameTypeDefaultDescription
stepsRouteTrackStep[]DEFAULT_STEPSThe steps of the delivery, in order.
titlestring"Order 2041"The name in the top bar.
arrivalLabelstring"Arrives in {n} min"The arrival line; {n} is the minutes left.
arrivedLabelstring"Delivered"The line shown once the last step is done.
minutesnumber24The minutes left at the start of the route.
scrubLabelstring"Position on the route"What screen readers call the position slider.
defaultStepnumber0The index of the step the vehicle starts at.
onStepChange(index: number) => voidNoneCalled when the visitor picks a step or drags the slider across one.
autoplaybooleantrueStarts when the scene scrolls into view; when off it waits for a click on replay.
loopbooleantruePlays again from the start after the hold.
speednumber1Playback speed multiplier.
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