Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layerPointToLatLng() is not used on Edit Mode with Markers #1030

Open
2 tasks done
cavasinf opened this issue Nov 3, 2021 · 0 comments
Open
2 tasks done

layerPointToLatLng() is not used on Edit Mode with Markers #1030

cavasinf opened this issue Nov 3, 2021 · 0 comments

Comments

@cavasinf
Copy link

cavasinf commented Nov 3, 2021

How to reproduce

  • Leaflet version I'm using: ^1.7.1
  • Leaflet Draw version I'm using: ^1.0.4
  • Browser (with version) I'm using: Firefox 93.0 (64 bits)
  • OS/Platform (with version) I'm using: Windows 10 Pro

  1. Override function layerPointToLatLng from L.Map.include...
  2. Create a Marker and place it (it will follow layerPointToLatLng())
  3. Enter in Edit mode
  4. Now the marker doesn't follow the layerPointToLatLng function

ErrorEditControlsLeaflet

What behaviour I'm expecting and which behaviour I'm seeing

Like for "shape drawing",
markers on edit mode should use the function layerPointToLatLng.

Minimal example reproducing the issue

  • this example is as simple as possible
  • this example does not rely on any third party code

Here is a JsFiddle demo : https://jsfiddle.net/florian_allsoftware/ghnkm46q/10/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant