MSFAssetTileDataSource
Objective-C
@interface MSFAssetTileDataSource : MSFTileDataSource
Swift
class MSFAssetTileDataSource : MSFTileDataSource
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;Swift
init!(minZoom: Int32, maxZoom: Int32, basePath: String!)Parameters
minZoomThe minimum zoom level supported by this data source.
maxZoomThe maximum zoom level supported by this data source.
basePathThe base path containing tags (for example, “t{zoom}{x}{y}.png”).
-
Undocumented
Declaration
Objective-C
- (MSFTileData *)loadTile:(MSFMapTile *)tile;Swift
func load(_ tile: MSFMapTile!) -> MSFTileData! -
Undocumented
Declaration
Objective-C
-(MSFTileData*)loadTileSwigExplicitMSFAssetTileDataSource: (MSFMapTile*)tile;Swift
func loadTileSwigExplicitMSFAssetTileDataSource(_ tile: MSFMapTile!) -> MSFTileData! -
Undocumented
Declaration
Objective-C
-(NSString*)buildAssetPath: (NSString*)basePath tile: (MSFMapTile*)tile;Swift
func buildAssetPath(_ basePath: String!, tile: MSFMapTile!) -> String! -
Undocumented
Declaration
Objective-C
-(NSString*)buildAssetPathSwigExplicitMSFAssetTileDataSource: (NSString*)basePath tile: (MSFMapTile*)tile;Swift
func buildAssetPathSwigExplicitMSFAssetTileDataSource(_ basePath: String!, tile: MSFMapTile!) -> String! -
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()