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

Disconnected waypoints break everything #11

Closed dabreegster closed 1 year ago

dabreegster commented 1 year ago

If you click one point that's not reachable from the next, the entire plugin breaks, because we insist on every step of the path existing

dabreegster commented 1 year ago

Find a repro first. The E&C area in the demo here doesn't have any case. I don't remember where I've hit it before. Could always force it by clipping out a necessary bridge

dabreegster commented 1 year ago

https://user-images.githubusercontent.com/1664407/211164796-b1f7152a-ca67-4716-895b-534b3012b879.mp4

This feels natural to me, and it's very obvious when there's no path. If you drag that disconnected point to somewhere on the network, it self-repairs, as shown