You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
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.
You can verify this by placing a breakpoint in Collision::Collision and stepping through to verify how placementDepth is modified.
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.
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 :(
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.
Capturing discussing with @1ec5 this afternoon where he confirmed that the 20 in transform_state.hpp is simply a default value and that if the bindings set a zoom higher (example 23) then Core GL will use and go to 23.
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:
Activity
refs #509: tickets good, inline TODO bad
mb12 commentedon Oct 30, 2014
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.
You can verify this by placing a breakpoint in Collision::Collision and stepping through to verify how placementDepth is modified.
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.
donpark commentedon Nov 22, 2014
I'd recommend upping the maximum zoom level to 23 then either auto-hiding labels beyond zoom level 18 in code or in style.
manuelwenner commentedon Jun 18, 2015
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.
tmpsantos commentedon Jun 18, 2015
@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
manuelwenner commentedon Jun 18, 2015
Thanks @tmpsantos that worked perfect for me.
petaren commentedon Oct 14, 2015
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 :(
tmpsantos commentedon Oct 14, 2015
Not on the roadmap AFAIK, but you can change that on the code for now.
petaren commentedon Oct 15, 2015
Okey, L87 in transform.hpp is blank. So what do I need to change to get it to work?
mourner commentedon Oct 15, 2015
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.
franckt commentedon Jan 21, 2016
Hi,
Any news about providing an api to set max zoom ?
7 remaining items
[android][core] #509 - Setting Min and Max Zooms warning annotations …
bleege commentedon Feb 4, 2016
Capturing discussing with @1ec5 this afternoon where he confirmed that the 20 in
transform_state.hppis simply a default value and that if the bindings set a zoom higher (example 23) then Core GL will use and go to 23.[core] #509 - Adding min / max checks to parameters and refactoring t…
[core] #509 - Creating and using MIN_ZOOM and MAX_ZOOM constants
bleege commentedon Feb 4, 2016
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:
brunoabinader commentedon Mar 11, 2016
Possibly related: #4168 / #3644.