This directory contains web apps for interactively exploring and using osm2streets. The current deployed version is at https://a-b-street.github.io/osm2streets/. The apps include:
- Street Explorer: import OSM data from Overpass or test cases, visualize and debug the output
- Lane editor: modify OSM way tags and visualize the results, to make editing lane tags easier
To run locally you'll need: npm and wasm-pack.
npm install
to install dependenciesnpm run wasm
to rebuild theosm2streets-js
Rust library- or
npm run wasm-release
to compile more slowly, but run faster in the browser
- or
npm run dev
to work locally- If you're modifying the Rust code, a handy command is
npm run wasm && npm run dev
- If you're modifying the Rust code, a handy command is
npm run fmt
to auto-format codenpm run check
to see TypeScript errors
The tech stack is:
- Vite as the build tool
- Svelte as the UI framework
- MapLibre GL as the map
The code is organized as a common library and apps built on top:
src/osm2streets-svelte
: a common library (eventually on NPM)src/street-explorer
andsrc/lane-editor
: two end-user apps
To avoid NPM headaches, everything is one NPM package (and not yet published).