You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love the idea with leaflet-plotter! My use case would be to edit waypoints for cruise planning when doing research cruises. I'm planning to read initial positions and write edits via AJAX.
The problem is that existing waypoints already has meta data attached to them. It would be fantastic to be able to keep an ID to each existing waypoint when initiating leaflet-plotter, so that it's possible to identify them at the end.
The text was updated successfully, but these errors were encountered:
the internal array held of points can be accessed using plottedPolyline.getLatLngs();, can you not map these to your metadata or am I missing something?
Perhaps adding and removing events should trigger custom events, which would allow you to listen to leaflet.plotter.added/leaflet.plotter.removed and then you could send the points 0-indexed key to your ajax endpoint and make the relevant addition/deletion from your datastore.
Hi!
I love the idea with leaflet-plotter! My use case would be to edit waypoints for cruise planning when doing research cruises. I'm planning to read initial positions and write edits via AJAX.
The problem is that existing waypoints already has meta data attached to them. It would be fantastic to be able to keep an ID to each existing waypoint when initiating leaflet-plotter, so that it's possible to identify them at the end.
The text was updated successfully, but these errors were encountered: