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 inplatform pixels
on 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) -> CLLocationCoordinate2D
Parameters
screenCoordinate
A
screen coordinate
on the snapshot inplatform pixels
.Return Value
A geographical
coordinate
for ascreen 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.