-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
setLayerZoomRange causing rasters to be re-requested #7865
Comments
|
@mourner The problem exists in |
Looks like killing this line removes the flicker, while preserving the method functionality both when inside the new zoom range or not: mapbox-gl-js/src/style/style.js Line 735 in ead961f
any downsides to not |
Whenever
setLayerZoomRange
is called with new min/max values on a layer containing raster tiles, all tiles are requested. Is this expected behavior? I am using mapbox-gl version0.45.0
in Chrome 71.0.3578.98.Below is the code used to create the layer.
Then if
mbMap.setLayerZoomRange(mbLayerId, 0, 15);
is called, all tiles are re-fetched. Why are the tiles re-fetched? The map is at zoom level 3 so the change should have no effect on the current tiles.The text was updated successfully, but these errors were encountered: