39 lines
791 B
Objective-C
39 lines
791 B
Objective-C
//
|
||
// 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
|