MAAnnotationMoveAnimation.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // MAAnnotationMoveAnimation.h
  3. // MAMapKit
  4. //
  5. // Created by shaobin on 16/11/21.
  6. // Copyright © 2016 Amap. All rights reserved.
  7. //
  8. #import "MAConfig.h"
  9. #import <Foundation/Foundation.h>
  10. #import "MAAnnotation.h"
  11. ///annotation移动动画. since 4.5.0
  12. @interface MAAnnotationMoveAnimation : NSObject
  13. /**
  14. * @brief 获取动画名字
  15. * @return 添加动画时传入的名字
  16. */
  17. - (NSString *)name;
  18. /**
  19. * @brief 获取经纬度坐标点数组
  20. * @return 返回经纬度坐标点数组
  21. */
  22. - (CLLocationCoordinate2D *)coordinates;
  23. /**
  24. * @brief 获取coordinates数组内坐标点个数
  25. * @return coordinates数组内坐标点个数
  26. */
  27. - (NSUInteger)count;
  28. /**
  29. * @brief 获取动画时长
  30. * @return 动画时长
  31. */
  32. - (CGFloat)duration;
  33. /**
  34. * @brief 获取动画已执行的时长
  35. * @return 动画已执行的时长
  36. */
  37. - (CGFloat)elapsedTime;
  38. /**
  39. * @brief 取消
  40. */
  41. - (void)cancel;
  42. /**
  43. * @brief 是否已取消
  44. * @return YES已取消,NO未取消
  45. */
  46. - (BOOL)isCancelled;
  47. /**
  48. * @brief 获取当前动画已走过点的总个数
  49. * @return 个数
  50. */
  51. - (NSInteger)passedPointCount;
  52. @end