Added more options to leaflet map instance

This commit is contained in:
Alexis
2026-04-04 17:57:01 +02:00
parent 1d57cc3c3d
commit 74f1629bf4
2 changed files with 15 additions and 4 deletions

View File

@@ -7,8 +7,16 @@ export const SPOTS_MAX = 99
export const useMap = defineStore('map', () => {
const zoom = ref(10)
const minZoom = 6
const minZoom = 8
const center = ref<PointTuple>([48.11180645878813, -1.6637869497745246])
const topLeftCorner: PointTuple = [48.88261491330733, -3.437430524894775]
const bottomRightCorner: PointTuple = [47.31027605502938, 0.6437600778583776]
const maxBounds: PointTuple[] = [topLeftCorner, bottomRightCorner]
const maxBoundsViscosity = 0.9
const extraOptions: Record<string, any> = {
zoomControl: false,
}
const maxClusterRadius = 28
const disableClusteringAtZoom = 17
@@ -26,8 +34,11 @@ export const useMap = defineStore('map', () => {
zoom,
minZoom,
center,
maxBounds,
maxBoundsViscosity,
maxClusterRadius,
disableClusteringAtZoom,
extraOptions,
filterUncovered,
filterCovered,
filterKorrigo,