BMKClusterItem.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // BMKClusterItem.h
  3. // IphoneMapSdkDemo
  4. //
  5. // Created by wzy on 15/9/15.
  6. // Copyright © 2015年 Baidu. All rights reserved.
  7. //
  8. #ifndef BMKClusterItem_h
  9. #define BMKClusterItem_h
  10. #import <Foundation/Foundation.h>
  11. #import <CoreLocation/CoreLocation.h>
  12. /**
  13. * 表示一个标注
  14. */
  15. @interface BMKClusterItem : NSObject
  16. ///经纬度,初始化后,不可修改
  17. @property (nonatomic, assign) CLLocationCoordinate2D coor;
  18. //传递title到annotionView
  19. @property (nonatomic, copy) NSString *title;
  20. @property (nonatomic, copy) NSString *subTitle;
  21. @end
  22. /**
  23. * 聚合后的标注
  24. */
  25. @interface BMKCluster : NSObject
  26. ///经纬度
  27. @property (nonatomic, assign) CLLocationCoordinate2D coordinate;
  28. ///所包含BMKClusterItem
  29. @property (nonatomic, strong) NSMutableArray *clusterItems;
  30. ///包含BMKClusterItem个数
  31. @property (nonatomic, readonly) NSUInteger size;
  32. //传递title到annotionView
  33. @property (nonatomic, copy) NSString *title;
  34. @property (nonatomic, copy) NSString *subTitle;
  35. @end
  36. #endif /* BMKClusterItem_h */