Skip to content

Doen't seem to support GeometryCollection #30

@karlwettin

Description

@karlwettin

Leaflet-pip does not seem to find polygons inside of a GeometryCollection. If I get it right then not only mush layers be iterated, if the layer contains a GeometryCollection then all items within that must also be subjected to isPoly(l), but that probably require a bit of refactoring to process GeoJSON objects rather than layers.

So currently a Polygon as the one the below will never be found.
{ "type": "FeatureCollection", "features": [{ "type": "Feature", "properties": { "class": "LYRESTAD" }, "geometry": { "type": "GeometryCollection", "geometries": [{ "type": "Polygon", "coordinates": [ [ [14.00881897363853, 58.759130043177166], [13.928815204319006, 58.93581644468062], [14.120750873038237, 58.8843341034047], [14.121862332723687, 58.88126014491872], [14.174039271588722, 58.78656397216331], [14.145110948923927, 58.767173887639935], [14.12508839353722, 58.758541330342304], [14.11335950201629, 58.76108407639584], [14.06140521182085, 58.77226018822536], [14.00881897363853, 58.759130043177166] ] ] }] } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions