diff options
author | Nadia Barbosa <nadiabarbosa@me.com> | 2018-08-28 08:52:27 -0700 |
---|---|---|
committer | Nadia Barbosa <captainbarbosa@users.noreply.github.com> | 2018-09-04 18:57:18 -0700 |
commit | 7017ac512e96415d6a6c18512e320197a10ca83f (patch) | |
tree | e400a53a1bc5f33edb1c0a641a61c133e51ac787 /platform/ios/src/MGLMapView.h | |
parent | c9803e30408cf866c1743baefcd3135f5538f9d2 (diff) | |
download | qtlocation-mapboxgl-7017ac512e96415d6a6c18512e320197a10ca83f.tar.gz |
[ios, macos] Allow -convertCoordinateBounds to span antimeridian
Diffstat (limited to 'platform/ios/src/MGLMapView.h')
-rw-r--r-- | platform/ios/src/MGLMapView.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h index 20bfeeef39..02d146edcb 100644 --- a/platform/ios/src/MGLMapView.h +++ b/platform/ios/src/MGLMapView.h @@ -1118,8 +1118,9 @@ MGL_EXPORT IB_DESIGNABLE Converts a rectangle in the given view’s coordinate system to a geographic bounding box. - If a longitude is less than −180 degrees or greater than 180 degrees, the - bounding box straddles the antimeridian or international date line. + If the returned coordinate bounds contains a longitude is less than −180 degrees + or greater than 180 degrees, the bounding box straddles the antimeridian or + international date line. @param rect The rectangle to convert. @param view The view in whose coordinate system the rectangle is expressed. @@ -1130,6 +1131,11 @@ MGL_EXPORT IB_DESIGNABLE /** Converts a geographic bounding box to a rectangle in the given view’s coordinate system. + + To bring both sides of the antimeridian or international date line into view, + specify some longitudes less than −180 degrees or greater than 180 degrees. For + example, to show both Tokyo and San Francisco simultaneously, you could set the + visible bounds to extend from (35.68476, −220.24257) to (37.78428, −122.41310). @param bounds The geographic bounding box to convert. @param view The view in whose coordinate system the returned rectangle should |