Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Raster layers with fixed extents appear on all zooms #5811

Closed
tristen opened this issue Jul 27, 2016 · 5 comments
Closed

Raster layers with fixed extents appear on all zooms #5811

tristen opened this issue Jul 27, 2016 · 5 comments
Assignees
Labels
bug Core The cross-platform C++ core, aka mbgl

Comments

@tristen
Copy link
Member

tristen commented Jul 27, 2016

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.

@tristen tristen added the bug label Jul 27, 2016
@friedbunny friedbunny added the Core The cross-platform C++ core, aka mbgl label Jul 27, 2016
@tmpsantos
Copy link
Contributor

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

@tristen
Copy link
Member Author

tristen commented Jul 27, 2016

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

@tmpsantos tmpsantos self-assigned this Jul 27, 2016
@tmpsantos
Copy link
Contributor

On it.

@tmpsantos
Copy link
Contributor

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

@tmpsantos
Copy link
Contributor

out

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

No branches or pull requests

3 participants