NTTileUtils
@interface NTTileUtils : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
A helper class for mapping coordinates to tiles and back.
-
Calculates the map tile corresponding to specified point and zoom level.
Declaration
Objective-C
+ (NTMapTile *)calculateMapTile:(NTMapPos *)mapPos zoom:(int)zoom proj:(NTProjection *)proj;
Parameters
mapPos
Coordinates for the point.
zoom
Zoom level for the tile.
proj
The projection to use for tile and point.
Return Value
The corresponding map tile.
-
Calculates origin coordinates for the given map tile.
Declaration
Objective-C
+ (NTMapPos *)calculateMapTileOrigin:(NTMapTile *)mapTile proj:(NTProjection *)proj;
Parameters
mapTile
The map tile to use.
proj
The projection to use for origin.
Return Value
The corresponding tile origin.
-
Calculates bounds for the given map tile.
Declaration
Objective-C
+ (NTMapBounds *)calculateMapTileBounds:(NTMapTile *)mapTile proj:(NTProjection *)proj;
Parameters
mapTile
The map tile to use.
proj
The projection to use for bounds.
Return Value
The corresponding tile bounds.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;