UNPKG

@arcgis/map-components

Version:
22 lines (21 loc) 981 B
import { default as ActionButton } from '@arcgis/core/support/actions/ActionButton.js'; import { Nil } from '@arcgis/components-utils'; import { default as GeolocationPositioning } from '../../geolocation/GeolocationPositioning'; import { ArcgisLocate } from './customElement.js'; type State = "disabled" | "error" | "feature-unsupported" | "locating" | "ready"; export declare const removeSelectedFeature: ActionButton; declare class LocateViewModel extends GeolocationPositioning { constructor(properties?: Partial<LocateViewModel>); protected initialize(): void; destroy(): void; private _locateController; currentPosition: GeolocationPosition | null; error: GeolocationPositionError | Nil; messages: Nil | NonNullable<ArcgisLocate["messageOverrides"]>; popupEnabled: boolean; get state(): State; locate(): Promise<GeolocationPosition | null>; cancelLocate(): void; private _updatePopupTemplate; } export default LocateViewModel;