Vicemene funkcni mapova cast planovace

This commit is contained in:
Michal Kváček
2024-04-29 06:45:29 +02:00
parent bc0b5e2f15
commit 0760e6fb1c
9 changed files with 111 additions and 70 deletions
+9 -3
View File
@@ -37,8 +37,14 @@ const {getMarkersFrom} = useFlightPlanUtils();
const infoWindow = ref(infoWindowObject({}));
const handleMapClick = ({clickCoordinates, airspaces, airport}) => {
infoWindow.value = infoWindowObject({active: true, airspaces, position: clickCoordinates, airport})
const handleMapClick = ({clickCoordinates, airspaces, airport, reportingPoint}) => {
infoWindow.value = infoWindowObject({
active: true,
position: clickCoordinates,
airspaces,
airport,
reportingPoint,
})
}
const handleMarkerClick = (marker) => {
@@ -81,7 +87,6 @@ const handleMarkerMove = async (idx, event) => {
</script>
<template>
vkladam na pozici {{ insertPosition }}
<MapWrapper
style="width: 100%; height: 100%; min-height: 500px"
:center="center"
@@ -89,6 +94,7 @@ const handleMarkerMove = async (idx, event) => {
:airspaces-data="airspaceData"
:airports="airports"
v-bind="$attrs"
:fullscreen-control="false"
@map-click="handleMapClick"
>
<AirspaceInfoWindow