Basic map and cluster setup + popup info

This commit is contained in:
Alexis
2026-03-24 23:13:23 +01:00
parent e7cc6c432e
commit ff773e1d1c
5 changed files with 681 additions and 24 deletions

15
src/stores/map.ts Normal file
View File

@@ -0,0 +1,15 @@
import type { PointTuple } from 'leaflet'
import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useMap = defineStore('map', () => {
const zoom = ref(7)
const minZoom = 4
const center = ref<PointTuple>([47.809376, -0.637207])
return {
zoom,
minZoom,
center,
}
})