Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

max zoom > 18 #509

Closed
Closed

Description

@incanus

This was changed back in #178 but should:

  1. Allow for zoom > 18
  2. Allow for setting min/max from external API

Activity

  1. added a commit that references this issue on Oct 27, 2014
  2. mb12 commented on Oct 30, 2014

    @mb12

    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.

  3. donpark commented on Nov 22, 2014

    @donpark

    I'd recommend upping the maximum zoom level to 23 then either auto-hiding labels beyond zoom level 18 in code or in style.

  4. manuelwenner commented on Jun 18, 2015

    @manuelwenner

    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.

  5. tmpsantos commented on Jun 18, 2015

    @tmpsantos
    Contributor

    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

  6. manuelwenner commented on Jun 18, 2015

    @manuelwenner

    Thanks @tmpsantos that worked perfect for me.

  7. petaren commented on Oct 14, 2015

    @petaren

    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 :(

  8. tmpsantos commented on Oct 14, 2015

    @tmpsantos
    Contributor

    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.

  9. petaren commented on Oct 15, 2015

    @petaren

    Okey, L87 in transform.hpp is blank. So what do I need to change to get it to work?

  10. mourner commented on Oct 15, 2015

    @mourner
    Member

    It's hardcoded here now:

    double min_scale = std::pow(2, 0);
    double max_scale = std::pow(2, 18);

    I think we should address this issue sooner, shouldn't be hard and is an often requested feature.

  11. added
    GL JS parity
    on Jan 15, 2016
  12. franckt commented on Jan 21, 2016

    @franckt

    Hi,
    Any news about providing an api to set max zoom ?

  13. self-assigned this
    on Jan 26, 2016
  14. 7 remaining items

  15. added this to the android-v4.0.0 milestone on Feb 3, 2016
  16. removed their assignment
    on Feb 3, 2016
  17. added a commit that references this issue on Feb 3, 2016
  18. bleege commented on Feb 4, 2016

    @bleege
    Contributor

    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.

  19. added 2 commits that reference this issue on Feb 4, 2016
  20. bleege commented on Feb 4, 2016

    @bleege
    Contributor

    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:

    MIN_ZOOM = 0.0
    MAX_ZOOM = 25.5
    
  21. brunoabinader commented on Mar 11, 2016

    @brunoabinader
    Contributor

    Possibly related: #4168 / #3644.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AndroidGL JS parityiOSrefactor

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions