@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
38 lines (37 loc) • 1.39 kB
TypeScript
import Geolocation from 'ol/Geolocation.js';
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
type GeolocationStatus = 'off' | 'error' | 'searching' | 'tracking' | 'headlock';
export default class GeolocationMobile extends GirafeHTMLElement {
protected templateUrl: string | null;
protected styleUrls: string[] | null;
template: () => import("uhtml").Hole;
geolocation: Geolocation | null;
status: GeolocationStatus;
statusBeforeError: GeolocationStatus;
private readonly positionFeature;
private readonly accuracyFeature;
private readonly headingFeature;
private readonly vectorLayer;
private shouldCenter;
private isTrackingOutsideView;
private lastPositionTimestamp;
private isPressed;
private hasLongpressed;
constructor();
protected connectedCallback(): void;
private pauseTracking;
private updateIconIfTrackingOutside;
getIconForStatus(): any;
pointerUp(e: PointerEvent): void;
pointerDown(e: PointerEvent): void;
preventContextMenu(e: PointerEvent): boolean;
getCssClassesForStatus(): "blink" | "black-to-blue blink" | "black-to-blue" | "alpha" | "black-to-red blink";
private stopTracking;
private startTracking;
private isTracking;
private centerToView;
private isGeolocationInView;
enableHeadLock(): void;
disableHeadlock(): void;
}
export {};