WIP: exit from building view (buggy)

This commit is contained in:
2026-09-15 11:38:53 +02:00
parent ace42261cf
commit 91b1764913
7 changed files with 83 additions and 14 deletions
+18
View File
@@ -8,10 +8,22 @@
* A lookup table of Leaflet layer groups by category
*/
/**
* @typedef {Object} MapState
* @property {L.Layer} baseLayer
* @property {number} zoom
* @property {L.LatLngExpression} center
* @property {number} minZoom
* @property {number} maxZoom
* A representation of the (current) Leaflet map state
*/
/**
* @typedef {Object} GisStateType
* @property {L.Map|null} map
* @property {{string: L.Layer}|null} baseLayers
* @property {?MapState} currentMapState
* @property {boolean} bViewActive
* @property {MarkerLookup} markers
* @property {LayerGroupLookup} layers
* @property {Object|null} bibliography
@@ -23,6 +35,8 @@
export const GisState = {
map: null,
baseLayers: null,
currentMapState: null,
bViewActive: false,
markers: {
sites: {},
notConserved: {},
@@ -34,6 +48,10 @@ export const GisState = {
},
layers: {
geometries: {},
/**
* @type {L.LayerGroup}
*/
walls: {},
sites: {},
notConserved: {},
findings: {},