leaflet-routing-machine icon indicating copy to clipboard operation
leaflet-routing-machine copied to clipboard

Fix about name of waypoints

Open renanr0 opened this issue 5 years ago • 2 comments

Ensure assign name of waypoint with empty string only if the original name has no value.

renanr0 avatar Oct 10 '20 12:10 renanr0

After dragging the waypoint, the name should be cleared since it is no longer the same location. It's confusing if the old address is displayed even after dragging the waypoint.

Can you explain why you need this change?

perliedman avatar Oct 28 '20 07:10 perliedman

Sure, in some cases of use, it's necessary to use the name of waypoint instead of the address. For example, I name some waypoints with custom names (home, work ...), and when I drag these points I lost the name. I understand if the library prefers not to accept this change, I'm just sharing a different use case.

renanr0 avatar Oct 28 '20 12:10 renanr0