incorrect layer rendering when the map is tilted
before 0.12.3, the layer was rendered correctly as below

but in both 0.12.3 and 0.12.4, the layer was not rendered correctly when the map is tilted

thanks for reporting the bug @ZhenanH
Can you share the example style that this issue can be reproduce with?
What browser are you using?
What is the value for Depth / Stencil Bits listed at https://www.browserleaks.com/webgl? (open the page in the same browser you see the bug in)
I am using Chrome Version 47.0.2526.111 (64-bit) Depth / Stencil Bits: [24, 8]
Here is the example style:
var simple = {
"version": 8,
"sources": {
"osm": {
"type": "vector",
"tiles": ["http://152.144.97.202:3000/na/{z}/{x}/{y}.mvt"]
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "lightgray"
}
}, {
"id": "water",
"type": "fill",
"source": "osm",
"source-layer": "water",
"filter": ["==", "$type", "Polygon"],
"paint": {
"fill-color": "#3887be"
}
},
{
"id": "places",
"type": "fill",
"source": "osm",
"source-layer": "places",
//"filter": ["==", "$type", "Point"],
"paint": {
"fill-color": "black"
}
},
{
"id": "city-label",
"source": "osm",
"source-layer": "places",
"min-zoom": 10,
"max-zoom": 14,
"type": "symbol",
"layout": {
"text-field": "{name}",
"text-max-width": 10,
"text-letter-spacing": 0.1,
},
"paint": {
"text-color": "black",
"text-halo-color": "rgba(255,255,255,0.5)"
}
}
]};
var map = new mapboxgl.Map({
container: 'map',
style: simple,
center: [-73.983807,40.749540], // starting position
zoom: 12,// starting zoom
minZoom:3
});
map.addLayer({
"interactive":true,
"id":id,
"type":"fill",
"source":"osm",
"source-layer":id,
"paint": {
"fill-color": "rgba(255, 255, 0, 0.5)",
"fill-outline-color":"rgba(145, 145, 0, 0.8)"
}
});
Maybe related to #1952
@ZhenanH I'm unable to connect to the source in your example. When I substituted the source with another one I couldn't reproduce the problem.
If you have another computer, can you see if you can reproduce the error there? Could you paste the full contents of https://www.browserleaks.com/webgl in a gist?
@ansis here is the gist
You can also use this source: "http://vector.mapzen.com/osm/all/{z}/{x}/{y}.mvt?api_key=vector-tiles-LM25tq4" from Mapzen

I have tested on another machine, and reproduced the same result. The layer example here is like "layers":[ { "interactive":true, "id":"buildings_tall0", "type":"fill", "source":"osm", "source-layer":"buildings", "filter": [">=", "height", 200], "paint": { "fill-color": "rgba(0, 125, 250, 1)" } }, { "interactive":true, "id":"buildings_tall1", "type":"fill", "source":"osm", "source-layer":"buildings", "filter": [">=", "height", 150], "paint": { "fill-color": "rgba(0, 125, 250, 0.8)" } }, { "interactive":true, "id":"buildings_tall2", "type":"fill", "source":"osm", "source-layer":"buildings", "filter": [">=", "height", 50], "paint": { "fill-color": "rgba(0, 125, 250, 0.6)" } }, { "interactive":true, "id":"buildings_tall3", "type":"fill", "source":"osm", "source-layer":"buildings", "filter": [">=", "height", 30], "paint": { "fill-color": "rgba(0, 125, 250, 0.4)" } }, { "interactive":true, "id":"buildings_tall4", "type":"fill", "source":"osm", "source-layer":"buildings", "filter": [">=", "height", 20], "paint": { "fill-color": "rgba(0, 125, 250, 0.3)" } }, { "interactive":true, "id":"buildings_tall5", "type":"fill", "source":"osm", "source-layer":"buildings", "filter": [">=", "height", 10], "paint": { "fill-color": "rgba(0, 125, 250, 0.2)" } }, { "interactive":true, "id":"buildings_tall2", "type":"fill", "source":"osm", "source-layer":"buildings", "filter": [">=", "height", 0], "paint": { "fill-color": "rgba(0, 125, 250, 0.1)" } }]
This was fixed by https://github.com/mapbox/mapbox-gl-js/pull/2319 and released in v0.16.0