]> git.openstreetmap.org Git - nominatim-ui.git/blob - src/state/MapState.svelte.js
Rebundle latest version
[nominatim-ui.git] / src / state / MapState.svelte.js
1 class MapState {
2   center = $state();
3   zoom = $state();
4   viewboxStr = $state();
5   lastClick = $state();
6   mousePos = $state();
7
8   reset() {
9     this.center = undefined;
10     this.zoom = undefined;
11     this.viewboxStr = '';
12     this.lastClick = undefined;
13     this.mousePos = undefined;
14   }
15 }
16
17 export const mapState = new MapState();