summaryrefslogtreecommitdiff
path: root/include/mbgl/ios/MGLTypes.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-06-25 11:58:23 -0700
committerMinh Nguyễn <mxn@1ec5.org>2015-06-25 21:54:57 -0700
commit1d11624efdf2d73a8adb43310c481969ead18d46 (patch)
treec362981a8e2ff82e0cb00285de39565bae49588d /include/mbgl/ios/MGLTypes.h
parent68e404c522d318ca87e5435a997a21a9604ad0e8 (diff)
downloadqtlocation-mapboxgl-1d11624efdf2d73a8adb43310c481969ead18d46.tar.gz
Test fit to bounds; added MGLCoordinateBounds functions
Added a bunch of functions to work with MGLCoordinateBounds in a separate header analogous to MKGeometry.h. Added resolution-independent tests for common fit to bounds scenarios.
Diffstat (limited to 'include/mbgl/ios/MGLTypes.h')
-rw-r--r--include/mbgl/ios/MGLTypes.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/include/mbgl/ios/MGLTypes.h b/include/mbgl/ios/MGLTypes.h
index 9213dafb37..75a0d4619f 100644
--- a/include/mbgl/ios/MGLTypes.h
+++ b/include/mbgl/ios/MGLTypes.h
@@ -1,5 +1,6 @@
#import <Foundation/Foundation.h>
-#import <CoreLocation/CoreLocation.h>
+
+#pragma once
#if !__has_feature(nullability)
#define NS_ASSUME_NONNULL_BEGIN
@@ -23,18 +24,6 @@ typedef NS_ENUM(NSUInteger, MGLUserTrackingMode) {
MGLUserTrackingModeFollowWithHeading
};
-typedef struct {
- CLLocationCoordinate2D sw;
- CLLocationCoordinate2D ne;
-} MGLCoordinateBounds;
-
-NS_INLINE MGLCoordinateBounds MGLCoordinateBoundsMake(CLLocationCoordinate2D sw, CLLocationCoordinate2D ne) {
- MGLCoordinateBounds bounds;
- bounds.sw = sw;
- bounds.ne = ne;
- return bounds;
-}
-
NS_ASSUME_NONNULL_END
#pragma clang diagnostic push