map拖动后的经纬度怎么获取?

发布于 7 年前作者 guiying514235 次浏览最后编辑 7 年前来自 issues

地图拖动触发bindregionchange事件时,怎么获取拖动后的经纬度

1 回复
tao39
tao391 楼5 年前
getCenterLocation: function (e) {
    let that = this
    if (e.type == 'end' && e.causedBy == 'drag') {
      that.mapCtx.getCenterLocation({
        success(res) {
          that.setData({
            lat: res.latitude,
            lng: res.longitude
          })
          //that.moveGetUsers()
        }
      })
    }
  },