refactor: change location (#27201)

This commit is contained in:
Jason Rasmussen
2026-03-26 13:22:14 -04:00
committed by GitHub
parent fae25dbe65
commit 940a1d4ab8
10 changed files with 119 additions and 96 deletions
@@ -0,0 +1,15 @@
import type { LatLng } from '$lib/types';
class GeolocationManager {
#lastPoint = $state<LatLng>();
get lastPoint() {
return this.#lastPoint;
}
onSelected(point: LatLng) {
this.#lastPoint = point;
}
}
export const geolocationManager = new GeolocationManager();