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.

Allow zoom levels beyond 21 on Android #7155

Closed

Description

@1ec5

#4417 capped the maximum zoom level at 21 to work around #4416, #4272, and #4168. Of these issues, #4416 was fixed in #4508, #4168 was Android-specific, and it isn’t clear whether the root cause behind #4272 was ever fixed. This ticket tracks allowing zoom levels greater than 21 again.

/cc @jfirebaugh @ansis

Activity

  1. added
    Core
    on Nov 22, 2016
  2. ansis commented on Nov 30, 2016

    @ansis
    Contributor

    There is a another limit at z25.5. We store zoom levels in the symbol buffers in a single byte to the tenth of a decimal place. This makes the max possible value 255/10 = 25.5. This could be changed by using more bits but I don't think we have any reason to support zooms > 25.5

  3. 1ec5 commented on Mar 15, 2017

    @1ec5
    ContributorAuthor

    #4417 decreased MapboxConstants.MAXIMUM_ZOOM (on Android) and mbgl::util::MAX_ZOOM (across all platforms) from 25.5 down to 21.0. Yet I see no trace of the latter change in the commit histories in include/mbgl/util/constants.hpp or src/mbgl/util/constants.cpp on master. mbgl::util::MAX_ZOOM is still 25.5.

    #7306 decreased MapboxConstants.MAXIMUM_ZOOM further to 20.0 without explanation. @tobrun, do you recall why you did this?

  4. jfirebaugh commented on Mar 15, 2017

    @jfirebaugh
    Contributor

    Looks like the change to constants.cpp in #4417 conflicted with ee651d7 during the merge of the release branch to master, and the latter won.

  5. Etienne-io commented on Jun 9, 2017

    @Etienne-io

    It's becoming critical on our side to be able to zoom at least to 22 (better to 23)

    Are you planing something for this issue ?

  6. 1ec5 commented on Jun 23, 2017

    @1ec5
    ContributorAuthor

    On iOS as of 40e4755, I’m able to set the maximumZoomLevel to 25.5 and pinch out to 23.90 (in the D.C. area) before the map gets stuck:

    z23 90

  7. added
    Android
    and removed
    Core
    on Jun 23, 2017
  8. changed the title [-]Allow zoom levels beyond 21[/-] [+]Allow zoom levels beyond 21 on Android[/+] on Jun 23, 2017
  9. 1ec5 commented on Jun 23, 2017

    @1ec5
    ContributorAuthor

    Tracking the hang on iOS in #9359. If you hide the scale bar, it should go further without any problems.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions