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

    - (NSPoint)pointForCoordinate:(CLLocationCoordinate2D)coordinate;

    Swift

    func point(for coordinate: CLLocationCoordinate2D) -> NSPoint
  • Converts the specified image point to a map coordinate.

    Declaration

    Objective-C

    - (CLLocationCoordinate2D)coordinateForPoint:(NSPoint)point;

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var image: NSImage { get }