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

When drawing shapes points, lines and polygons vertex is added on mousedown+move #1301

Open
rallep opened this issue Feb 1, 2023 · 2 comments

Comments

@rallep
Copy link

rallep commented Feb 1, 2023

Hi, first of all thank you for a great project.

I am using version 2.14.1 of Geoman as an ES6 module in a React 18 project (I am not using react-leaflet, but pure leaflet). When drawing shapes like points, lines and polygons and clicking the map and dragging it, a vertex is added, which has not always been the case. Previously, on events mousedown+move a vertex would not be added, which is also the desired behaviour because sometimes when drawing you want to displace the map before adding a vertex.

Also, when drawing squares and circles it has the desired behaviour, where a vertex/marker is not added when dragging the map. Furthermore, it is not consistent when drawing points, lines and polygons, sometimes a vertex is not added.

I can't reproduce the behaviour on https://geoman.io/leaflet-geoman so I am in doubt if this is a Geoman issues, a leaflet issue or a combination between leaflet/geoman/React.

leaflet-geoma-add-vertex-on-drag.mov
@Falke-Design
Copy link
Collaborator

Can you please create a sandbox / demo where we can analyse this?

@rallep
Copy link
Author

rallep commented Feb 2, 2023

Yes sorry for the lazy approach :-) I will try to string something together a.s.a.p.

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

No branches or pull requests

2 participants