From 234c0ecac8b17e258f955518dabcbf3e4846ba70 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Sat, 10 Aug 2024 04:39:19 +0200 Subject: [PATCH] tested differet tailwind config in CI --- webclient/app/components/DetailsInteractiveMap.vue | 4 ++-- webclient/app/components/IndoorMap.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webclient/app/components/DetailsInteractiveMap.vue b/webclient/app/components/DetailsInteractiveMap.vue index 688cd223e..c798e7b75 100644 --- a/webclient/app/components/DetailsInteractiveMap.vue +++ b/webclient/app/components/DetailsInteractiveMap.vue @@ -25,6 +25,7 @@ function loadInteractiveMap() { if (document.getElementById("interactive-map")?.classList.contains("maplibregl-map")) { marker.value?.remove(); } else { + // @ts-expect-error somehow this is too deep for typescript map.value = initMap("interactive-map"); document.getElementById("interactive-map")?.classList.remove("loading"); @@ -33,7 +34,6 @@ function loadInteractiveMap() { marker.value = new Marker({ element: createMarker() }); const coords = props.data.coords; if (map.value !== undefined) { - // @ts-expect-error somehow this is too deep for typescript marker.value.setLngLat([coords.lon, coords.lat]); marker.value.addTo(map.value as Map); } @@ -74,7 +74,7 @@ function createMarker(hueRotation = 0) { return markerDiv; } -function initMap(containerId: string) { +function initMap(containerId: string): Map { const map = new Map({ container: containerId, // to make sure that users can share urls diff --git a/webclient/app/components/IndoorMap.vue b/webclient/app/components/IndoorMap.vue index 760e60aff..01763ecdd 100644 --- a/webclient/app/components/IndoorMap.vue +++ b/webclient/app/components/IndoorMap.vue @@ -74,7 +74,7 @@ function createMarker(hueRotation = 0): HTMLDivElement { return markerDiv; } -async function initMap(containerId: string) { +async function initMap(containerId: string): Promise { const map = new Map({ container: containerId, // to make sure that users can share urls