Vicemene funkcni mapova cast planovace
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user