zeldamods/objmap

Fix Export Circle of Feature Collection

Closed this issue · 0 comments

When I export a FeatureCollection containing a circle it gets exported as a Point type geometry, losing the radius data as such:

[...]
      {
        "type": "Feature",
        "properties": {
            "title": "Marker",
            "text": "",
            "pathLength": 0,
            "length": 0
        },
        "geometry": {
            "type": "Point",
            "coordinates": [
                -2656,
                656.443418
            ]
        },
        "style": {}
    },
    {
        "type": "Feature",
        "properties": {
            "title": "circle",
            "text": "",
            "pathLength": 0,
            "length": 0
        },
        "geometry": {
            "type": "Point",
            "coordinates": [
                -2856,
                556.583095
            ]
        },
        "style": {
            "color": "#3388ff"
        }
    }
[...]

ps.: this is some leaflet shenanigans and and there is an open issue about this (Leaflet/Leaflet.draw#390) but there are fixes that could be implemented.