MMKProjection
@interface MMKProjection : 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 (mappable).
Summary
Instance methods
- (nonnull MMKXYPoint *)worldToXYWithGeoPoint:(nonnull MMKPoint *)geoPoint |
- (nonnull MMKPoint *)xyToWorldWithXyPoint:(nonnull MMKXYPoint *)xyPoint |
Properties
@property (nonatomic, readonly, getter=isValid) BOOL valid; |
Instance methods
worldToXYWithGeoPoint:zoom:
- (nonnull MMKXYPoint *)worldToXYWithGeoPoint:(nonnull MMKPoint *)geoPoint |
Converts the world coordinates to a flat world position.
xyToWorldWithXyPoint:zoom:
- (nonnull MMKPoint *)xyToWorldWithXyPoint:(nonnull MMKXYPoint *)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.