From 6037d5da37ad4a98eda80f3aba7fd92003374b7a Mon Sep 17 00:00:00 2001 From: wangyan21 Date: Thu, 23 Nov 2023 10:47:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B9=9D=E9=BE=99=E5=9D=A1?= =?UTF-8?q?=E5=8C=BA=E4=B8=AD=E5=BF=83=E7=82=B9=E5=9D=90=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/cityManage/mapInfo/geography/index.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/god-ui/src/views/cityManage/mapInfo/geography/index.vue b/god-ui/src/views/cityManage/mapInfo/geography/index.vue index 7e1bb52c..680333e5 100644 --- a/god-ui/src/views/cityManage/mapInfo/geography/index.vue +++ b/god-ui/src/views/cityManage/mapInfo/geography/index.vue @@ -124,8 +124,6 @@ export default { }).then((AMap) => { that.map = new AMap.Map("allmap", { zoom: 17, //级别 - // center: [108.664136, 31.947671], //中心点坐标 - // mapStyle: "amap://styles/macaron", viewMode: "3D", //开启3D视图,默认为关闭 // rotation:45, resizeEnable: true, @@ -142,7 +140,7 @@ export default { heightFactor: 2, // 2 倍于默认高度(3D 视图下生效) }), ], - center: [108.664136, 31.947671], //中心点坐标 + center: [106.510567, 29.502292], //中心点坐标 }); // 地图点击事件 // that.map.on("click", (e) =>{ @@ -161,8 +159,8 @@ export default { AMap.plugin( ["AMap.PlaceSearch", "AMap.Autocomplete"], (status, result) => { - console.log("加载status", status); - console.log("加载result", result); + // console.log("加载status", status); + // console.log("加载result", result); let autoOptions1 = { input: "tipinput", city: "重庆", @@ -171,8 +169,8 @@ export default { that.startPlaceSearch = new AMap.PlaceSearch({ map: that.map, }); - console.log("加载that.startAutoComplete", that.startAutoComplete); - console.log("加载that.startPlaceSearch", that.startPlaceSearch); + // console.log("加载that.startAutoComplete", that.startAutoComplete); + // console.log("加载that.startPlaceSearch", that.startPlaceSearch); that.startAutoComplete.on("select", that.handleStartSelect); //注册监听,当选中某条记录时会触发 } );