百度地图SDK for iOS v4.1.1 类参考
|
通过提供url模板的方法,提供数据源。不应该继承该类,且必须通过 initWithURLTemplate: 来初始化 瓦片图片是jpeg或者png格式,size为256x256 更多...
#import <BMKTileLayer.h>
构造函数 | |
(id) | - initWithURLTemplate: |
根据指定的URLTemplate生成tileOverlay 更多... | |
(BOOL) | - cleanTileDataCache |
清除当前瓦片图层缓存图片 | |
属性 | |
NSString * | URLTemplate |
同initWithURLTemplate:中的URLTemplate | |
![]() | |
NSInteger | minZoom |
tileLayer的可见最小Zoom值,默认3 | |
NSInteger | maxZoom |
tileLayer的可见最大Zoom值,默认21,且不能小于minZoom | |
BMKMapRect | visibleMapRect |
tileOverlay的可渲染区域,默认世界范围 | |
通过提供url模板的方法,提供数据源。不应该继承该类,且必须通过 initWithURLTemplate: 来初始化 瓦片图片是jpeg或者png格式,size为256x256
- (id) 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}。 |