MAOverlay.h 759 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // MAOverlay.h
  3. // MAMapKit
  4. //
  5. // Created by AutoNavi.
  6. // Copyright (c) 2013年 Amap. All rights reserved.
  7. //
  8. #import "MAAnnotation.h"
  9. #import "MAGeometry.h"
  10. ///该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
  11. @protocol MAOverlay <MAAnnotation>
  12. @required
  13. ///返回区域中心坐标
  14. @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
  15. ///区域外接矩形
  16. @property (nonatomic, readonly) MAMapRect boundingMapRect;
  17. @optional
  18. /**
  19. * @brief 判断boundingMapRect和给定的mapRect是否相交,可以用MAMapRectIntersectsRect([overlay boundingMapRect], mapRect)替代
  20. * @param mapRect 指定的map rect
  21. * @return 两个矩形是否相交
  22. */
  23. - (BOOL)intersectsMapRect:(MAMapRect)mapRect;
  24. @end