[ios, macos] Use CLLocationDirection for direction parameter in -[MGLMapView cameraThatFitsShape:shape direction: edgePadding:]
This commit is contained in:
@@ -901,7 +901,7 @@ MGL_EXPORT IB_DESIGNABLE
|
||||
(close to the ground) as possible while still including the entire shape. The
|
||||
camera object uses the current pitch.
|
||||
*/
|
||||
- (MGLMapCamera *)cameraThatFitsShape:(MGLShape *)shape direction:(double)direction edgePadding:(UIEdgeInsets)insets;
|
||||
- (MGLMapCamera *)cameraThatFitsShape:(MGLShape *)shape direction:(CLLocationDirection)direction edgePadding:(UIEdgeInsets)insets;
|
||||
|
||||
/**
|
||||
Returns the point in this view’s coordinate system on which to "anchor" in
|
||||
|
||||
@@ -3012,7 +3012,7 @@ public:
|
||||
return [self cameraForCameraOptions:cameraOptions];
|
||||
}
|
||||
|
||||
- (MGLMapCamera *)cameraThatFitsShape:(MGLShape *)shape direction:(double)direction edgePadding:(UIEdgeInsets)insets {
|
||||
- (MGLMapCamera *)cameraThatFitsShape:(MGLShape *)shape direction:(CLLocationDirection)direction edgePadding:(UIEdgeInsets)insets {
|
||||
mbgl::EdgeInsets padding = MGLEdgeInsetsFromNSEdgeInsets(insets);
|
||||
padding += MGLEdgeInsetsFromNSEdgeInsets(self.contentInset);
|
||||
|
||||
|
||||
@@ -487,7 +487,7 @@ MGL_EXPORT IB_DESIGNABLE
|
||||
(close to the ground) as possible while still including the entire shape. The
|
||||
camera object uses the current pitch.
|
||||
*/
|
||||
- (MGLMapCamera *)cameraThatFitsShape:(MGLShape *)shape direction:(double)direction edgePadding:(NSEdgeInsets)insets;
|
||||
- (MGLMapCamera *)cameraThatFitsShape:(MGLShape *)shape direction:(CLLocationDirection)direction edgePadding:(NSEdgeInsets)insets;
|
||||
|
||||
/**
|
||||
A Boolean value indicating whether the receiver automatically adjusts its
|
||||
|
||||
@@ -1272,7 +1272,7 @@ public:
|
||||
return [self cameraForCameraOptions:cameraOptions];
|
||||
}
|
||||
|
||||
- (MGLMapCamera *)cameraThatFitsShape:(MGLShape *)shape direction:(double)direction edgePadding:(NSEdgeInsets)insets {
|
||||
- (MGLMapCamera *)cameraThatFitsShape:(MGLShape *)shape direction:(CLLocationDirection)direction edgePadding:(NSEdgeInsets)insets {
|
||||
mbgl::EdgeInsets padding = MGLEdgeInsetsFromNSEdgeInsets(insets);
|
||||
padding += MGLEdgeInsetsFromNSEdgeInsets(self.contentInsets);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user