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

Error _transformPoints when dragging a MultiPolygon geojson layer #36

Open
Dawied opened this issue Feb 11, 2018 · 2 comments
Open

Error _transformPoints when dragging a MultiPolygon geojson layer #36

Dawied opened this issue Feb 11, 2018 · 2 comments

Comments

@Dawied
Copy link

Dawied commented Feb 11, 2018

noordbrabant.zip
When I drag a geojson layer with a MultiPolygon in it, the _transformPoints function in L.Path-Drag is causing an error. At line 322 where it processes rings it wants to get a latlng:

latlng = latlngs[i][j];

But this is in fact an array of latlngs and not a single latlng. I have enclosed an geojson file that causes an error.

Maybe MultiPolygons are not supported?

@destus90
Copy link

@Dawied Have you resolved this issue? The author said that it should work without any problems, but in fact when dragging a multipolygon, the error will be appeared in the browser`s console.

@Dawied
Copy link
Author

Dawied commented Apr 10, 2019

@destus90 I didn't solve this. I ended up using another drag plugin: https://github.com/Leaflet/Path.Drag.js

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

2 participants