forked from MapComplete/MapComplete
UX: improve geolocation-indicators
This commit is contained in:
parent
85094fe3ee
commit
4db1db48c8
3 changed files with 46 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue