YOUR PROJECT
Your map, routed on this device.
This is the demo app you can download below: hosted map tiles, a routing engine running in your browser, alternatives and turn-by-turn directions. Click the map to set a start and a destination, or drag the markers.
Loading your project…
FULL DEMO APP
Everything above, ready to run
- Car, bike and walk modes with alternative routes
- Turn-by-turn sidebar; click a step to fly to it
- Draggable start and destination markers
- Your project ID already filled in
MINIMAL STARTER
One map, one route, 60 lines
- The smallest working setup to copy into an existing app
- Vite + MapLibre, same hosted map and routing
- The full
main.jsis shown below - Your project ID already filled in
Both run with npm install then npm run dev, at http://localhost:5173. Use npm run build to deploy.
Before you publish: add your app’s website address to your project. Your project ID is visible in your app’s code; without the restriction, any other website can use it and spend your monthly allowance.
Using a coding agent?
Give it routewasm.dev/llms.txt and your project ID, then ask it to add a map and a first route to your app.
Measure before you ship
The first route downloads the engine and routing tiles; repeats reuse the device cache. Reload and route again to see it. Performance checklist
Offline areas
Routing tiles persist on the device automatically. Downloading a complete map area for offline use is on the roadmap. What to build