BMKOverlay.h 799 Bytes
Newer Older
曹云霄's avatar
曹云霄 committed
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 32
/*
 *  BMKOverlay.h
 *  BMapKit
 *
 *  Copyright 2011 Baidu Inc. All rights reserved.
 *
 */

#import "BMKAnnotation.h"
#import "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