From 7d10a9398aca1dc0cc23f9671ba04639274b39a6 Mon Sep 17 00:00:00 2001 From: xianfuxing Date: Wed, 29 Aug 2018 21:35:21 +0800 Subject: [PATCH] # up --- src/main.js | 3 ++- src/views/counter/map.vue | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index b74d90a..556b911 100644 --- a/src/main.js +++ b/src/main.js @@ -22,10 +22,11 @@ import VueAMap from 'vue-amap' Vue.use(VueAMap) VueAMap.initAMapApiLoader({ - key: '29fc9d79996d548cb00726229752cd1f', + key: '49842c6fe4d24df80871faec2e272a00', plugin: [ 'AMap.Geolocation', 'AMap.Driving', + 'AMap.Walking', 'AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', diff --git a/src/views/counter/map.vue b/src/views/counter/map.vue index 89f0b05..d43dd43 100644 --- a/src/views/counter/map.vue +++ b/src/views/counter/map.vue @@ -84,6 +84,7 @@ export default { }, { pName: 'Driving', + policy: 'AMap.DrivingPolicy.LEAST_TIME', events: { init(o) { o.search(self.center, [113.276316, 23.112071], (status, result) => {