YMKProjection
@interface YMKProjection : NSObject |
Makes two conversions: world->XY and XY->world, where XY are tile indexes. There are two main derived classes: spherical mercator (google, osm) and wgs84 mercator (yandex).
Summary
Instance methods
- (nonnull YMKXYPoint *)worldToXYWithGeoPoint:(nonnull YMKPoint *)geoPoint |
- (nonnull YMKPoint *)xyToWorldWithXyPoint:(nonnull YMKXYPoint *)xyPoint |
Properties
@property (nonatomic, readonly, getter=isValid) BOOL valid; |
Instance methods
worldToXYWithGeoPoint:zoom:
- (nonnull YMKXYPoint *)worldToXYWithGeoPoint:(nonnull YMKPoint *)geoPoint |
Converts the world coordinates to a flat world position.
xyToWorldWithXyPoint:zoom:
- (nonnull YMKPoint *)xyToWorldWithXyPoint:(nonnull YMKXYPoint *)xyPoint |
Converts the flat world position to world coordinates.
Properties
valid
@property (nonatomic, readonly, getter=isValid) BOOL valid; |
Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.