GeoLeaf Core API - v3.0.0
    Preparing search index...

    Internal runtime state for the geolocation control. Tracks live map artefacts that must be cleaned up when geolocation stops.

    interface IGeoLocationState {
        hasMarker: boolean;
        hasAccuracyLayer: boolean;
        pendingGeolocToast: HTMLElement | null | undefined;
        recenterBtn: HTMLButtonElement | null;
    }
    Index

    Properties

    hasMarker: boolean

    Whether the user-position marker is currently on the map.

    hasAccuracyLayer: boolean

    Whether the accuracy-circle GeoJSON layer is currently on the map.

    pendingGeolocToast: HTMLElement | null | undefined

    Toast element shown while the GPS fix is pending. Dismissed on first fix or on error. Undefined before the first start attempt.

    recenterBtn: HTMLButtonElement | null

    The floating re-center button appended to the map container.