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

Unwrap coordinate bounds #11265

Merged
merged 1 commit into from
Feb 21, 2018
Merged

Unwrap coordinate bounds #11265

merged 1 commit into from
Feb 21, 2018

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Feb 20, 2018

The -[MGLMapView convertRect:toCoordinateBoundsFromView:] method and the MGLMapView.visibleCoordinateBounds property’s getter now indicate that the coordinate bounds straddles the antimeridian by extending one side beyond ±180° longitude. This behavior is consistent with how the SDK interprets polyline and polygon coordinates. However, it represents a backwards-incompatible change, inasmuch as developers may have relied on the previous behavior of returning a bounds that starts and ends at the antimeridian.

Fixes #4664.

/cc @jmkiley @fabian-guerra @brunoabinader

Updated coordinate bounds conversion methods to use the beyond-±180 method to indicate that the bounds extends beyond the antimeridian. Also copyedited conversion documentation.
@1ec5 1ec5 added bug iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS SEMVER-MAJOR Requires a major release according to Semantic Versioning rules labels Feb 20, 2018
@1ec5 1ec5 added this to the ios-v4.0.0 milestone Feb 20, 2018
@1ec5 1ec5 self-assigned this Feb 20, 2018
@1ec5 1ec5 changed the title [ios, macos] Unwrap coordinate bounds Unwrap coordinate bounds Feb 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS SEMVER-MAJOR Requires a major release according to Semantic Versioning rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants