# Conflicts:
#	src/components/LeafletTest.vue
This commit is contained in:
2026-03-13 12:06:48 -04:00
parent e45a9eb20c
commit d1cb31b2c8
8 changed files with 164 additions and 115 deletions

21
src/stores/leaflet.ts Normal file
View File

@@ -0,0 +1,21 @@
import { defineStore, acceptHMRUpdate } from 'pinia';
interface State {
zoom: number
center: [number, number]
markerLatLng: [number, number]
}
export const useLeafletStore = defineStore('leaflet', {
state: (): State => {
return {
zoom: 10,
center: [40.71278, -74.00594],
markerLatLng: [40.71278, -74.00594],
}
},
})
if (import.meta.hot) {
import.meta.hot.accept(acceptHMRUpdate(useLeafletStore, import.meta.hot));
}