mapbox-gl-js version: 0.52.0
browser: Google Chrome 71.0.3578.98
Upgrade from 0.51.0 to 0.52.0
You can compare results on this two codepens :
0.51.0 - https://codepen.io/pakb/pen/VgErjv
0.52.0 - https://codepen.io/pakb/pen/jdeayx
As you can see south of the lake, the label Thonon-les-Bains is now hidden under our data in 0.52.0.
I don't see in the changelog anything that would hint me to what change has produced this.
Are we doing something wrong with how we describe our style or is it a bug?
(style URL : https://vectortiles.geo.admin.ch/gl-styles/ch.swisstopo.leichte-basiskarte.vt/v006/style.json)
Label not hidden under data
Label hidden under data
@pakb thanks for the report! this seems relevant to https://github.com/mapbox/mapbox-gl-js/issues/7908, which actually prevented symbol layers under opaque fill layers to show through. Before the fix, the symbols would appear above the fill, regardless of position in the layer stack.
It's possible that your map style exploited this earlier antipattern -- can you verify that the symbol layer for your label is above the fill layer for the lake?
I think @peterqliu meant to reference https://github.com/mapbox/mapbox-gl-js/pull/7612
Ok, that鈥檚 the thing.
We鈥檝e put everything OSM before our layers. Then it鈥檚 our data which is not correctly set and not a bug, I close this issue.
Thanks for pointing me out