BaiduMap_IOSSDK_v6.6.2_Docs 6.6.2
载入中...
搜索中...
未找到
构造函数 | 所有成员列表
BMKAsyncTileLayer类 参考

通过异步方法获取瓦片数据,是一个抽象类,需要通过继承该类,并重载 loadTileForX:y:zoom:result: 方法 瓦片图片是jpeg或者png格式,size为256x256 更多...

#include <BMKTileLayer.h>

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

构造函数

(void) - loadTileForX:y:zoom:result:
 通过异步方法获取瓦片数据,子类必须实现该方法
 
- 构造函数 继承自 <BMKOverlay>
(BOOL) - intersectsMapRect:
 
- 构造函数 继承自 <BMKAnnotation>
(NSString *) - title
 获取annotation标题
 
(NSString *) - subtitle
 获取annotation副标题
 
(void) - setCoordinate:
 

额外继承的成员函数

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

详细描述

通过异步方法获取瓦片数据,是一个抽象类,需要通过继承该类,并重载 loadTileForX:y:zoom:result: 方法 瓦片图片是jpeg或者png格式,size为256x256

函数文档

◆ loadTileForX:y:zoom:result:

- (void) loadTileForX: (NSInteger) x
y: (NSInteger) y
zoom: (NSInteger) zoom
result: (void(^)(UIImage *tileImage, NSError *error)) result 

通过异步方法获取瓦片数据,子类必须实现该方法

参数
x瓦片坐标
y瓦片坐标
zoom瓦片坐标
result用来传入瓦片数据或加载瓦片失败的error访问的回调block

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