diff options
Diffstat (limited to 'platform/macos/src/MGLMapView_Private.h')
-rw-r--r-- | platform/macos/src/MGLMapView_Private.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/platform/macos/src/MGLMapView_Private.h b/platform/macos/src/MGLMapView_Private.h new file mode 100644 index 0000000000..2d9fc52a62 --- /dev/null +++ b/platform/macos/src/MGLMapView_Private.h @@ -0,0 +1,27 @@ +#import "MGLMapView.h" + +#import <mbgl/mbgl.hpp> + +@interface MGLMapView (Private) + +/// True if the view or application is in a state where it is not expected to be +/// actively drawing. +@property (nonatomic, readonly, getter=isDormant) BOOL dormant; + +// These properties exist because initially, both the latitude and longitude are +// NaN. You have to set both the latitude and longitude simultaneously. If you +// set the latitude but reuse the current longitude, and the current longitude +// happens to be NaN, there will be no change because the resulting coordinate +// pair is invalid. + +/// Center latitude set independently of the center longitude in an inspectable. +@property (nonatomic) CLLocationDegrees pendingLatitude; +/// Center longitude set independently of the center latitude in an inspectable. +@property (nonatomic) CLLocationDegrees pendingLongitude; + +/// Synchronously render a frame of the map. +- (void)renderSync; + +- (mbgl::Map *)mbglMap; + +@end |