MAAnnotation.h 940 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // MAAnnotation.h
  3. // MAMapKit
  4. //
  5. // Created by AutoNavi on 13-12-13.
  6. // Copyright (c) 2013年 AutoNavi. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <CoreGraphics/CoreGraphics.h>
  10. #import <CoreLocation/CoreLocation.h>
  11. /*!
  12. @brief 该类为标注点的protocol,提供了标注类的基本信息函数
  13. */
  14. @protocol MAAnnotation <NSObject>
  15. /*!
  16. @brief 标注view中心坐标
  17. */
  18. @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
  19. @optional
  20. /*!
  21. @brief 获取annotation标题
  22. @return 返回annotation的标题信息
  23. */
  24. @property (nonatomic, readonly, copy) NSString *title;
  25. /*!
  26. @brief 获取annotation副标题
  27. @return 返回annotation的副标题信息
  28. */
  29. @property (nonatomic, readonly, copy) NSString *subtitle;
  30. /**
  31. @brief 设置标注的坐标,在拖拽时会被调用.
  32. @param newCoordinate 新的坐标值
  33. */
  34. - (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate;
  35. @end