高德地图SDK(导航)  V9.8.1
MATileOverlay Class Reference

该类是覆盖在球面墨卡托投影上的图片tiles的数据源 More...

#import <MATileOverlay.h>

Inheritance diagram for MATileOverlay:
MABaseOverlay <MAOverlay> <MAAnnotation> MAHeatMapTileOverlay

Instance Methods

(NSInteger minimumZ) - __attribute
 tileOverlay的可见最小Zoom值 More...
 
(NSInteger maximumZ) - __attribute
 tileOverlay的可见最大Zoom值 More...
 
(id) - initWithURLTemplate:
 根据指定的URLTemplate生成tileOverlay More...
 
(NSURL *) - URLForTilePath:
 以tile path生成URL。用于加载tile,此方法默认填充URLTemplate More...
 
(void) - loadTileAtPath:result:
 加载被请求的tile,并以tile数据或加载tile失败error访问回调block;默认实现为首先用URLForTilePath去获取URL,然后用异步NSURLConnection加载tile More...
 
(void) - cancelLoadOfTileAtPath:
 取消请求瓦片,当地图显示区域发生变化时,会取消显示区域外的瓦片的下载, 当disableOffScreenTileLoading=YES时会被调用。since 5.3.0 More...
 
- Instance Methods inherited from <MAOverlay>
(CLLocationCoordinate2D) - coordinate
 返回区域中心坐标 More...
 
(MAMapRect- boundingMapRect
 区域外接矩形 More...
 
- Instance Methods inherited from <MAAnnotation>
(void) - setCoordinate:
 设置标注的坐标,在拖拽时会被调用. More...
 

Properties

CGSize tileSize
 瓦片大小,默认是256x256, 最小支持64*64 More...
 
NSString * URLTemplate
 同initWithURLTemplate:中的URLTemplate More...
 
BOOL canReplaceMapContent
 暂未开放 More...
 
BOOL disableOffScreenTileLoading
 是否停止不在显示区域内的瓦片下载,默认NO. since 5.3.0 More...
 
- Properties inherited from MABaseOverlay
CLLocationCoordinate2D coordinate
 返回区域中心坐标 More...
 
MAMapRect boundingMapRect
 区域外接矩形 More...
 
double altitude
 海拔,单位米,默认0 More...
 
- Properties inherited from <MAAnnotation>
NSString * title
 annotation标题 More...
 
NSString * subtitle
 annotation副标题 More...
 
double altitude
 annotation海拔高度,单位米,默认0 More...
 

Additional Inherited Members

- Protected Attributes inherited from MABaseOverlay
double _altitude
 海拔 More...
 

Detailed Description

该类是覆盖在球面墨卡托投影上的图片tiles的数据源

Method Documentation

◆ __attribute [1/2]

- (NSInteger minimumZ) __attribute ((deprecated("已废弃, 调用不起任何作用。since 9.6.0"))) 

tileOverlay的可见最小Zoom值

◆ __attribute [2/2]

- (NSInteger maximumZ) __attribute ((deprecated("已废弃, 调用不起任何作用。since 9.6.0"))) 

tileOverlay的可见最大Zoom值

◆ cancelLoadOfTileAtPath:

- (void) cancelLoadOfTileAtPath: (MATileOverlayPath path

取消请求瓦片,当地图显示区域发生变化时,会取消显示区域外的瓦片的下载, 当disableOffScreenTileLoading=YES时会被调用。since 5.3.0

Parameters
pathtile path

Provided by category MATileOverlay(CustomLoading).

◆ initWithURLTemplate:

- (id) initWithURLTemplate: (NSString *)  URLTemplate

根据指定的URLTemplate生成tileOverlay

Parameters
URLTemplateURLTemplate是一个包含"{x}","{y}","{z}","{scale}"的字符串,"{x}","{y}","{z}","{scale}"会被tile path的值所替换,并生成用来加载tile图片数据的URL 。例如 http://server/path?x={x}&y={y}&z={z}&scale={scale}
Returns
以指定的URLTemplate字符串生成tileOverlay

◆ loadTileAtPath:result:

- (void) loadTileAtPath: (MATileOverlayPath path
result: (void(^)(NSData *tileData, NSError *error))  result 

加载被请求的tile,并以tile数据或加载tile失败error访问回调block;默认实现为首先用URLForTilePath去获取URL,然后用异步NSURLConnection加载tile

Parameters
pathtile path
result用来传入tile数据或加载tile失败的error访问的回调block

Provided by category MATileOverlay(CustomLoading).

◆ URLForTilePath:

- (NSURL *) URLForTilePath: (MATileOverlayPath path

以tile path生成URL。用于加载tile,此方法默认填充URLTemplate

Parameters
pathtile path
Returns
以tile path生成tileOverlay

Provided by category MATileOverlay(CustomLoading).

Property Documentation

◆ canReplaceMapContent

- (BOOL) canReplaceMapContent
readwritenonatomicassign

暂未开放

◆ disableOffScreenTileLoading

- (BOOL) disableOffScreenTileLoading
readwritenonatomicassign

是否停止不在显示区域内的瓦片下载,默认NO. since 5.3.0

◆ tileSize

- (CGSize) tileSize
readwritenonatomicassign

瓦片大小,默认是256x256, 最小支持64*64

◆ URLTemplate

- (NSString*) URLTemplate
readatomicassign

同initWithURLTemplate:中的URLTemplate


The documentation for this class was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。