I would like to change the default opacity of the polygons that I’m plotting on a map. I tried to add fill-opacity
to the properties, but that doesn’t seem the have any effect. Is there another way to do this?
This is an example of a feature in the geojson. The property fill
does have an effect, but fill-opacity
does not.
{
'geometry': {'coordinates': coordinates, 'type': polygon_type},
'properties': {
'description': 'example description',
'fill': '#000000',
'fill-opacity': 0.9,
},
'type': 'Feature',
}