Get started

Examples

Example gallery

Each recipe runs live at the top of its own page, above the code that drew it. Copy the fence and it compiles.

Start with Render a map if nothing is installed yet. Every recipe links the guide behind it, so the longer explanation is one click away.

Put a map on the page

Show an itinerary

Build an editor

Run a whole application

A recipe is one composition. The SDK's repository also holds whole applications under examples/, and its README says what each one shows. Each of those listed here is built by a real bundler or run by node, and quoted by a package README byte for byte.

ExampleWhat it shows
examples/elements-react-mapA map, its controls and an itinerary, under a session token that rotates while the map stays mounted
examples/next-appA Next.js Server Component that prefetches an itinerary, and a Client Component that draws the map
examples/studio-nodeThe studio's tool bus from a Node process, with no bundler, no DOM and no React

Each of the listed applications is also installed outside the repository, from the install line its package's README states, then built and type-checked there. An install line that brings too little fails that check before it reaches you.