This commit is contained in:
2026-06-25 10:21:55 -04:00
parent 257232f6f1
commit bd073a4613
5 changed files with 133 additions and 139 deletions

View File

@@ -15,7 +15,7 @@ import { fromLonLat, toLonLat } from 'ol/proj'
import { Style, Fill, Stroke, Circle as CircleStyle } from 'ol/style'
import 'ol/ol.css'
const current = ref([0, 0]);
const current = ref({latitude: 0, longitude: 0});
const props = defineProps<{ dark: boolean }>()
const mapEl = ref<HTMLDivElement>()
const showOverlays = ref(false)
@@ -60,7 +60,7 @@ function buildWindSrc(lat: number, lon: number, zoom: number) {
function syncWindSrc() {
const view = map.getView()
const center = toLonLat(view.getCenter()!)
const center: any = toLonLat(view.getCenter()!)
windSrc.value = buildWindSrc(center[1], center[0], view.getZoom() ?? 8)
}