Feature Request: `move` event for layers after setLatLngs()
See original GitHub issueAs a plugin author I need a way to react to layer changes triggered via setLatLngs()
. The Marker class has a move
event for this. While I don’t necessarily need a move
event for layers, I would like some event that is triggered when setLatLngs()
is used (move
or anything else that makes sense).
Example usecase:
My plugin puts markers on a layers vertexes. If the user manually updates the layer coordinates via setLatLngs()
I can’t reposition the markers as there is no event to catch this.
The result is this:
For Reference: this was raised as a bug here. To resolve this I’d an event to listen to.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Documentation - a JavaScript library for interactive maps
move, Event, Fired when the marker is moved via setLatLng or by dragging. ... that most tile servers require attribution, which you can...
Read more >Triggering click event on Leaflet map? - GIS Stack Exchange
hasLayer(my requests layer) so the user is not always seeing the popup when ... function onEachFeature(feature, layer) { var coords = new ...
Read more >Solved: edits-complete event of feature layer is not firin...
Solved: ArcGIS JavaScript API issue, I am developing a web editing application and if I move any feature, edits-complete event of feature ......
Read more >Leaflet: click event not always fired when a popup is used
I have a layer with onclick handler:
Read more >It's hard to move objects that are below other objects
So I can move a layer with ctrl hold by clicking the far outer region of layer just like in photoshop. Can we...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cherniavskii I would love to - never messed with the leaflet codebase so it might take a bit though 🤞 Hope to find time this week to start
Closing in favour of #2235