MapContext.translateMarker

MapContext.translateMarker(Object object)

基础库 1.2.0 开始支持,低版本需做兼容处理。

以 Promise 风格 调用:不支持

小程序插件:支持

相关文档: map

功能描述

平移marker,带动画。

参数

Object object

属性 类型 默认值 必填 说明 最低版本
markerId number 是 指定 marker
destination Object 是 指定 marker 移动到的目标点
结构属性类型默认值必填说明longitudenumber是经度latitudenumber是纬度
autoRotate boolean 是 移动过程中是否自动旋转 marker
rotate number 是 marker 的旋转角度
moveWithRotate boolean false 否 平移和旋转同时进行 2.13.0
duration number 1000 否 动画持续时长,平移与旋转分别计算
animationEnd function 否 动画结束回调函数
success function 否 接口调用成功的回调函数
fail function 否 接口调用失败的回调函数
complete function 否 接口调用结束的回调函数(调用成功、失败都会执行)
posted on 2025-01-05 19:30  AtlasLapetos  阅读(48)  评论(0)    收藏  举报