单军华
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
32
33
34
35
36
37
38
//
//  BMKAnnotation.h
//  BMapKit
//
//  Copyright 2011 Baidu Inc. All rights reserved.
//
 
#import <CoreGraphics/CoreGraphics.h>
#import <CoreLocation/CoreLocation.h>
#import <Foundation/Foundation.h>
 
/// 该类为标注点的protocol,提供了标注类的基本信息函数
@protocol BMKAnnotation <NSObject>
 
///标注view中心坐标.
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
 
@optional
 
/**
 *获取annotation标题
 *@return 返回annotation的标题信息
 */
- (NSString *)title;
 
/**
 *获取annotation副标题
 *@return 返回annotation的副标题信息
 */
- (NSString *)subtitle;
 
/**
 *设置标注的坐标,在拖拽时会被调用.
 *@param newCoordinate 新的坐标值
 */
- (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate;
 
@end