datadesk / web-map-maker

Use Natural Earth and OpenStreetMap data to export an image or a vector file.
http://datadesk.github.io/web-map-maker/
MIT License
94 stars 28 forks source link

geojson styling? #120

Closed tbone closed 7 years ago

tbone commented 7 years ago

If a geojson has style attributes (fill, outline, opacity, etc.) in the geojson itself, possible for map-maker to read those? This question via Chris. Example of SVG/CSS style in geojson:

{ 
    "type": "Feature",
    "geometry": {
    "type": "Polygon",
    "coordinates": [[
        [-180.0, 10.0], [20.0, 90.0], [180.0, -5.0], [-30.0, -90.0]
        ]]
    }
    "style":{
        //all SVG styles allowed
        "fill":"red",
        "stroke-width":"3",
        "fill-opacity":0.6
    }
    "className":{
        "baseVal":"A class name"
    }
}
jschleuss commented 7 years ago

Wrapped into https://github.com/datadesk/web-map-maker/issues/72