dabreegster / route_snapper

Draw routes in MapLibre snapped to a street network using client-side routing
https://dabreegster.github.io/route_snapper
Apache License 2.0
147 stars 9 forks source link

Edit an existing route #2

Open dabreegster opened 1 year ago

dabreegster commented 1 year ago

aka, feed in a LineString to the plugin. Unclear how to figure out which waypoints have been finalized and which are just intermediate points. Also not sure how to recover the route from the geometry -- HMM snapping?

Alternatively, maybe when we finalize, we encode enough state to recreate the plugin later

dabreegster commented 1 year ago

Keeping this issue open, until we address a limitation noted in the PR:

If a route was drawn with an option, like avoidDoublingBack, when the route is restored, it'll be subject to the new setting and may change. I'll leave it as future work to plumb through and retain that option too.