Skip to content

High performance self-hosted photo and video management solution.

286 B
Raw Blame
import type { LatLng } from '#lib/types.ts';

class GeolocationManager {
  #lastPoint = $state<LatLng>();

  get lastPoint() {
    return this.#lastPoint;
  }

  onSelected(point: LatLng) {
    this.#lastPoint = point;
  }
}

export const geolocationManager = new GeolocationManager();