Mapbox-gl-js: Labels persist over a polygon layer at full opacity

Created on 26 Jul 2016  路  5Comments  路  Source: mapbox/mapbox-gl-js

See http://bl.ocks.org/tristen/1f708402d46823051126a65c1ee30776 which reproduces the issue. I have a GeoJSON object that encompasses the entire earth but if the layer style is at full opacity, not all layers are covered.

bug

All 5 comments

Interestingly, if you set a value other than 1 for fill-opacity labels are correctly under the layer.

Possibly this could be this issue https://github.com/mapbox/mapbox-gl-js/issues/2074 ?

Interestingly, if you set a value other than 1 for fill-opacity labels are correctly under the layer.

Thank you for noticing this! I've been struggling with this issue for a while, but only after reading your comment now I realise I can just use opacity 0.99 as a workaround.

Oof. I'll take a look and see if this bug was introduced recently or if it likely related to the depth-testingissue #2074

Was this page helpful?
0 / 5 - 0 ratings