iOS高德地图SDK(3D)  V6.9.0
MAAnimatedAnnotation.h
Go to the documentation of this file.
1 //
2 // MAAnimatedAnnotation.h
3 // MAMapKit
4 //
5 // Created by shaobin on 16/12/8.
6 // Copyright © 2016 Amap. All rights reserved.
7 //
8 
9 #import "MAConfig.h"
10 #import "MAPointAnnotation.h"
12 
14 @interface MAAnimatedAnnotation : MAPointAnnotation<MAAnimatableAnnotation>
15 
17 @property (nonatomic, assign) CLLocationDirection movingDirection;
18 
27 - (MAAnnotationMoveAnimation *)addMoveAnimationWithKeyCoordinates:(CLLocationCoordinate2D *)coordinates
28  count:(NSUInteger)count
29  withDuration:(CGFloat)duration
30  withName:(NSString *)name
31  completeCallback:(void(^)(BOOL isFinished))completeCallback;
32 
42 - (MAAnnotationMoveAnimation *)addMoveAnimationWithKeyCoordinates:(CLLocationCoordinate2D *)coordinates
43  count:(NSUInteger)count
44  withDuration:(CGFloat)duration
45  withName:(NSString *)name
46  completeCallback:(void(^)(BOOL isFinished))completeCallback
47  stepCallback:(void(^)(MAAnnotationMoveAnimation* currentAni))stepCallback;
48 
53 - (NSArray<MAAnnotationMoveAnimation*> *)allMoveAnimations;
54 
58 - (void)setNeedsStart;
59 
60 @end
点标注数据
Definition: MAPointAnnotation.h:14
NSArray< MAAnnotationMoveAnimation * > * allMoveAnimations()
获取所有未完成的移动动画, 返回数组内为MAAnnotationMoveAnimation对象. since 4.5.0
支持动画效果的点标注
Definition: MAAnimatedAnnotation.h:14
annotation移动动画. since 4.5.0
Definition: MAAnnotationMoveAnimation.h:15
void setNeedsStart()
设置需要开始动画,自定义其他类型动画时需要调用. since 6.0.0
CLLocationDirection movingDirection
移动方向. since 4.5.0
Definition: MAAnimatedAnnotation.h:17
© 2017 高德信息技术有限公司 版权所有,保留所有权利。