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

Commit

Permalink
[ios] Update visible coordinates documentation to reflect antimeridia…
Browse files Browse the repository at this point in the history
…n usage.
  • Loading branch information
fabian-guerra committed Dec 15, 2017
1 parent 74b0627 commit 773b145
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions platform/ios/src/MGLMapView.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 773b145

Please sign in to comment.