summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLMapSnapshotter_Private.h
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@mapbox.com>2019-10-04 13:51:40 -0400
committerGitHub <noreply@github.com>2019-10-04 13:51:40 -0400
commit33a70100b839793311ecc73c873c063c7cf65e31 (patch)
tree8dd577c3fcbd8a3a7064b8a6ef550d835b45b617 /platform/darwin/src/MGLMapSnapshotter_Private.h
parent910e34b85527f9caf074da2274ba4fc5d8c87f94 (diff)
downloadqtlocation-mapboxgl-33a70100b839793311ecc73c873c063c7cf65e31.tar.gz
[ios] Adds pointForCoordinate/coordinateForPoint to MGLMapSnapshotOverlay (#15746)
* [ios] Adds `pointForCoordinate:`/`coordinateForPoint:` to MGLMapSnapshotOverlay * [ios] Adds PR # * [ios, macos] Update file lists & mac contexts * [macos] Fix for image scale in overlay. * [ios] Updated change log based on PR feedback.
Diffstat (limited to 'platform/darwin/src/MGLMapSnapshotter_Private.h')
-rw-r--r--platform/darwin/src/MGLMapSnapshotter_Private.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLMapSnapshotter_Private.h b/platform/darwin/src/MGLMapSnapshotter_Private.h
new file mode 100644
index 0000000000..205e51a6de
--- /dev/null
+++ b/platform/darwin/src/MGLMapSnapshotter_Private.h
@@ -0,0 +1,14 @@
+#import "MGLMapSnapshotter.h"
+
+@protocol MGLMapSnapshotProtocol <NSObject>
+
+#if TARGET_OS_IPHONE
+- (CGPoint)pointForCoordinate:(CLLocationCoordinate2D)coordinate;
+- (CLLocationCoordinate2D)coordinateForPoint:(CGPoint)point;
+
+#else
+- (NSPoint)pointForCoordinate:(CLLocationCoordinate2D)coordinate;
+- (CLLocationCoordinate2D)coordinateForPoint:(NSPoint)point;
+#endif
+
+@end