diff options
author | Fabian Guerra <fabian.guerra@mapbox.com> | 2017-12-21 17:07:25 -0600 |
---|---|---|
committer | Fabian Guerra Soto <fabian.guerra@mapbox.com> | 2017-12-21 20:39:26 -0600 |
commit | b09311656d78d2b7b2e5e99232f76da7d3a6d756 (patch) | |
tree | 98bdc118c907e6a648d2779f4446eca2b1d3edd7 /platform/macos/src | |
parent | 3b254a7fbd353f3263f96ec9620b5c98781f3288 (diff) | |
download | qtlocation-mapboxgl-b09311656d78d2b7b2e5e99232f76da7d3a6d756.tar.gz |
[macos] Update visible coordinates documentation to reflect antimeridian usage.
Diffstat (limited to 'platform/macos/src')
-rw-r--r-- | platform/macos/src/MGLMapView.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/platform/macos/src/MGLMapView.h b/platform/macos/src/MGLMapView.h index de099157c8..96b0932c14 100644 --- a/platform/macos/src/MGLMapView.h +++ b/platform/macos/src/MGLMapView.h @@ -396,12 +396,24 @@ MGL_EXPORT IB_DESIGNABLE Changing the value of this property updates the receiver immediately. If you want to animate the change, use the `-setVisibleCoordinateBounds:animated:` method instead. + + If a longitude is less than −180 degrees or greater than 180 degrees, the visible + bounds straddles the antimeridian or international date line. + + For example, a visible bounds that stretches from Tokyo to San Francisco would have + coordinates of (35.68476, -220.24257) and (37.78428, -122.41310). */ @property (nonatomic) MGLCoordinateBounds visibleCoordinateBounds; /** Changes the receiver’s viewport to fit the given coordinate bounds, optionally animating the change. + + To make the visible bounds go across the antimeridian or international date line, + specify some longitudes less than −180 degrees or greater than 180 degrees. + + For example, a visible bounds that stretches from Tokyo to San Francisco would have + coordinates of (35.68476, -220.24257) and (37.78428, -122.41310). @param bounds The bounds that the viewport will show in its entirety. @param animated Specify `YES` to animate the change by smoothly scrolling and |