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.

Enforce Wrap At Java LatLng Level #4522

Closed

Description

@bleege

While working on #4444 we discovered that Core GL is no longer wrapping all Longitude values for the C++ LatLng objects that it generates and then passes to the Java LatLng (done for anti merdian), which means that the SDK can't guarantee that they're wrapped. This is important as it's been a tacitly compatible with the Google Maps API LatLng until then.

To resolve this let's make sure that both Latitude and Longitude values are clamped to their respective ranges and deprecate the stopgap LatLng.wrap() method. Let's also do a thorough dependency evaluation to ensure that all uses are covered.

Related Issues: #4475 and #4477

/cc @mapbox/mobile

Activity

  1. added
    Android
    on Mar 29, 2016
  2. jfirebaugh commented on Mar 29, 2016

    @jfirebaugh
    Contributor

    For better or worse, we committed to unwrapped LatLng for 4.0.0, and that forms part of the public API. We can't change the wrapping semantics again until the next major version: 5.0.

  3. bleege commented on Mar 29, 2016

    @bleege
    ContributorAuthor

    We can't change the wrapping semantics again until the next major version: 5.0.

    Yep. This is a semver change.

  4. added
    SEMVER-MAJOR
    and removed
    SEMVER-MAJOR
    on Mar 29, 2016
  5. added this to the android-v5.0.0 milestone on Nov 9, 2016
  6. cammace commented on Nov 9, 2016

    @cammace
    Contributor

    Added to 5.0.0 Milestone.

    cc: @mapbox/android

  7. self-assigned this
    on Jan 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AndroidSEMVER-MAJORrefactor

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions