# MapContext.translateMarker(Object object)
Start from base library version 1.2.0. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Support
Translation marker, with animation.
# parameter
# Object object
attribute | type | Default values | Required | Introductions | Minimum version |
---|---|---|---|---|---|
Markers | number | yes | Designation marker | ||
destination | Object | yes | Designation marker Moving to the target point | ||
autoRotate | boolean | yes | Whether to automatically rotate during the movement marker | ||
rotate | number | yes | marker Rotation angle | ||
moveWithRotate | boolean | false | no | Translation and rotation simultaneously | 2.13.0 |
duration | number | 1000 | no | Animation duration, translation and rotation calculated separately | |
animationEnd | function | no | End of animation callback function | ||
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) |
object.destination Structure
attribute | type | Default values | Required | Introductions |
---|---|---|---|---|
longitude | number | yes | longitude | |
latitude | number | yes | latitude |