iOS高德地图SDK(3D)  V7.5.0
MAAnimatedAnnotation Class Reference

支持动画效果的点标注 More...

#import <MAAnimatedAnnotation.h>

Inheritance diagram for MAAnimatedAnnotation:
MAPointAnnotation MAShape MAUserLocation

Instance Methods

(MAAnnotationMoveAnimation *) - addMoveAnimationWithKeyCoordinates:count:withDuration:withName:completeCallback:
 添加移动动画, 第一个添加的动画以当前coordinate为起始点,沿传入的coordinates点移动,否则以上一个动画终点为起始点. since 4.5.0 More...
 
(MAAnnotationMoveAnimation *) - addMoveAnimationWithKeyCoordinates:count:withDuration:withName:completeCallback:stepCallback:
 添加移动动画, 第一个添加的动画以当前coordinate为起始点,沿传入的coordinates点移动,否则以上一个动画终点为起始点. since 5.4.0 More...
 
(NSArray< MAAnnotationMoveAnimation * > *) - allMoveAnimations
 获取所有未完成的移动动画, 返回数组内为MAAnnotationMoveAnimation对象. since 4.5.0 More...
 
(void) - setNeedsStart
 设置需要开始动画,自定义其他类型动画时需要调用. since 6.0.0 More...
 

Properties

CLLocationDirection movingDirection
 移动方向. since 4.5.0 More...
 
- Properties inherited from MAPointAnnotation
CLLocationCoordinate2D coordinate
 经纬度 More...
 
BOOL lockedToScreen
 是否固定在屏幕一点, 注意,拖动或者手动改变经纬度,都会导致设置失效 More...
 
CGPoint lockedScreenPoint
 固定屏幕点的坐标 More...
 
- Properties inherited from MAShape
NSString * title
 标题 More...
 
NSString * subtitle
 副标题 More...
 

Additional Inherited Members

- Protected Attributes inherited from MAShape
NSString * _title
 标题 More...
 
NSString * _subtitle
 副标题 More...
 

Detailed Description

支持动画效果的点标注

Method Documentation

◆ addMoveAnimationWithKeyCoordinates:count:withDuration:withName:completeCallback:()

- (MAAnnotationMoveAnimation *) addMoveAnimationWithKeyCoordinates: (CLLocationCoordinate2D *)  coordinates
count: (NSUInteger)  count
withDuration: (CGFloat)  duration
withName: (NSString *)  name
completeCallback: (void(^)(BOOL isFinished))  completeCallback 

添加移动动画, 第一个添加的动画以当前coordinate为起始点,沿传入的coordinates点移动,否则以上一个动画终点为起始点. since 4.5.0

Parameters
coordinatesc数组,由调用者负责coordinates指向内存的管理
countcoordinates数组大小
duration动画时长,0或<0为无动画
name名字,如不指定可传nil
completeCallback动画完成回调,isFinished: 动画是否执行完成

◆ addMoveAnimationWithKeyCoordinates:count:withDuration:withName:completeCallback:stepCallback:()

- (MAAnnotationMoveAnimation *) addMoveAnimationWithKeyCoordinates: (CLLocationCoordinate2D *)  coordinates
count: (NSUInteger)  count
withDuration: (CGFloat)  duration
withName: (NSString *)  name
completeCallback: (void(^)(BOOL isFinished))  completeCallback
stepCallback: (void(^)(MAAnnotationMoveAnimation *currentAni))  stepCallback 

添加移动动画, 第一个添加的动画以当前coordinate为起始点,沿传入的coordinates点移动,否则以上一个动画终点为起始点. since 5.4.0

Parameters
coordinatesc数组,由调用者负责coordinates指向内存的管理
countcoordinates数组大小
duration动画时长,0或<0为无动画
name名字,如不指定可传nil
completeCallback动画完成回调,isFinished: 动画是否执行完成
stepCallback动画每一帧回调

◆ allMoveAnimations()

- (NSArray<MAAnnotationMoveAnimation*> *) allMoveAnimations

获取所有未完成的移动动画, 返回数组内为MAAnnotationMoveAnimation对象. since 4.5.0

Returns
返回所有移动动画,数组内元素类型为 MAAnnotationMoveAnimation

◆ setNeedsStart()

- (void) setNeedsStart

设置需要开始动画,自定义其他类型动画时需要调用. since 6.0.0

Property Documentation

◆ movingDirection

- (CLLocationDirection) movingDirection
readwritenonatomicassign

移动方向. since 4.5.0


The documentation for this class was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。