修改九龙坡区中心点坐标

This commit is contained in:
wangyan21 2023-11-23 10:47:55 +08:00
parent 52a1100bcb
commit 6037d5da37

View File

@ -124,8 +124,6 @@ export default {
}).then((AMap) => { }).then((AMap) => {
that.map = new AMap.Map("allmap", { that.map = new AMap.Map("allmap", {
zoom: 17, // zoom: 17, //
// center: [108.664136, 31.947671], //
// mapStyle: "amap://styles/macaron",
viewMode: "3D", //3D, viewMode: "3D", //3D,
// rotation:45, // rotation:45,
resizeEnable: true, resizeEnable: true,
@ -142,7 +140,7 @@ export default {
heightFactor: 2, // 2 3D heightFactor: 2, // 2 3D
}), }),
], ],
center: [108.664136, 31.947671], // center: [106.510567, 29.502292], //
}); });
// //
// that.map.on("click", (e) =>{ // that.map.on("click", (e) =>{
@ -161,8 +159,8 @@ export default {
AMap.plugin( AMap.plugin(
["AMap.PlaceSearch", "AMap.Autocomplete"], ["AMap.PlaceSearch", "AMap.Autocomplete"],
(status, result) => { (status, result) => {
console.log("加载status", status); // console.log("status", status);
console.log("加载result", result); // console.log("result", result);
let autoOptions1 = { let autoOptions1 = {
input: "tipinput", input: "tipinput",
city: "重庆", city: "重庆",
@ -171,8 +169,8 @@ export default {
that.startPlaceSearch = new AMap.PlaceSearch({ that.startPlaceSearch = new AMap.PlaceSearch({
map: that.map, map: that.map,
}); });
console.log("加载that.startAutoComplete", that.startAutoComplete); // console.log("that.startAutoComplete", that.startAutoComplete);
console.log("加载that.startPlaceSearch", that.startPlaceSearch); // console.log("that.startPlaceSearch", that.startPlaceSearch);
that.startAutoComplete.on("select", that.handleStartSelect); // that.startAutoComplete.on("select", that.handleStartSelect); //
} }
); );