MGLMapSnapshotOverlay

@interface MGLMapSnapshotOverlay : NSObject

An overlay that is placed within a MGLMapSnapshot. To access this object, use -[MGLMapSnapshotter startWithOverlayHandler:completionHandler:].

context

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 }

-pointForCoordinate:

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

-coordinateForPoint:

Converts the specified context point to a map coordinate.

Declaration

Objective-C

- (CLLocationCoordinate2D)coordinateForPoint:(CGPoint)point;

Swift

func coordinate(for point: CGPoint) -> CLLocationCoordinate2D
iOS SDK

SDK JS Reference

On this page