|
|
@@ -1154,9 +1154,8 @@ export default {
|
|
|
// const currentCenter = this.mapk.getCenter();
|
|
|
// console.log(`当前中心点纬度: ${currentCenter.lat}, 经度: ${currentCenter.lng}`);
|
|
|
// this.getMapposition(e, '2', this.$route.query.tabVal);
|
|
|
- var input = [e.target.se.lat, e.target.se.lng];
|
|
|
- this.currentCenter = new TMap.LatLng(Number(input[0]), Number(input[1]));
|
|
|
- console.log(e);
|
|
|
+ let centerPoint = e.target.getCenter();
|
|
|
+ this.currentCenter = new TMap.LatLng(Number(centerPoint.lat), Number(centerPoint.lng));
|
|
|
console.log(`当前中心点纬度: ${this.currentCenter.lat}, 经度: ${this.currentCenter.lng}`);
|
|
|
},
|
|
|
zoomend(e) {
|