diff options
author | Nadia Barbosa <nadiabarbosa@me.com> | 2018-08-28 08:52:27 -0700 |
---|---|---|
committer | Nadia Barbosa <nadiabarbosa@me.com> | 2018-09-04 15:10:03 -0700 |
commit | cd4611dfefccbcc102f1ce0848a40e85d4c1ce60 (patch) | |
tree | 388a850a95a783deab602d0903788a5de267ca6d /platform/macos/src/MGLMapView.h | |
parent | 260f96c2535672cba6ebe36d380c82f43fde492c (diff) | |
download | qtlocation-mapboxgl-cd4611dfefccbcc102f1ce0848a40e85d4c1ce60.tar.gz |
[ios, macos] Allow -convertCoordinateBounds to span antimeridianupstream/nb-fix-antimeridian-bounds
Diffstat (limited to 'platform/macos/src/MGLMapView.h')
-rw-r--r-- | platform/macos/src/MGLMapView.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/macos/src/MGLMapView.h b/platform/macos/src/MGLMapView.h index 305a1348e4..ddb5747109 100644 --- a/platform/macos/src/MGLMapView.h +++ b/platform/macos/src/MGLMapView.h @@ -1088,6 +1088,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 |