Skip to content

获取中心点

调用方法

getMapCenter(option)

option

名称类型说明默认
successfunction调用成功回调-
failfunction调用失败回调-

示例代码

javascript
// mosowe-tdt
TDTRenderRef.value.getMapCenter().then(res => {
  console.log(res);
});
// mosowe-tdt-x
TDTRenderRef.value?.getMapCenter?.().then(res => {
  console.log(res);
});

贡献者

mosowe

文档版本 v1.0.1