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

fix #42 import Multipart-Geometry #66

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Kanahiro
Copy link
Contributor

@Kanahiro Kanahiro commented Apr 21, 2020

fix #42

The issue is caused by GeoJSON structure deference between Multi-Part and not.
The two types of GeoJSON's coordinates is not same structure as following.

multipart: [ [ [lon, lat], [lon, lat], [lon, lat]...], [ [lon, lat], [lon, lat], [lon, lat]...]... ]
singlepart: [ [lon, lat], [lon, lat], [lon, lat]... ]

So, I've fixed to treat two types in same way by wrapping singlepart coordinates with [].

@quorth0n
Copy link

quorth0n commented Jan 13, 2022

In case anybody else needs this fix I merged this with latest upstream and published it to a new npm package while we wait for a merge https://www.npmjs.com/package/leaflet.glify.multipoly

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

Successfully merging this pull request may close these issues.

Multi-part polygons are never drawn.
2 participants