BMKClusterManager.h 627 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // BMKClusterManager.h
  3. // IphoneMapSdkDemo
  4. //
  5. // Created by wzy on 15/9/15.
  6. // Copyright © 2015年 Baidu. All rights reserved.
  7. //
  8. #ifndef BMKClusterManager_h
  9. #define BMKClusterManager_h
  10. #import <Foundation/Foundation.h>
  11. #import "BMKClusterAlgorithm.h"
  12. /**
  13. * 点聚合管理类
  14. */
  15. @interface BMKClusterManager : NSObject
  16. ///添加item
  17. - (void)addClusterItem:(BMKClusterItem*)clusterItem;
  18. ///清除items
  19. - (void)clearClusterItems;
  20. /**
  21. * 获取聚合后的标注
  22. * @param zoomLevel map的级别
  23. * @return BMKCluster数组
  24. */
  25. - (NSArray*)getClusters:(CGFloat) zoomLevel;
  26. @end
  27. #endif /* BMKClusterManager_h */