Set waypoint name to an empty string on drag.
Opened this issue · 3 comments
vnmedeiros commented
Hi there!
is there any reason to update the waypoint name to an empty string, when end drag the point on the map?
leaflet-routing-machine/src/plan.js
Line 251 in 04e899e
Is that an expected behavior?
Thank you!
vnmedeiros commented
curtisy1 commented
Sorry for getting back to you this late @vnmedeiros
I agree with the use case in the PR you linked. I'm thinking how we could integrate both approaches so it's up to the user to either clear or keep the waypoint name. Maybe some kind of setting would be ideal?
I'll try to spin something up in the coming days or on the weekend when I find some time