立得地图iOS SDK 地图&搜索服务参考手册 V1.7.0
LMKClusterManager.h
浏览该文件的文档.
1 //
2 // LMKClusterManager.h
3 // LeadorMapSDK
4 //
5 // Created by 李帅 on 2017/6/6.
6 // Copyright © 2017年 zhangyuanke. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "LMKMapView.h"
11 #import "LMKClusterAnnotation.h"
12 #import "LMKPOI.h"
13 
14 @interface LMKClusterManager : NSObject
15 
19 @property (nonatomic, weak) LMKMapView *mapView;
20 
24 @property (nonatomic, assign) NSInteger maxClusterLevel;
25 
29 @property (nonatomic, assign) NSInteger minClusterNum;
30 
34 @property (nonatomic, strong, readonly) NSArray <LMKPOI *>*pois;
35 
42 - (void)clusterPOIs:(NSArray<LMKPOI*> *)pois finish:(void(^)(LMKMapRect maxRect))block;
43 
48 
52 - (void)deletePOI:(NSArray<LMKPOI*> *)pois;
53 
57 - (void)addPOI:(NSArray<LMKPOI*> *)pois;
58 
59 
60 @end
地图view
Definition: LMKMapView.h:36
NSInteger minClusterNum
最小聚合个数(最小聚合个数为2)
Definition: LMKClusterManager.h:29
LMKMapView * mapView
聚合地图
Definition: LMKClusterManager.h:19
NSInteger maxClusterLevel
最大聚合级别(3到地图比例尺之间)
Definition: LMKClusterManager.h:24
void updateMapViewAnnotations()
Definition: LMKClusterManager.h:14
NSArray< LMKPOI * > * pois
所有的聚合点集合(下标为-1的为已删除的点)
Definition: LMKClusterManager.h:34
平面投影矩形结构定义
Definition: LMKGeometry.h:45
Definition: LMKPOI.h:12