summaryrefslogtreecommitdiff
path: root/platform/macos/app/AppDelegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/macos/app/AppDelegate.h')
-rw-r--r--platform/macos/app/AppDelegate.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/platform/macos/app/AppDelegate.h b/platform/macos/app/AppDelegate.h
new file mode 100644
index 0000000000..a1d9297b2f
--- /dev/null
+++ b/platform/macos/app/AppDelegate.h
@@ -0,0 +1,24 @@
+#import <Mapbox/Mapbox.h>
+
+extern NSString * const MGLMapboxAccessTokenDefaultsKey;
+
+@interface AppDelegate : NSObject <NSApplicationDelegate>
+
+@property (weak) IBOutlet NSWindow *preferencesWindow;
+
+// Normally, an application should respect the “Close windows when quitting an
+// application” setting in the General pane of System Preferences. But the map
+// would only be restored to its last opened location if the user quits the
+// application using Quit and Keep Windows. An application that displays only a
+// map should restore the last viewed map, like Maps.app does. These properties
+// temporarily hold state for the next map window to be opened.
+
+@property (assign) double pendingZoomLevel;
+@property (copy) MGLMapCamera *pendingCamera;
+@property (assign) MGLCoordinateBounds pendingVisibleCoordinateBounds;
+@property (assign) double pendingMinimumZoomLevel;
+@property (assign) double pendingMaximumZoomLevel;
+@property (copy) NSURL *pendingStyleURL;
+@property (assign) MGLMapDebugMaskOptions pendingDebugMask;
+
+@end