diff --git a/src/components/inputs/MapGPSInput.vue b/src/components/inputs/MapGPSInput.vue
index 0ab4b39..41987ac 100644
--- a/src/components/inputs/MapGPSInput.vue
+++ b/src/components/inputs/MapGPSInput.vue
@@ -20,7 +20,7 @@ const props = defineProps({
});
const emits = defineEmits(["update:gpsLatitude", "update:gpsLongitude", "notFound"]);
-const {emitModels, setCoordinatesFromGeocode, center, zoom} = useGeocode(emits);
+const {emitModels, setCoordinatesFromGeocode, searchGeocode, center, zoom} = useGeocode(emits);
const markerDropped = (position) => {
emitModels(position.latLng.lat(), position.latLng.lng());
}
@@ -30,6 +30,9 @@ onMounted(() => {
center.value.lng = props.gpsLongitude;
center.value.lat = props.gpsLatitude
} else if (props.label) {
+ searchGeocode(props.label).then(result => {
+
+ });
setCoordinatesFromGeocode(props.label);
} else {
console.error("Set either label or gps coordinates.");
diff --git a/src/components/map/AirspaceInfoWindow.vue b/src/components/map/AirspaceInfoWindow.vue
index 22321ea..aa7012d 100644
--- a/src/components/map/AirspaceInfoWindow.vue
+++ b/src/components/map/AirspaceInfoWindow.vue
@@ -2,16 +2,28 @@
import {InfoWindow} from "vue3-google-map";
import {useFlightPlanUtils} from "src/composables/flightPlan";
import {useGeocode} from "src/composables/geocoding";
-import {onMounted, ref, watch} from "vue";
+import {ref, watch} from "vue";
+import {useAirspaceColors} from "src/composables/airspaces";
+import AltitudeLimit from "components/AltitudeLimit.vue";
const props = defineProps({
infoWindow: {
type: Object,
required: true
+ },
+ highlightedAirspaces: {
+ type: Array,
+ required: false,
+ default: () => []
+ },
+ showActions: {
+ type: Boolean,
+ required: false,
+ default: false
}
});
-const emits = defineEmits(["add-to-route", "close"])
+const emits = defineEmits(["add-to-route", "highlight-airspace", "close"])
const {getIcon} = useFlightPlanUtils();
const {searchPlaceName} = useGeocode()
@@ -41,6 +53,11 @@ const addPoint = async () => {
}
emits("add-to-route", point)
}
+
+const {getColorByType} = useAirspaceColors();
+const highlightAirspace = (airspace) => {
+ emits('highlight-airspace', airspace.name)
+}
@@ -52,25 +69,54 @@ const addPoint = async () => {
{{ title }}
-
-
- {{ infoWindow.marker.name }}
-
+
+
+ {{ infoWindow.marker.name }}
+
{{ infoWindow.poi.name }}
-
- {{ infoWindow.poi }}
Prostory
-
- {{ airspace.name }}
-
+
+
+
+
+
+ {{ airspace.name }}
+
+
+
+
+
+
+
- Přidat bod do trasy
+
+ Přidat bod do trasy
+