From 3337f0c6b45dc469a23a66a26fbc219087d19a4b Mon Sep 17 00:00:00 2001 From: Ivo van Dongen Date: Tue, 5 Sep 2017 14:58:09 +0300 Subject: [macos] snapshotter --- platform/macos/app/Base.lproj/MainMenu.xib | 16 ++++-- platform/macos/app/Base.lproj/MapDocument.xib | 6 +-- platform/macos/app/MapDocument.m | 68 ++++++++++++++++++++++++++ platform/macos/config.cmake | 4 ++ platform/macos/macos.xcodeproj/project.pbxproj | 8 +++ platform/macos/src/Mapbox.h | 1 + 6 files changed, 95 insertions(+), 8 deletions(-) diff --git a/platform/macos/app/Base.lproj/MainMenu.xib b/platform/macos/app/Base.lproj/MainMenu.xib index 9a8cf05c16..9a53ba9d4b 100644 --- a/platform/macos/app/Base.lproj/MainMenu.xib +++ b/platform/macos/app/Base.lproj/MainMenu.xib @@ -1,7 +1,7 @@ - + - + @@ -128,6 +128,12 @@ + + + + + + @@ -654,7 +660,7 @@ CA - + @@ -730,7 +736,7 @@ CA - + @@ -739,7 +745,7 @@ CA - + diff --git a/platform/macos/app/Base.lproj/MapDocument.xib b/platform/macos/app/Base.lproj/MapDocument.xib index d95f21b2e9..0394f38533 100644 --- a/platform/macos/app/Base.lproj/MapDocument.xib +++ b/platform/macos/app/Base.lproj/MapDocument.xib @@ -1,7 +1,7 @@ - + - + @@ -48,7 +48,7 @@ - + diff --git a/platform/macos/app/MapDocument.m b/platform/macos/app/MapDocument.m index d6855d3ff2..406ff0ca9d 100644 --- a/platform/macos/app/MapDocument.m +++ b/platform/macos/app/MapDocument.m @@ -3,6 +3,7 @@ #import "AppDelegate.h" #import "LimeGreenStyleLayer.h" #import "DroppedPinAnnotation.h" +#import "MGLMapsnapshotter.h" #import "MGLStyle+MBXAdditions.h" #import "MGLVectorSource+MGLAdditions.h" @@ -73,6 +74,9 @@ NS_ARRAY_OF(id ) *MBXFlattenedShapes(NS_ARRAY_OF(id ) *MBXFlattenedShapes(NS_ARRAY_OF(id ) *MBXFlattenedShapes(NS_ARRAY_OF(id