iOS高德地图SDK(3D) V11.2.0001

Instance Methods | List of all members
MATileOverlay(CustomLoading) Category Reference

`#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...

## Detailed Description

子类可覆盖CustomLoading中的方法来自定义加载MATileOverlay的行为。 Subclasses can override methods in CustomLoading to customize the behavior of loading MATileOverlay

## Method Documentation

## ◆ cancelLoadOfTileAtPath:

- (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

Parameters

  path | tile path

Extends class MATileOverlay.

## ◆ loadTileAtPath:result:

- (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.

Parameters

  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.

## ◆ URLForTilePath:

- (NSURL *) URLForTilePath: |  | (MATileOverlayPath) | path |

以tile path生成URL。用于加载tile,此方法默认填充URLTemplate Generate URL from tile path. Used to load tiles, this method defaults to filling URLTemplate

Parameters

  path | tile path

Returns
  以tile path生成tileOverlay Generate tileOverlay from tile path

Extends class MATileOverlay.

The documentation for this category was generated from the following file:

- MATileOverlay.h

© 2017 高德信息技术有限公司 版权所有，保留所有权利。