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

Uncaught TypeError: Cannot read property '0' of undefined #652

Closed
rushikmaniar opened this issue Aug 31, 2020 · 2 comments
Closed

Uncaught TypeError: Cannot read property '0' of undefined #652

rushikmaniar opened this issue Aug 31, 2020 · 2 comments
Labels

Comments

@rushikmaniar
Copy link

got this error while change circle radius (no layers in map except circle)

steps to regenerate :
in your live demo example https://geoman.io/leaflet-geoman

1 . remove all layers using remove layers tool
2. now draw one circle using circle tool
3. choose edit layers and edit circle radius
now you will get this error in console

leaflet-geoman.min.js:1 Uncaught TypeError: Cannot read property '0' of undefined
at i._checkPrioritiySnapping (leaflet-geoman.min.js:1)
at i._handleSnapping (leaflet-geoman.min.js:1)
at i.fire (leaflet.js:5)
at i._onDrag (leaflet.js:5)
at i.fire (leaflet.js:5)
at i._updatePosition (leaflet.js:5)

@Falke-Design
Copy link
Collaborator

Thx for reporting. There is already a PR #627 and will be merged soon

@Falke-Design
Copy link
Collaborator

Fixed in Release: 2.7.0

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

No branches or pull requests

2 participants