# MapContext.translateMarker(Object object)

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

Translation market, animated

# Parameter

# Object object
property type default value optional description version
markerId number yes Specified marker
destination Object yes Destination point the specified marker moved to
autoRotate boolean yes Whether the marker automatically rotates while moving
rotate number yes Rotating angle of the marker
duration number 1000 no Animation duration. Translation and rotation are calculated separately
animationEnd function no The callback function returned when the animation ends
success function no 接口调用成功的回调函数
fail function no 接口调用失败的回调函数
complete function no 接口调用结束的回调函数(调用成功、失败都会执行)

object.destination 's valid value

property type default value optional description version
longitude number yes Longitude
latitude number yes Latitude