diff options
Diffstat (limited to 'include/mbgl/ios/MGLTypes.h')
-rw-r--r-- | include/mbgl/ios/MGLTypes.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/mbgl/ios/MGLTypes.h b/include/mbgl/ios/MGLTypes.h index 6b56b47add..3d3892610a 100644 --- a/include/mbgl/ios/MGLTypes.h +++ b/include/mbgl/ios/MGLTypes.h @@ -1,4 +1,5 @@ #import <Foundation/Foundation.h> +#import <CoreLocation/CoreLocation.h> #if !__has_feature(nullability) #define NS_ASSUME_NONNULL_BEGIN @@ -13,8 +14,7 @@ NS_ASSUME_NONNULL_BEGIN extern NSString * const MGLErrorDomain; /** The mode used to track the user location on the map. */ -typedef NS_ENUM(NSUInteger, MGLUserTrackingMode) -{ +typedef NS_ENUM(NSUInteger, MGLUserTrackingMode) { /** The map does not follow the user location. */ MGLUserTrackingModeNone = 0, /** The map follows the user location. */ @@ -23,4 +23,9 @@ typedef NS_ENUM(NSUInteger, MGLUserTrackingMode) MGLUserTrackingModeFollowWithHeading }; +typedef struct { + CLLocationCoordinate2D sw; + CLLocationCoordinate2D ne; +} MGLCoordinateBounds; + NS_ASSUME_NONNULL_END |