summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLMapCamera.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-02-21 22:47:15 -0800
committerMinh Nguyễn <mxn@1ec5.org>2017-02-21 22:47:15 -0800
commit2f388d663505255e967597c52656cc076e20d95c (patch)
tree157ec4c96a5d6f7c67367f96b73957870ee78edb /platform/darwin/src/MGLMapCamera.h
parentb512af6a6682bf133d8d580cccb309f671f287f6 (diff)
parentdf6a06bd07bda3207b31d86dd66a7468cc33c440 (diff)
downloadqtlocation-mapboxgl-2f388d663505255e967597c52656cc076e20d95c.tar.gz
Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.2
Diffstat (limited to 'platform/darwin/src/MGLMapCamera.h')
-rw-r--r--platform/darwin/src/MGLMapCamera.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLMapCamera.h b/platform/darwin/src/MGLMapCamera.h
index a76405df6f..7ce5927d1d 100644
--- a/platform/darwin/src/MGLMapCamera.h
+++ b/platform/darwin/src/MGLMapCamera.h
@@ -67,6 +67,20 @@ MGL_EXPORT
pitch:(CGFloat)pitch
heading:(CLLocationDirection)heading;
+/**
+ Returns a Boolean value indicating whether the given camera is functionally
+ equivalent to the receiver.
+
+ Unlike `-isEqual:`, this method returns `YES` if the difference between the
+ coordinates, altitudes, pitches, or headings of the two camera objects is
+ negligible.
+
+ @param otherCamera The camera with which to compare the receiver.
+ @return A Boolean value indicating whether the two cameras are functionally
+ equivalent.
+ */
+- (BOOL)isEqualToMapCamera:(MGLMapCamera *)otherCamera;
+
@end
NS_ASSUME_NONNULL_END