BaiduMap_IOSSDK_v6.6.2_Docs 6.6.2
|
通过异步方法获取瓦片数据,是一个抽象类,需要通过继承该类,并重载 loadTileForX:y:zoom:result: 方法 瓦片图片是jpeg或者png格式,size为256x256 更多...
#include <BMKTileLayer.h>
构造函数 | |
(void) | - loadTileForX:y:zoom:result: |
通过异步方法获取瓦片数据,子类必须实现该方法 | |
![]() | |
(BOOL) | - intersectsMapRect: |
![]() | |
(NSString *) | - title |
获取annotation标题 | |
(NSString *) | - subtitle |
获取annotation副标题 | |
(void) | - setCoordinate: |
额外继承的成员函数 | |
![]() | |
NSInteger | minZoom |
tileLayer的可见最小Zoom值,默认3 | |
NSInteger | maxZoom |
tileLayer的可见最大Zoom值,默认21,且不能小于minZoom | |
BMKMapRect | visibleMapRect |
tileOverlay的可渲染区域,默认世界范围 | |
![]() | |
CLLocationCoordinate2D | coordinate |
返回区域中心坐标. | |
BMKMapRect | boundingMapRect |
返回区域外接矩形 | |
![]() | |
CLLocationCoordinate2D | coordinate |
标注view中心坐标. | |
通过异步方法获取瓦片数据,是一个抽象类,需要通过继承该类,并重载 loadTileForX:y:zoom:result: 方法 瓦片图片是jpeg或者png格式,size为256x256
- (void) loadTileForX: | (NSInteger) | x | |
y: | (NSInteger) | y | |
zoom: | (NSInteger) | zoom | |
result: | (void(^)(UIImage *tileImage, NSError *error)) | result |
通过异步方法获取瓦片数据,子类必须实现该方法
x | 瓦片坐标 |
y | 瓦片坐标 |
zoom | 瓦片坐标 |
result | 用来传入瓦片数据或加载瓦片失败的error访问的回调block |