# up
This commit is contained in:
parent
68db231f8e
commit
7d10a9398a
|
@ -22,10 +22,11 @@ import VueAMap from 'vue-amap'
|
||||||
Vue.use(VueAMap)
|
Vue.use(VueAMap)
|
||||||
|
|
||||||
VueAMap.initAMapApiLoader({
|
VueAMap.initAMapApiLoader({
|
||||||
key: '29fc9d79996d548cb00726229752cd1f',
|
key: '49842c6fe4d24df80871faec2e272a00',
|
||||||
plugin: [
|
plugin: [
|
||||||
'AMap.Geolocation',
|
'AMap.Geolocation',
|
||||||
'AMap.Driving',
|
'AMap.Driving',
|
||||||
|
'AMap.Walking',
|
||||||
'AMap.Autocomplete',
|
'AMap.Autocomplete',
|
||||||
'AMap.PlaceSearch',
|
'AMap.PlaceSearch',
|
||||||
'AMap.Scale',
|
'AMap.Scale',
|
||||||
|
|
|
@ -84,6 +84,7 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
pName: 'Driving',
|
pName: 'Driving',
|
||||||
|
policy: 'AMap.DrivingPolicy.LEAST_TIME',
|
||||||
events: {
|
events: {
|
||||||
init(o) {
|
init(o) {
|
||||||
o.search(self.center, [113.276316, 23.112071], (status, result) => {
|
o.search(self.center, [113.276316, 23.112071], (status, result) => {
|
||||||
|
|
Loading…
Reference in New Issue