Mapbox-gl-native: Raster layers with fixed extents appear on all zooms

Created on 27 Jul 2016  路  5Comments  路  Source: mapbox/mapbox-gl-native

I have a map style that adds a raster layer between z14 - z22

372e822a-5344-11e6-921e-184b4b8284de

But the output from our Static API and on native displays the raster layer at all zoom levels.

Core bug

Most helpful comment

out

All 5 comments

@tristen can you give us the link to the original style or style "testcase reduction" that we could use to reproduce the bug?

Sure thing! Here's a link to a style that uses Streets + Satellite. I have set the extents of the satellite raster to z10 - z22: https://api.mapbox.com/styles/v1/tristen/cir5cblqw0018bom4rraa321m.html?fresh=true&title=true&access_token=pk.eyJ1IjoidHJpc3RlbiIsImEiOiJiUzBYOEJzIn0.VyXs9qNWgTfABLzSI3YcrQ#3.68/41.81/-85.13

You can see it works fine in gl-js but as raster fallback it looks like this:
https://api.mapbox.com/styles/v1/tristen/cir5cblqw0018bom4rraa321m.html?fallback=true&title=true&access_token=pk.eyJ1IjoidHJpc3RlbiIsImEiOiJiUzBYOEJzIn0.VyXs9qNWgTfABLzSI3YcrQ#3.68/41.81/-85.13

And here's a screenshot of it on mobile:

img_0476

On it.

Have a fix, working on tests cases to validate the fix.

out

Was this page helpful?
0 / 5 - 0 ratings