UX: improve geolocation-indicators

This commit is contained in:
Pieter Vander Vennet 2024-08-10 12:44:23 +02:00
parent 85094fe3ee
commit 4db1db48c8
3 changed files with 46 additions and 12 deletions

View file

@ -4,8 +4,8 @@ import Constants from "../../Models/Constants"
import { MapProperties } from "../../Models/MapProperties"
/**
* Displays an icon depending on the state of the geolocation.
* Will set the 'lock' if clicked twice
* Does the user interaction state with a geolocation button, such as keeping track of the last click,
* and lock status + moving the map when clicked
*/
export class GeolocationControlState {
public readonly lastClick = new UIEventSource<Date>(undefined)