MGLMapSnapshotOverlay
@interface MGLMapSnapshotOverlay : NSObject
An overlay that is placed within a MGLMapSnapshot
.
To access this object, use -[MGLMapSnapshotter startWithOverlayHandler:completionHandler:]
.
-
The current
CGContext
that 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
- (CGPoint)pointForCoordinate:(CLLocationCoordinate2D)coordinate;
Swift
func point(for coordinate: CLLocationCoordinate2D) -> CGPoint
-
Converts the specified context point to a map coordinate.
Declaration
Objective-C
- (CLLocationCoordinate2D)coordinateForPoint:(CGPoint)point;
Swift
func coordinate(for point: CGPoint) -> CLLocationCoordinate2D