map组件 getCenterLocation 无效
发布于 5 年前 作者 qiaoyan 14942 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

success 没有任何回调

  • 预期表现

给出定位

  • 复现路径
  • 提供一个最简复现 Demo

console.log(‘mapCtx.getCenterLocation’, mapCtx.getCenterLocation);

mapCtx.getCenterLocation({

success: (res) => {

console.log(‘res’, res);

},

complete: (res) => {

console.log(‘res ccc’, res);

}

});

1 回复

麻烦给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题

回到顶部