-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image layer disappears while zooming #3010
Comments
This is a regression from #2667. @anandthakker, can you please take a look? |
Took an initial look. The problem was introduced because of the inversion of ImageSource (and VideoSource) both work by yielding a single valid tile, using that to hold the image/video data. This was true before #2667 as well. However, when inverting the SourceCache/Source dependency, I moved the responsibility for listing the currently-visible tile coordinates ( What's happening now is that the SourceCache is deciding which tiles are renderable and asking the ImageSource for them. Because some (or even most) of the image is currently getting rendered outside of the (non-clipped) tile, when the map is zoomed in, the single tile responsible for holding the image may end up outside of the view, so that SourceCache no longer includes it in the list of renderable tiles. Possible ways to solve:
@jfirebaugh @lucaswoj thoughts? |
I think |
I certainly agree in principle / in the long run, but it does seem like this would require some pretty invasive changes in painter / rendering code. Admittedly, I'm very unfamiliar with that part of the codebase, so perhaps this is just my ignorance talking. |
I captured some thoughts about refactoring per @jfirebaugh's comment above in #3186 |
mapbox-gl-js version: v0.22.0
Steps to Trigger Behavior
Expected Behavior
the raster overlay is visibile at all zoom levels
Actual Behavior
the raster overlay disappears at certain zoom levels
v.0.21.0 works as expected.
The text was updated successfully, but these errors were encountered: