-
Notifications
You must be signed in to change notification settings - Fork 1.3k
allow region-based viewport setting #1092
Comments
#1655 is bringing in a |
Downside to not using an abstraction layer like I don't think this is a problem in practice, but it does get into interesting territory when it comes to determining intersections and overlaps. |
Coming along with the addition of this API would be something like MapKit's |
This isn't trivial, though, since you need to determine the region with regard to the view's current aspect ratio as well as possibly inset/offset padding. |
Per #1433, |
This method should also be refactored to use MGLCoordinateBounds, which was introduced in #1655. |
MapKit’s geometry data types are named in parallel with Core Graphics geometry data types (MKMapPoint is to CGPoint as MKMapSize is to CGSize as MKMapRect is to CGRect). It’s elegant, but I agree that the additional level of abstraction isn’t necessary at this point. |
#1082 and user location display on the map introduces
-zoomToSouthWestCoordinate:northEastCoordinate:animated:
brought over from the iOS SDK. We should settle on whether we will use this approach or a more singular structure like MapKit'sMKRegion
. Then, we should expose these methods publicly for general use as well for things like zooming to an array of annotations (the reason the new annotations don't have this yet).Applies to all platforms, not just iOS.
The text was updated successfully, but these errors were encountered: