I'm new to Mapbox
and I am trying to remove any color in my polygon fill using the Mapbox API. Note: I don't want to set opacity/transparency. I simply want there to be no color. It keeps defaulting to "#000000"
, even if I comment out the 'fill-color' property. Is there any way to achieve this?
map.addLayer({
'id': 'us-states',
'type': 'fill',
'source': 'us-states',
'layout': {},
'paint': {
//'fill-color': '#333',
'fill-opacity': 0.8,
'fill-outline-color': '#000'
}
})