|
高德地图SDK(导航)
V11.1.000
|
#import <MATileOverlay.h>
Instance Methods | |
| (NSInteger minimumZ) | - __attribute |
| (NSInteger maximumZ) | - __attribute |
| (id) | - initWithURLTemplate: |
| 根据指定的URLTemplate生成tileOverlay Generate tileOverlay based on the specified URLTemplate More... | |
| (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... | |
Instance Methods inherited from <MAOverlay> | |
| (CLLocationCoordinate2D) | - coordinate |
| (MAMapRect) | - boundingMapRect |
Instance Methods inherited from <MAAnnotation> | |
| (void) | - setCoordinate: |
| 设置标注的坐标,在拖拽时会被调用. Set the coordinates of the annotation, which will be called during dragging More... | |
Properties | |
| CGSize | tileSize |
| NSString * | URLTemplate |
| BOOL | canReplaceMapContent |
| BOOL | disableOffScreenTileLoading |
Properties inherited from MABaseOverlay | |
| CLLocationCoordinate2D | coordinate |
| MAMapRect | boundingMapRect |
| double | altitude |
Properties inherited from <MAAnnotation> | |
| NSString * | title |
| NSString * | subtitle |
| double | altitude |
Additional Inherited Members | |
Protected Attributes inherited from MABaseOverlay | |
| double | _altitude |
| 海拔 Elevation More... | |
该类是覆盖在球面墨卡托投影上的图片tiles的数据源 This class is the data source for image tiles covering the spherical Mercator projection
| - (NSInteger minimumZ) __attribute | ((deprecated("Deprecated, calling has no effect. since 9.6.0"))) |
tileOverlay的可见最小Zoom值 The minimum visible Zoom value for tileOverlay
| - (NSInteger maximumZ) __attribute | ((deprecated("Deprecated, calling has no effect. since 9.6.0"))) |
tileOverlay的可见最大Zoom值 The maximum visible Zoom value of tileOverlay
| - (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 |
Provided by category MATileOverlay(CustomLoading).
| - (id) initWithURLTemplate: | (NSString *) | URLTemplate |
根据指定的URLTemplate生成tileOverlay Generate tileOverlay based on the specified URLTemplate
| URLTemplate | URLTemplate是一个包含"{x}","{y}","{z}","{scale}"的字符串,"{x}","{y}","{z}","{scale}"会被tile path的值所替换,并生成用来加载tile图片数据的URL 。例如 http://server/path?x={x}&y={y}&z={z}&scale={scale} URLTemplate is a string containing "{x}","{y}","{z}","{scale}", where "{x}","{y}","{z}","{scale}" will be replaced by the tile path value to generate the URL for loading tile image data. For example, http://server/path?x={x}&y={y}&z={z}&scale={scale} |
| - (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 |
Provided by category MATileOverlay(CustomLoading).
| - (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 |
Provided by category MATileOverlay(CustomLoading).
|
readwritenonatomicassign |
暂未开放 not yet open
|
readwritenonatomicassign |
是否停止不在显示区域内的瓦片下载,默认NO. since 5.3.0 whether to stop downloading tiles outside the display area, default is NO. since 5.3.0
|
readwritenonatomicassign |
瓦片大小,默认是256x256, 最小支持64*64 Tile size, default is 256x256, minimum support is 64*64
|
readatomicassign |
同initWithURLTemplate:中的URLTemplate Same as the URLTemplate in initWithURLTemplate: