From cd4611dfefccbcc102f1ce0848a40e85d4c1ce60 Mon Sep 17 00:00:00 2001 From: Nadia Barbosa Date: Tue, 28 Aug 2018 08:52:27 -0700 Subject: [ios, macos] Allow -convertCoordinateBounds to span antimeridian --- platform/macos/src/MGLMapView.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'platform/macos/src/MGLMapView.h') 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 -- cgit v1.2.1