MBMMapSnapshot
@interface MBMMapSnapshot : NSObject
An image snapshot of a map rendered by MapSnapshotter.
-
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
Geographical coordinate. @returns screen coordinate in \link MapOptions#size platform pixels \endlink 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
Screen coordinates on the snapshot in \link MapOptions#size platform pixels \endlink
Return Value
Geographical coordinates for point on the snapshot.
-
Get list of attributions for the sources in this snapshot.
@returns list of attributions for the sources in this snapshot.
Declaration
Objective-C
- (nonnull NSArray<NSString *> *)attributions;
Swift
func attributions() -> [String]