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) -> NSPoint
  • The image of the map’s content.

    Declaration

    Objective-C

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

    Swift

    var image: NSImage { get }