mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
16 lines
283 B
TypeScript
16 lines
283 B
TypeScript
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();
|