MapContext.moveToLocation(Object object)

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

将地图中心移置当前定位点,此时需设置地图组件 show-location 为true。‘2.8.0’ 起支持将地图中心移动到指定位置。

参数

Object object

属性类型默认值必填说明最低版本
longitudenumber经度2.8.0
latitudenumber纬度2.8.0
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数
completefunction接口调用结束的回调函数(调用成功、失败都会执行)