立得地图iOS SDK 地图&搜索服务参考手册 V1.7.0
构造函数 | 属性 | 所有成员列表
LMKClusterManager类 参考

#import <LMKClusterManager.h>

类 LMKClusterManager 继承关系图:

构造函数

(void)  - clusterPOIs:finish:
 
(void)  - updateMapViewAnnotations
 
(void)  - deletePOI:
 
(void)  - addPOI:
 

属性

LMKMapView mapView
  聚合地图 更多...
 
NSInteger  maxClusterLevel
  最大聚合级别(3到地图比例尺之间) 更多...
 
NSInteger  minClusterNum
  最小聚合个数(最小聚合个数为2) 更多...
 
NSArray< LMKPOI * > *  pois
  所有的聚合点集合(下标为-1的为已删除的点) 更多...
 

函数文档

- (void) addPOI: (NSArray< LMKPOI * > *)  pois

添加poi,如果失败则需要重新聚合

- (void) clusterPOIs: (NSArray< LMKPOI * > *)  pois
finish: (void(^)(LMKMapRect maxRect))  block 

聚合标注点

参数
pois 需要聚合的数据集(LMKPOI数组)
block 聚合构建完成的回调
- (void) deletePOI: (NSArray< LMKPOI * > *)  pois

删除poi

- (void) updateMapViewAnnotations

添加和更新annotations

属性说明

- (LMKMapView*) mapView
readwritenonatomicweak

聚合地图

- (NSInteger) maxClusterLevel
readwritenonatomicassign

最大聚合级别(3到地图比例尺之间)

- (NSInteger) minClusterNum
readwritenonatomicassign

最小聚合个数(最小聚合个数为2)

- (NSArray<LMKPOI *>*) pois
readnonatomicstrong

所有的聚合点集合(下标为-1的为已删除的点)


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