NTAssetTileDataSource
@interface NTAssetTileDataSource : NTTileDataSource
A tile data source where each map tile is a seperate image file bundled with the application. The requests are generated using a template scheme, where tags in the basePath string are replaced with actual values. The following tags are supported: zoom, x, y, xflipped, yflipped, quadkey.
For example, if basePath = “t{zoom}{x}{y}.png” and the requested tile has zoom == 2, x == 1 and y == 3, then the tile will be loaded from the following path: “t2_1_2.png”.
-
Constructs an AssetTileDataSource object.
Declaration
Objective-C
- (id)initWithMinZoom:(int)minZoom maxZoom:(int)maxZoom basePath:(NSString *)basePath;
Parameters
minZoom
The minimum zoom level supported by this data source.
maxZoom
The maximum zoom level supported by this data source.
basePath
The base path containing tags (for example, “t{zoom}{x}{y}.png”).
-
Undocumented
Declaration
Objective-C
- (NTTileData *)loadTile:(NTMapTile *)tile;
-
Undocumented
Declaration
Objective-C
-(NTTileData*)loadTileSwigExplicitNTAssetTileDataSource: (NTMapTile*)tile;
-
Undocumented
Declaration
Objective-C
-(NSString*)buildAssetPath: (NSString*)basePath tile: (NTMapTile*)tile;
-
Undocumented
Declaration
Objective-C
-(NSString*)buildAssetPathSwigExplicitNTAssetTileDataSource: (NSString*)basePath tile: (NTMapTile*)tile;
-
Undocumented
Declaration
Objective-C
-(void)dealloc;