diff --git a/resources/js/Components/Map/MapContainer.vue b/resources/js/Components/Map/MapContainer.vue index 05be59b..9f73cd5 100644 --- a/resources/js/Components/Map/MapContainer.vue +++ b/resources/js/Components/Map/MapContainer.vue @@ -21,7 +21,7 @@ const props = defineProps<{ const emit = defineEmits<{ clickMap: [e: MapBrowserEvent], - clickFeature: [feature: ol.Feature], + clickFeature: [feature: Feature], }>(); const vectorLayer = new VectorLayer(); @@ -70,7 +70,7 @@ onMounted(() => { }) if (feature) { - emit('clickFeature', feature as unknown as ol.Feature); + emit('clickFeature', feature as unknown as Feature); return; } diff --git a/resources/js/Pages/Parchments/Index.vue b/resources/js/Pages/Parchments/Index.vue index 02f830d..aa58cdb 100644 --- a/resources/js/Pages/Parchments/Index.vue +++ b/resources/js/Pages/Parchments/Index.vue @@ -19,7 +19,7 @@ const features = props.parchments.map(parchment => new Feature({ } })) -function handleClickFeature(feature) { +function handleClickFeature(feature: Feature): void { const parchmentId = feature.get('data').parchmentId; router.visit(route('parchments.show', parchmentId))