summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorFabian Guerra <fabian.guerra@mapbox.com>2017-12-14 16:11:11 -0600
committerFabian Guerra Soto <fabian.guerra@mapbox.com>2017-12-21 14:04:09 -0600
commitff62fa957c9413734ba8ca74b41e490fc2a3ab1d (patch)
tree7cf12179a10c0a466d2854fe5e394a647fc2e839 /platform
parent3685cb35898cbcb6d34af2a7f49eff345083f487 (diff)
downloadqtlocation-mapboxgl-ff62fa957c9413734ba8ca74b41e490fc2a3ab1d.tar.gz
[ios] Update visible coordinates documentation to reflect antimeridian usage.
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/src/MGLMapView.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h
index ef86266457..3c5aa2c122 100644
--- a/platform/ios/src/MGLMapView.h
+++ b/platform/ios/src/MGLMapView.h
@@ -668,12 +668,24 @@ MGL_EXPORT IB_DESIGNABLE
Changing the value of this property updates the receiver immediately. If you
want to animate the change, call `-setVisibleCoordinateBounds:animated:`
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