高德地图SDK(导航)  V11.1.000
MAAnnotation.h
Go to the documentation of this file.
1 //
2 // MAAnnotation.h
3 // MAMapKit
4 //
5 // Created by yin cai on 11-12-13.
6 // Copyright (c) 2011年 Amap. All rights reserved.
7 //
8 
9 #import "MAConfig.h"
10 #import <CoreGraphics/CoreGraphics.h>
11 #import <CoreLocation/CoreLocation.h>
12 #import <Foundation/Foundation.h>
13 #import "MAGeometry.h"
14 
17 @protocol MAAnnotation <NSObject>
18 
21 @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
22 
23 @optional
24 
27 @property (nonatomic, copy) NSString *title;
28 
31 @property (nonatomic, copy) NSString *subtitle;
32 
39 - (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate;
40 
43 @property (nonatomic, assign) double altitude;
44 @end
45 
52 @protocol MAAnimatableAnnotation <NSObject>
53 
54 @required
61 - (void)step:(CGFloat)timeDelta;
62 
69 - (BOOL)isAnimationFinished;
70 
77 - (BOOL)shouldAnimationStart;
78 
79 @optional
86 - (CLLocationDirection)rotateDegree;
87 
88 
89 @end
Definition: MAAnnotation.h:52
BOOL shouldAnimationStart()
动画是否可以开始. 通过此方法判断是否需要将动画annotation加入渲染过程,已经start且尚未finish的动画标注才会调用step方法。(since 6....
CLLocationDirection rotateDegree()
动画更新时调用此接口,获取annotationView的旋转角度,不实现默认为0. (since 4.5.0) This interface is called when the animation i...
BOOL isAnimationFinished()
动画是否已完成. 通过此方法判断是否需要将动画annotation移出渲染执行过程。(since 4.5.0) Whether the animation has been completed....
Definition: MAAnnotation.h:17
NSString * subtitle
Definition: MAAnnotation.h:31
CLLocationCoordinate2D coordinate
Definition: MAAnnotation.h:21
NSString * title
Definition: MAAnnotation.h:27
double altitude
Definition: MAAnnotation.h:43
© 2017 高德信息技术有限公司 版权所有,保留所有权利。