summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLMapSnapshotter.h
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@mapbox.com>2018-06-27 10:08:16 -0400
committerTobrun <tobrun@mapbox.com>2018-07-05 18:50:21 +0200
commit56ab3318a300b3675e902fd13690252d87739a27 (patch)
treef3717f3272ac1e5c93a390135df8c7c8715daa00 /platform/darwin/src/MGLMapSnapshotter.h
parent99f9787cc4099b76401ab5b9a9ef7d2f894f9ab6 (diff)
downloadqtlocation-mapboxgl-56ab3318a300b3675e902fd13690252d87739a27.tar.gz
[ios] [macos] Added `-[MGLSnapshot coordinateForPoint:]` and associated test.
Diffstat (limited to 'platform/darwin/src/MGLMapSnapshotter.h')
-rw-r--r--platform/darwin/src/MGLMapSnapshotter.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLMapSnapshotter.h b/platform/darwin/src/MGLMapSnapshotter.h
index 976213c8ba..a5ddcac0ac 100644
--- a/platform/darwin/src/MGLMapSnapshotter.h
+++ b/platform/darwin/src/MGLMapSnapshotter.h
@@ -86,6 +86,11 @@ MGL_EXPORT
- (CGPoint)pointForCoordinate:(CLLocationCoordinate2D)coordinate;
/**
+ Converts the specified image point to a map coordinate.
+ */
+- (CLLocationCoordinate2D)coordinateForPoint:(CGPoint)point;
+
+/**
The image of the map’s content.
*/
@property (nonatomic, readonly) UIImage *image;
@@ -97,6 +102,12 @@ MGL_EXPORT
- (NSPoint)pointForCoordinate:(CLLocationCoordinate2D)coordinate;
/**
+ Converts the specified image point to a map coordinate.
+ */
+- (CLLocationCoordinate2D)coordinateForPoint:(NSPoint)point;
+
+
+/**
The image of the map’s content.
*/
@property (nonatomic, readonly) NSImage *image;