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 4.1.0-beta.2] Mapbox LatLngBounds longitude and 'contains' algorithm error #5402

Closed

Description

  1. When 'west' longitude is positive, 'east' longitude is negative, LatLngBounds will invert west and east values.
  2. This error make MarkerView (may only visiable in LatLngBounds by default) not show.
  3. After fix this bug, the 'contains' method of LatLngBounds also needs to be changed:
  • The current algorithm:
    2016-06-18_233237
  • The right way (longitude part):
    2016-06-18_234426
  1. sample:
  • log: [N:77.02707134184479; E:177.68434665041946; S:-53.55760179239366; W:33.0421182655507]

2016-06-19_005652

  • log: [N:77.40489180472454; E:41.58002794488527; S:-52.53107115100817; W:-173.77774367024602]

(should be: [N:77.40489180472454; E:-173.77774367024602; S:-52.53107115100817; W:41.58002794488527])

2016-06-19_015903

Activity

  1. ghost changed the title [-][Android 4.1.0-beta.2] Mapbox LatLngBounds 'contains' longitude algorithm error[/-] [+][Android 4.1.0-beta.2] Mapbox LatLngBounds error[/+] on Jun 18, 2016
  2. ghost changed the title [-][Android 4.1.0-beta.2] Mapbox LatLngBounds error[/-] [+][Android 4.1.0-beta.2] Mapbox LatLngBounds longitude error[/+] on Jun 18, 2016
  3. ghost changed the title [-][Android 4.1.0-beta.2] Mapbox LatLngBounds longitude error[/-] [+][Android 4.1.0-beta.2] Mapbox LatLngBounds longitude and 'contains' algorithm error[/+] on Jun 18, 2016
  4. tobrun commented on Jun 20, 2016

    @tobrun
    Member

    This is due calling nativeGetAnnotationsInBounds on the dateline, this is something that should be resolved with #4522.

  5. added this to the android-v4.1.0 milestone on Jun 20, 2016
  6. zugaldia commented on Jun 20, 2016

    @zugaldia
    Member

    #4522 requires a semver change, removing from this milestone for now.

  7. removed this from the android-v4.1.0 milestone on Jun 20, 2016
  8. tobrun commented on Jun 26, 2016

    @tobrun
    Member

    Issue:
    ezgif com-video-to-gif 11

    Solution:
    ezgif com-video-to-gif 13

    @CBiao thank you for reaching out and help resolving the bug.

  9. added a commit that references this issue on Jun 26, 2016
  10. added this to the android-v4.1.0 milestone on Jun 26, 2016
  11. added a commit that references this issue on Jun 27, 2016
    3456e08
  12. zugaldia commented on Jun 27, 2016

    @zugaldia
    Member

    Fixed via #5484.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions