mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Markers are visible when behind terrain

Open smitja opened this issue 1 year ago • 1 comments

When 3D (mapbox-raster-dem) terrain is applied and map is pitched, markers behind terrain are dimmed but visible.

Is this intended behaviour? Is it possible to hide these markers?

image

smitja avatar Jul 31 '22 11:07 smitja

Not at the moment — looks like the 0.2 opacity value for occluded markers is currently hardcoded:

https://github.com/mapbox/mapbox-gl-js/blob/745a210598ce407aad689a504ca7170f8da39795/src/ui/marker.js#L443-L446

We might need to introduce an option for this.

mourner avatar Aug 09 '22 16:08 mourner