Urban-Analytics-Technology-Platform / web-app-template

https://urban-analytics-technology-platform.github.io/web-app-template/
2 stars 0 forks source link

Make OSM import easy #1

Open dabreegster opened 5 months ago

dabreegster commented 5 months ago

In some other projects, I have a widget to import the map's current view (if zoomed in enough) or draw a freehand polygon boundary, and grab the raw OSM XML from Overpass, passing to a callback. Alongside predefined study areas, this is likely a useful thing to share. I'll probably make a standalone NPM package for it at some point, and just include a demo here.

dabreegster commented 1 month ago

https://github.com/a-b-street/svelte-utils/blob/main/src/lib/OverpassSelector.svelte, depending on https://github.com/dabreegster/maplibre-draw-polygon, on the frontend is a start to this