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) -> MBMScreenCoordinateParameters
coordinateA geographical
coordinate.Return Value
A
screen coordinatemeasured inplatform pixelson the snapshot for geographicalcoordinate. -
Calculate geographical coordinates from a point on the snapshot.
Declaration
Objective-C
- (CLLocationCoordinate2D)coordinateForScreenCoordinate: (nonnull MBMScreenCoordinate *)screenCoordinate;Swift
func coordinate(for screenCoordinate: MBMScreenCoordinate) -> CLLocationCoordinate2DParameters
screenCoordinateA
screen coordinateon the snapshot inplatform pixels.Return Value
A geographical
coordinatefor ascreen coordinateon 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.
MBMMapSnapshot Class Reference