This commit is contained in:
lesion 2022-11-25 10:51:35 +01:00
parent f1799357db
commit 11fc9ffc57
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -89,7 +89,7 @@ export default {
// });
// this.$refs.map.mapObject.MyLocate();
// },
routeBy () {
routeBy (type) {
const lat = this.event.place.latitude
const lon = this.event.place.longitude
const routingType = {
@ -98,7 +98,7 @@ export default {
transit: null,
car: "engine=fossgis_osrm_car"
}
return `https://www.openstreetmap.org/directions?from=&to=${lat},${lon}&${routingType}#map=14/${lat}/${lon}`
return `https://www.openstreetmap.org/directions?from=&to=${lat},${lon}&${routingType[type]}#map=14/${lat}/${lon}`
},
}
}