I'm searching the way to adjust the opacity of the mapbox map. In the following example, layers[0]
refers to the background layer.
mapboxMap.style!!.layers[0]?.setProperties(rasterOpacity(0.3f))
Applying this code has no effect. What is wrong ?
I'm searching the way to adjust the opacity of the mapbox map. In the following example, layers[0]
refers to the background layer.
mapboxMap.style!!.layers[0]?.setProperties(rasterOpacity(0.3f))
Applying this code has no effect. What is wrong ?
style.getLayer("layer_name").setProperties(
rasterOpacity(0.3)
)