question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: `move` event for layers after setLatLngs()

See original GitHub issue

As 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: image

For Reference: this was raised as a bug here. To resolve this I’d an event to listen to.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
codeofsumitcommented, Jul 3, 2018

@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

0reactions
cherniavskiicommented, Jul 3, 2018

Closing in favour of #2235

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found