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); //注册监听,当选中某条记录时会触发 } );