MBMMapSnapshot


@interface MBMMapSnapshot : NSObject

An image snapshot of a map rendered by map snapshotter.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)new NS_UNAVAILABLE;
  • Calculate screen coordinate on the snapshot from geographical coordinate.

    Declaration

    Objective-C

    - (nonnull MBMScreenCoordinate *)screenCoordinateForCoordinate:
        (CLLocationCoordinate2D)coordinate;

    Swift

    func screenCoordinate(for coordinate: CLLocationCoordinate2D) -> MBMScreenCoordinate

    Parameters

    coordinate

    A geographical coordinate.

    Return Value

    A screen coordinate measured in platform pixels on the snapshot for geographical coordinate.

  • Calculate geographical coordinates from a point on the snapshot.

    Declaration

    Objective-C

    - (CLLocationCoordinate2D)coordinateForScreenCoordinate:
        (nonnull MBMScreenCoordinate *)screenCoordinate;

    Swift

    func coordinate(for screenCoordinate: MBMScreenCoordinate) -> CLLocationCoordinate2D

    Parameters

    screenCoordinate

    A screen coordinate on the snapshot in platform pixels.

    Return Value

    A geographical coordinate for a screen coordinate on the snapshot.

  • Get list of attributions for the sources in this snapshot.

    Declaration

    Objective-C

    - (nonnull NSArray<NSString *> *)attributions;

    Swift

    func attributions() -> [String]

    Return Value

    A list of attributions for the sources in this snapshot.

  • Get the rendered snapshot image.

    Declaration

    Objective-C

    - (nonnull MBMImage *)image;

    Swift

    func image() -> MBMImage

    Return Value

    A rendered snapshot image.