MGLMapSnapshot


@interface MGLMapSnapshot : NSObject

An image generated by a snapshotter object.

  • 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
  • Converts the specified image point to a map coordinate.

    Declaration

    Objective-C

    - (CLLocationCoordinate2D)coordinateForPoint:(CGPoint)point;

    Swift

    func coordinate(for point: CGPoint) -> CLLocationCoordinate2D
  • The image of the map’s content.

    Declaration

    Objective-C

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

    Swift

    var image: UIImage { get }