map拖动后的经纬度怎么获取?
发布于 5 年前 作者 guiying51 4045 次浏览 来自 官方Issues

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

1 回复
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()
        }
      })
    }
  },
回到顶部