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

No support for nested polygons (aka multipolygons) #8

Open
asavartsov opened this issue Nov 22, 2016 · 1 comment
Open

No support for nested polygons (aka multipolygons) #8

asavartsov opened this issue Nov 22, 2016 · 1 comment

Comments

@asavartsov
Copy link

asavartsov commented Nov 22, 2016

It would be great to support distances and area on multipolygons and multipolylines, they have just another array depth in latlng arrays (http://leafletjs.com/reference-1.0.0.html#polygon).

I did a quick fix for my project but you probably could do better.

https://github.com/asavartsov/leaflet-measure-path/blob/master/leaflet-measure-path.js#L263
https://github.com/asavartsov/leaflet-measure-path/blob/master/leaflet-measure-path.js#L316

@ghost
Copy link

ghost commented Nov 16, 2020

I agree with this one. It was my solution for multipolygons!

Thank you so much for sharing!

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