-
Notifications
You must be signed in to change notification settings - Fork 1.3k
max zoom > 18 #509
Comments
The reason this limit is 18 is because max placement depth is 3 and maximum zoom for default mapbox tile source is 15. When doing placement, placement is done for the current zoom level plus placement depth. The placement depth is capped at 3 for highest zoom level in the SourceInfo. So increasing this value to higher than 18 without changing the placement algorithm would cause extremely sparse labels beyond 18. I would also recommend against simply changing placementDepth to higher than 3 would cause extreme slowdown in creating the SymbolBucket. |
I'd recommend upping the maximum zoom level to 23 then either auto-hiding labels beyond zoom level 18 in code or in style. |
What about max zoom Level in mapbox-gl-native for android? When i try to set zoom level >18.0 it's ignored. Thanks in advance for your answers. |
@manuelwenner It is currently hardcoded. Until we provide an API for that, you can tweak it at this variable here: https://github.com/mapbox/mapbox-gl-native/blob/master/src/mbgl/map/transform.hpp#L87 |
Thanks @tmpsantos that worked perfect for me. |
Is there an estimated time as to when an increase in max zoom level might be available? We would need a max zoom level of around 20 in my current project. Without it, it's unfortunately useless for us :( |
Not on the roadmap AFAIK, but you can change that on the code for now. |
Okey, L87 in transform.hpp is blank. So what do I need to change to get it to work? |
It's hardcoded here now: mapbox-gl-native/src/mbgl/map/transform_state.hpp Lines 76 to 77 in e63fb44
I think we should address this issue sooner, shouldn't be hard and is an often requested feature. |
Hi, |
@franckt max zoom is implemented in master and should be available in the next release |
…in Android. Clamping Min and Max zooms at Core GL for all platforms to use at runtime.
Capturing discussing with @1ec5 this afternoon where he confirmed that the 20 in |
The new code in PR #3812 adds min and max zoom controls to Core GL so that all platforms will benefit. It also updated the values in the Android annotation warnings. The new values are:
|
This was changed back in #178 but should:
The text was updated successfully, but these errors were encountered: