MGLMapSnapshotOverlay
@interface MGLMapSnapshotOverlay : NSObject
An overlay that is placed within a MGLMapSnapshot.
To access this object, use -[MGLMapSnapshotter startWithOverlayHandler:completionHandler:].
-
The current
CGContextthat snapshot is drawing within. You may use this context to perform additional custom drawing.Declaration
Objective-C
@property (nonatomic, readonly) CGContextRef _Nonnull context;Swift
var context: CGContext { get } -
Converts the specified map coordinate to a point in the coordinate space of the context.
Declaration
Objective-C
- (NSPoint)pointForCoordinate:(CLLocationCoordinate2D)coordinate;Swift
func point(for coordinate: CLLocationCoordinate2D) -> NSPoint -
Converts the specified context point to a map coordinate.
Declaration
Objective-C
- (CLLocationCoordinate2D)coordinateForPoint:(NSPoint)point;Swift
func coordinate(for point: NSPoint) -> CLLocationCoordinate2D
Install in Dash
MGLMapSnapshotOverlay Class Reference