MGLMapSnapshot

@interface MGLMapSnapshot : NSObject

An image generated by a snapshotter object.

-pointForCoordinate:

Converts the specified map coordinate to a point in the coordinate space of the image.

Declaration

Objective-C

- (CGPoint)pointForCoordinate:(CLLocationCoordinate2D)coordinate;

Swift

func point(for coordinate: CLLocationCoordinate2D) -> CGPoint

-coordinateForPoint:

Converts the specified image point to a map coordinate.

Declaration

Objective-C

- (CLLocationCoordinate2D)coordinateForPoint:(CGPoint)point;

Swift

func coordinate(for point: CGPoint) -> CLLocationCoordinate2D

image

The image of the map’s content.

Declaration

Objective-C

@property (nonatomic, readonly) UIImage *_Nonnull image;

Swift

var image: UIImage { get }
iOS SDK

SDK JS Reference

On this page