Added more options to leaflet map instance
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user