|
iOS高德地图SDK(3D)
V11.2.0001
|
#import <MATileOverlay.h>
Instance Methods | |
| (NSURL *) | - URLForTilePath: |
| 以tile path生成URL。用于加载tile,此方法默认填充URLTemplate Generate URL from tile path. Used to load tiles, this method defaults to filling URLTemplate More... | |
| (void) | - loadTileAtPath:result: |
| 加载被请求的tile,并以tile数据或加载tile失败error访问回调block;默认实现为首先用URLForTilePath去获取URL,然后用异步NSURLConnection加载tile Load the requested tile and access the callback block with tile data or a tile loading failure error; the default implementation first uses URLForTilePath to obtain the URL, then loads the tile asynchronously with NSURLConnection. More... | |
| (void) | - cancelLoadOfTileAtPath: |
| 取消请求瓦片,当地图显示区域发生变化时,会取消显示区域外的瓦片的下载, 当disableOffScreenTileLoading=YES时会被调用。since 5.3.0 Cancel tile requests, when the map display area changes, it will cancel the download of tiles outside the display area, and it will be called when disableOffScreenTileLoading=YES. since 5.3.0 More... | |
子类可覆盖CustomLoading中的方法来自定义加载MATileOverlay的行为。 Subclasses can override methods in CustomLoading to customize the behavior of loading MATileOverlay
| - (void) cancelLoadOfTileAtPath: | (MATileOverlayPath) | path |
取消请求瓦片,当地图显示区域发生变化时,会取消显示区域外的瓦片的下载, 当disableOffScreenTileLoading=YES时会被调用。since 5.3.0 Cancel tile requests, when the map display area changes, it will cancel the download of tiles outside the display area, and it will be called when disableOffScreenTileLoading=YES. since 5.3.0
| path | tile path |
Extends class MATileOverlay.
| - (void) loadTileAtPath: | (MATileOverlayPath) | path | |
| result: | (void(^)(NSData *tileData, NSError *error)) | result | |
加载被请求的tile,并以tile数据或加载tile失败error访问回调block;默认实现为首先用URLForTilePath去获取URL,然后用异步NSURLConnection加载tile Load the requested tile and access the callback block with tile data or a tile loading failure error; the default implementation first uses URLForTilePath to obtain the URL, then loads the tile asynchronously with NSURLConnection.
| path | tile path |
| result | 用来传入tile数据或加载tile失败的error访问的回调block A callback block used to pass in tile data or access errors when tile loading fails |
Extends class MATileOverlay.
| - (NSURL *) URLForTilePath: | (MATileOverlayPath) | path |
以tile path生成URL。用于加载tile,此方法默认填充URLTemplate Generate URL from tile path. Used to load tiles, this method defaults to filling URLTemplate
| path | tile path |
Extends class MATileOverlay.