jumpinjackie / vscode-map-preview

VSCode map preview extension
MIT License
85 stars 14 forks source link

GeoJSON GeometryCollection not working / missing #34

Closed meschg closed 5 years ago

meschg commented 5 years ago

Hello,

in my tests in looks like the GeometryCollection with the example is not rendering at all. The problem also appears in combination features collection

Best wishes Gerhard

Specification: https://tools.ietf.org/html/rfc7946#appendix-A.7

Minimal JSON Test code:

{
    "type": "GeometryCollection",
    "geometries": [
        {
            "type": "LineString",
            "coordinates": [
                [
                    101.0,
                    0.0
                ],
                [
                    102.0,
                    10.0
                ]
            ]
        }
    ]
}

Expected Result (Without Colleciton): 2019-03-16 13_14_05-Map Preview_ polygon json - Worldtrix-Alpha - Visual Studio Code

Geometrie & Features collection test file: geometrie_feature_collection.txt

meschg commented 5 years ago

Thanks for the fast fix.

ben-src commented 3 years ago

I'm still getting this problem with it not showing a FeatureCollection containing a GeometryCollection