diff --git a/src/components/flightPlans/FlightPlanPlaceInput.vue b/src/components/flightPlans/FlightPlanPlaceInput.vue index 9f48805..2667ba2 100644 --- a/src/components/flightPlans/FlightPlanPlaceInput.vue +++ b/src/components/flightPlans/FlightPlanPlaceInput.vue @@ -29,13 +29,18 @@ const placesFilter = (val, update, abort) => { searchGeocode(val).then(results => { if (!results) return; - placesOptions.value = results.map(result => ({ - name: result.formatted_address, - type: "geocode", - id: null, - gpsLatitude: result.geometry.location.lat, - gpsLongitude: result.geometry.location.lng, - })) + console.log(results) + + placesOptions.value = results.map(result => { + console.log(result, result.geometry.location) + return { + name: result.formatted_address, + type: "geocode", + id: null, + gpsLatitude: result.geometry.location.lat(), + gpsLongitude: result.geometry.location.lng(), + } + }) }); } } else { diff --git a/src/components/flightPlans/FlightPlanRoute.vue b/src/components/flightPlans/FlightPlanRoute.vue index 8e7ba25..c6b055d 100644 --- a/src/components/flightPlans/FlightPlanRoute.vue +++ b/src/components/flightPlans/FlightPlanRoute.vue @@ -31,6 +31,9 @@ const swapMarkers = (idx1, idx2) => { }; const handlePlaceSelect = (modelVal) => { model.value.push(modelVal); + + // TODO: upravit bounds u mapy + } watch(() => model.value, () => { diff --git a/src/components/inputs/MapGPSInput.vue b/src/components/inputs/MapGPSInput.vue index 9d871b1..9c35471 100644 --- a/src/components/inputs/MapGPSInput.vue +++ b/src/components/inputs/MapGPSInput.vue @@ -1,6 +1,6 @@