Cleanup
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user