From 65c83f0516d9258136fe1dc5d475d2c6d7e08303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98chaoosc=E2=80=99?= <‘chaoosc@gmail.com’> Date: Sat, 11 Nov 2023 11:39:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E4=B8=8D=E5=87=BA=E7=8E=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/distribution/reservation/atlas.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/distribution/reservation/atlas.vue b/src/views/distribution/reservation/atlas.vue index 332149d1..bd97f89d 100644 --- a/src/views/distribution/reservation/atlas.vue +++ b/src/views/distribution/reservation/atlas.vue @@ -90,11 +90,18 @@ watchEffect(() => { // }, 5000); }); function initmap() { - details.mapLoc = new AMap.Map('container', { + + AMap.plugin("AMap.Geocoder",function(){ + details.mapLoc = new AMap.Map('container', { viewMode: '2D', // 默认使用 2D 模式 zoom: 9, //初始化地图层级 center: [104.293242, 30.582939], //初始化地图中心点 }); + + }) + + + } function checkgoto() { let ids = [];