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

Commit ae76552

Browse files
committed
[ios] Update visible coordinates documentation to reflect antimeridian usage.
1 parent 74b0627 commit ae76552

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

platform/ios/src/MGLMapView.h

+12
Original file line numberDiff line numberDiff line change
@@ -668,12 +668,24 @@ MGL_EXPORT IB_DESIGNABLE
668668
Changing the value of this property updates the receiver immediately. If you
669669
want to animate the change, call `-setVisibleCoordinateBounds:animated:`
670670
instead.
671+
672+
To make the visible bounds go across the antimeridian or international date line,
673+
specify some longitudes less than −180 degrees or greater than 180 degrees.
674+
675+
For example, a visible bounds that stretches from Tokyo to San Francisco would have
676+
coordinates of (35.68476, -220.24257) and (37.78428, -122.41310).
671677
*/
672678
@property (nonatomic) MGLCoordinateBounds visibleCoordinateBounds;
673679

674680
/**
675681
Changes the receiver’s viewport to fit the given coordinate bounds,
676682
optionally animating the change.
683+
684+
To make the visible bounds go across the antimeridian or international date line,
685+
specify some longitudes less than −180 degrees or greater than 180 degrees.
686+
687+
For example, a visible bounds that stretches from Tokyo to San Francisco would have
688+
coordinates of (35.68476, -220.24257) and (37.78428, -122.41310).
677689
678690
@param bounds The bounds that the viewport will show in its entirety.
679691
@param animated Specify `YES` to animate the change by smoothly scrolling

0 commit comments

Comments
 (0)