-
Notifications
You must be signed in to change notification settings - Fork 68
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
cant get setMaxOverzoomLevel
to work
#503
Comments
@farfromrefug 'Overzoom' only applies to tiles already loaded and cached. Thus is if overzoom=1 and current zoom=6 and the relevant tile is not available, SDK checks if it has zoom=5 tile cached. If it has, then this tile is displayed instead while the zoom=6 tile is being fetched. |
@mtehver ok i see so there is no way to say like stop rendering the data source if the we are 6 level over zoom ? The use case is hillshade where the rendering of high overzoom can be very ugly. Would be good to be able to say stop at overzoom 3. This is what i thought |
@farfromrefug Documentation is somewhat ambiguous here, so I can see how it caused the confusion. As the use case is quite specific, the option is to create a custom data source that returns empty tiles starting from some threshold zoom level. |
@mtehver great idea! i am on it! |
@mtehver i might need a bit of help from you on this. I started to implement this by returning |
@farfromrefug Good find regarding caching and null |
@mtehver ok i ll try removing from the cache |
I cant get this to work. I have a layer which datasource stops at zoom 7. Even if i set
setMaxOverzoomLevel(1)
(or even 0). Then at zoom (let s say) 14 it will always find the parent tile from 7.I would expect to render empty tile at zoom 14
The text was updated successfully, but these errors were encountered: