BaiduMap_IOSSDK_v6.5.5doc_Docs  6.5.5
构造函数 | 属性 | 所有成员列表
BMKURLTileLayer类 参考

通过提供url模板的方法,提供数据源。不应该继承该类,且必须通过 initWithURLTemplate: 来初始化 瓦片图片是jpeg或者png格式,size为256x256 更多...

#import <BMKTileLayer.h>

类 BMKURLTileLayer 继承关系图:
BMKTileLayer <BMKOverlay> <BMKAnnotation>

构造函数

(instancetype) - initWithURLTemplate:
 根据指定的URLTemplate生成tileOverlay 更多...
 
(BOOL) - cleanTileDataCache
 清除当前瓦片图层缓存图片 更多...
 
- 构造函数 继承自 <BMKOverlay>
(BOOL) - intersectsMapRect:
 
- 构造函数 继承自 <BMKAnnotation>
(NSString *) - title
 获取annotation标题 更多...
 
(NSString *) - subtitle
 获取annotation副标题 更多...
 
(void) - setCoordinate:
 

属性

NSString * URLTemplate
 同initWithURLTemplate:中的URLTemplate 更多...
 
- 属性 继承自 BMKTileLayer
NSInteger minZoom
 tileLayer的可见最小Zoom值,默认3 更多...
 
NSInteger maxZoom
 tileLayer的可见最大Zoom值,默认21,且不能小于minZoom 更多...
 
BMKMapRect visibleMapRect
 tileOverlay的可渲染区域,默认世界范围 更多...
 
- 属性 继承自 <BMKOverlay>
CLLocationCoordinate2D coordinate
 返回区域中心坐标. 更多...
 
BMKMapRect boundingMapRect
 返回区域外接矩形 更多...
 
- 属性 继承自 <BMKAnnotation>
CLLocationCoordinate2D coordinate
 标注view中心坐标. 更多...
 

详细描述

通过提供url模板的方法,提供数据源。不应该继承该类,且必须通过 initWithURLTemplate: 来初始化 瓦片图片是jpeg或者png格式,size为256x256

函数文档

◆ cleanTileDataCache

- (BOOL) cleanTileDataCache

清除当前瓦片图层缓存图片

◆ initWithURLTemplate:

- (instancetype) initWithURLTemplate: (NSString *)  URLTemplate

根据指定的URLTemplate生成tileOverlay

参数
URLTemplate是一个包含"{x}","{y}","{z}"的字符串,"{x}","{y}"表示tile的坐标,"{z}"表示当tile显示的级别。"{x}","{y}","{z}"会被tile的坐标值所替换,并生成用来加载tile图片数据的URL 。例如: http://server/path?x={x}&y={y}&z={z}
返回
以指定的URLTemplate字符串生成tileOverlay

属性说明

◆ URLTemplate

- (NSString*) URLTemplate
readatomicassign

同initWithURLTemplate:中的URLTemplate


该类的文档由以下文件生成: