# MapContext.moveAlong(Object object)

Start from base library version 2.13.0. Please remaining backward compatible.

with Promise style call: Not supported

Mini Program plugin: Support

Move along a specified path markerFor track playback and other scenarios. A callback event is triggered when the animation is complete. If animation is in progress, the marker Call again moveAlong Method, the previous animation will be interrupted.

# parameter

# Object object

attribute type Default values Required Introductions
Markers number yes Designation marker
path Array yes Coordinate string of moving path, coordinate point format {longitude, latitude}
autoRotate boolean true no 初始值 marker Rotation angle
duration number yes Smooth moving time
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Callback function at the end of an interface call (both successful and unsuccessful calls are executed)