Detail planovace, verejne planovain

This commit is contained in:
Michal Kváček
2024-06-11 22:03:53 +02:00
parent 852d00b932
commit e01bafee73
10 changed files with 157 additions and 14 deletions
+3 -2
View File
@@ -24,7 +24,8 @@ const props = defineProps({
},
insertPosition: {
type: Number,
required: true
required: false,
default: null
}
});
const emits = defineEmits(["markers-changed", "change-insert-position"]);
@@ -92,7 +93,7 @@ const handleMarkerMove = async (idx, event) => {
:fullscreen-control="false"
:show-info-window="true"
:show-layer-controls="true"
:allow-add-marker="true"
:allow-add-marker="insertPosition !== null"
@add-to-route="addMarker"
@remove-from-route="removeMarker"
>