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.

Android is inconsistent about “zoom” versus “zoomLevel” #3327

Closed

Description

@1ec5

MapView has getZoomLevel(), while NativeMapView and LatLngZoom both have getZoom(). The Android bindings should standardize on one term to avoid confusion. The iOS SDK and OS X port have standardized on “zoom level”, to avoid situations where “zoom” is used as a noun in places where verbs can also be used.

/cc @bleege

Activity

  1. added
    Android
    on Dec 16, 2015
  2. added this to the android-v3.1.0 milestone on Dec 22, 2015
  3. bleege commented on Dec 22, 2015

    @bleege
    Contributor

    Sounds good @1ec5. Let's tee this up for the next version of the Android SDK.

    /cc @zugaldia @tobrun

  4. tobrun commented on Jan 8, 2016

    @tobrun
    Member

    This will be resolved if #3145 lands

  5. bleege commented on Jan 8, 2016

    @bleege
    Contributor

    @tobrun Since #3145 is a bit of a bigger lift that may or may not be ready by the time we're ready to release the next PROD version of the SDK let's knock this issue out first as getting things named consistently is important. Cool?

  6. tobrun commented on Jan 12, 2016

    @tobrun
    Member

    @bleege agreed, taking this up now

  7. tobrun commented on Jan 12, 2016

    @tobrun
    Member

    Added new methods:

    • void setZoom(zoomLevel)
    • void setZoom(zoomLevel, duration)
    • float getZoom

    Deprecated old methods:

    • void setZoomLevel(zoomLevel)
    • void setZoomLevel(zoomLevel, duration)
    • float getZoom()

    Added new attribute:

    • zoom (old one is zoom_level)

    I replaced all occurrences in test app with new methods,
    I replaced all occurrences in MapView class except the one loading the old attribute.

  8. added a commit that references this issue on Jan 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Androidrefactor

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions