地图找房——移动小区到地图中心 计算点击覆盖物移动的距离 // 点击位置坐标 const { clientX, clientY } = e.changedTouches[0] // 移动距离 const x = (window.innerHeight - 330) / 2 - clientX const y = window.innerWidth / 2 - clientY 控制地图的移动 x,y参数表示地图移动的距离 map.panBy(x, y) 居中处理效果