BMKOverlay.h 816 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * BMKOverlay.h
  3. * BMapKit
  4. *
  5. * Copyright 2011 Baidu Inc. All rights reserved.
  6. *
  7. */
  8. #import "BMKAnnotation.h"
  9. #import <BaiduMapAPI_Base/BMKTypes.h>
  10. /// 该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
  11. @protocol BMKOverlay <BMKAnnotation>
  12. @required
  13. /// 返回区域中心坐标.
  14. @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
  15. /// 返回区域外接矩形
  16. @property (nonatomic, readonly) BMKMapRect boundingMapRect;
  17. @optional
  18. /**
  19. *判断指定的矩形是否与本Overlay相交,用于更精确的控制overlay view的显示.
  20. *默认使用BMKMapRectIntersectsRect([overlay boundingRect], mapRect)代替.
  21. *@param mapRect 指定的BMKMapRect
  22. *@return 如果相交返回YES,否则返回NO
  23. */
  24. - (BOOL)intersectsMapRect:(BMKMapRect)mapRect;
  25. @end