This commit is contained in:
xianfuxing 2018-08-29 21:35:21 +08:00
parent 68db231f8e
commit 7d10a9398a
2 changed files with 3 additions and 1 deletions

View File

@ -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',

View File

@ -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) => {