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