mirror of
https://github.com/KevinMidboe/nova-map-fields.git
synced 2025-10-29 17:50:27 +00:00
Updated delimiter for navigation cords query
This commit is contained in:
2
dist/js/field.js
vendored
2
dist/js/field.js
vendored
File diff suppressed because one or more lines are too long
@@ -37,8 +37,8 @@ export default {
|
||||
methods: {
|
||||
queryNavigation(markers) {
|
||||
const cords = markers
|
||||
.map((marker) => `${marker.lng},${marker.lat};`)
|
||||
.slice(0, -1);
|
||||
.map((marker) => `${marker.lng},${marker.lat}`)
|
||||
.join(";");
|
||||
|
||||
const URL = `https://api.mapbox.com/directions/v5/mapbox/driving/${cords}?geometries=geojson&access_token=pk.eyJ1Ijoia2V2aW5taWRib2UiLCJhIjoiY2pydWhlamQyMHJ2NTRhdGN1em5ndXVyMyJ9.Ejdo_3iuuGOD662Bh6es4w`;
|
||||
return fetch(URL)
|
||||
|
||||
Reference in New Issue
Block a user