• Returns a store, creates it if necessary.

    Parameters

    • Optionalpinia: null | Pinia

      Pinia instance to retrieve the store

    • Optionalhot: StoreGeneric

      dev only hot module replacement

    Returns Store<"details", _UnwrapAll<Pick<{
        activeGreedy: Ref<number, number>;
        addConfigProperty: ((item: DetailsItemInstance) => void);
        currentFeatureId: Ref<undefined | string, undefined | string>;
        defaultTemplates: Ref<{
            [type: string]: string;
        }, {
            [type: string]: string;
        }>;
        hilightToggle: Ref<boolean, boolean>;
        lastHilight: Ref<number, number>;
        origin: Ref<undefined | DetailsRequestOrigin, undefined | DetailsRequestOrigin>;
        payload: Ref<{
            errored: boolean;
            items: {
                data: any;
                format: IdentifyResultFormat;
                loaded: boolean;
                loading: {
                    [toStringTag]: string;
                    catch<TResult>(onrejected?: (...) | (...) | (...)): Promise<(...)>;
                    finally(onfinally?: (...) | (...) | (...)): Promise<(...)>;
                    then<TResult1, TResult2>(onfulfilled?: (...) | (...) | (...), onrejected?: (...) | (...) | (...)): Promise<(...)>;
                };
                started: boolean;
                load(): Promise<void>;
            }[];
            layerId: string;
            loaded: boolean;
            loading: {
                [toStringTag]: string;
                catch<TResult>(onrejected?: null | ((reason: any) => (...) | (...))): Promise<void | TResult>;
                finally(onfinally?: null | (() => void)): Promise<void>;
                then<TResult1, TResult2>(onfulfilled?: null | ((value: void) => (...) | (...)), onrejected?: null | ((reason: any) => (...) | (...))): Promise<TResult1 | TResult2>;
            };
            requestTime: number;
            uid: string;
        }[], IdentifyResult[] | {
            errored: boolean;
            items: {
                data: any;
                format: IdentifyResultFormat;
                loaded: boolean;
                loading: {
                    [toStringTag]: ...;
                    catch<TResult>(onrejected?: ...): ...;
                    finally(onfinally?: ...): ...;
                    then<TResult1, TResult2>(onfulfilled?: ..., onrejected?: ...): ...;
                };
                started: boolean;
                load(): Promise<(...)>;
            }[];
            layerId: string;
            loaded: boolean;
            loading: {
                [toStringTag]: string;
                catch<TResult>(onrejected?: null | ((reason: ...) => ...)): Promise<(...) | (...)>;
                finally(onfinally?: null | (() => ...)): Promise<void>;
                then<TResult1, TResult2>(onfulfilled?: null | ((value: ...) => ...), onrejected?: null | ((reason: ...) => ...)): Promise<(...) | (...)>;
            };
            requestTime: number;
            uid: string;
        }[]>;
        properties: Ref<{
            [id: string]: DetailsItemInstance;
        }, {
            [id: string]: DetailsItemInstance;
        }>;
        removeLayer: ((layer: LayerInstance) => void);
    },
        | "payload"
        | "properties"
        | "defaultTemplates"
        | "currentFeatureId"
        | "activeGreedy"
        | "lastHilight"
        | "hilightToggle"
        | "origin">>, Pick<{
        activeGreedy: Ref<number, number>;
        addConfigProperty: ((item: DetailsItemInstance) => void);
        currentFeatureId: Ref<undefined | string, undefined | string>;
        defaultTemplates: Ref<{
            [type: string]: string;
        }, {
            [type: string]: string;
        }>;
        hilightToggle: Ref<boolean, boolean>;
        lastHilight: Ref<number, number>;
        origin: Ref<undefined | DetailsRequestOrigin, undefined | DetailsRequestOrigin>;
        payload: Ref<{
            errored: boolean;
            items: {
                data: any;
                format: IdentifyResultFormat;
                loaded: boolean;
                loading: {
                    [toStringTag]: string;
                    catch<TResult>(onrejected?: null | ((reason: ...) => ...)): Promise<(...) | (...)>;
                    finally(onfinally?: null | (() => ...)): Promise<void>;
                    then<TResult1, TResult2>(onfulfilled?: null | ((value: ...) => ...), onrejected?: null | ((reason: ...) => ...)): Promise<(...) | (...)>;
                };
                started: boolean;
                load(): Promise<void>;
            }[];
            layerId: string;
            loaded: boolean;
            loading: {
                [toStringTag]: string;
                catch<TResult>(onrejected?: null | ((reason: any) => TResult | PromiseLike<(...)>)): Promise<void | TResult>;
                finally(onfinally?: null | (() => void)): Promise<void>;
                then<TResult1, TResult2>(onfulfilled?: null | ((value: void) => TResult1 | PromiseLike<(...)>), onrejected?: null | ((reason: any) => TResult2 | PromiseLike<(...)>)): Promise<TResult1 | TResult2>;
            };
            requestTime: number;
            uid: string;
        }[], IdentifyResult[] | {
            errored: boolean;
            items: {
                data: any;
                format: IdentifyResultFormat;
                loaded: boolean;
                loading: {
                    [toStringTag]: string;
                    catch<TResult>(onrejected?: (...) | (...) | (...)): Promise<(...)>;
                    finally(onfinally?: (...) | (...) | (...)): Promise<(...)>;
                    then<TResult1, TResult2>(onfulfilled?: (...) | (...) | (...), onrejected?: (...) | (...) | (...)): Promise<(...)>;
                };
                started: boolean;
                load(): Promise<void>;
            }[];
            layerId: string;
            loaded: boolean;
            loading: {
                [toStringTag]: string;
                catch<TResult>(onrejected?: null | ((reason: any) => (...) | (...))): Promise<void | TResult>;
                finally(onfinally?: null | (() => void)): Promise<void>;
                then<TResult1, TResult2>(onfulfilled?: null | ((value: void) => (...) | (...)), onrejected?: null | ((reason: any) => (...) | (...))): Promise<TResult1 | TResult2>;
            };
            requestTime: number;
            uid: string;
        }[]>;
        properties: Ref<{
            [id: string]: DetailsItemInstance;
        }, {
            [id: string]: DetailsItemInstance;
        }>;
        removeLayer: ((layer: LayerInstance) => void);
    }, never>, Pick<{
        activeGreedy: Ref<number, number>;
        addConfigProperty: ((item: DetailsItemInstance) => void);
        currentFeatureId: Ref<undefined | string, undefined | string>;
        defaultTemplates: Ref<{
            [type: string]: string;
        }, {
            [type: string]: string;
        }>;
        hilightToggle: Ref<boolean, boolean>;
        lastHilight: Ref<number, number>;
        origin: Ref<undefined | DetailsRequestOrigin, undefined | DetailsRequestOrigin>;
        payload: Ref<{
            errored: boolean;
            items: {
                data: any;
                format: IdentifyResultFormat;
                loaded: boolean;
                loading: {
                    [toStringTag]: string;
                    catch<TResult>(onrejected?: null | ((reason: ...) => ...)): Promise<(...) | (...)>;
                    finally(onfinally?: null | (() => ...)): Promise<void>;
                    then<TResult1, TResult2>(onfulfilled?: null | ((value: ...) => ...), onrejected?: null | ((reason: ...) => ...)): Promise<(...) | (...)>;
                };
                started: boolean;
                load(): Promise<void>;
            }[];
            layerId: string;
            loaded: boolean;
            loading: {
                [toStringTag]: string;
                catch<TResult>(onrejected?: null | ((reason: any) => TResult | PromiseLike<(...)>)): Promise<void | TResult>;
                finally(onfinally?: null | (() => void)): Promise<void>;
                then<TResult1, TResult2>(onfulfilled?: null | ((value: void) => TResult1 | PromiseLike<(...)>), onrejected?: null | ((reason: any) => TResult2 | PromiseLike<(...)>)): Promise<TResult1 | TResult2>;
            };
            requestTime: number;
            uid: string;
        }[], IdentifyResult[] | {
            errored: boolean;
            items: {
                data: any;
                format: IdentifyResultFormat;
                loaded: boolean;
                loading: {
                    [toStringTag]: string;
                    catch<TResult>(onrejected?: (...) | (...) | (...)): Promise<(...)>;
                    finally(onfinally?: (...) | (...) | (...)): Promise<(...)>;
                    then<TResult1, TResult2>(onfulfilled?: (...) | (...) | (...), onrejected?: (...) | (...) | (...)): Promise<(...)>;
                };
                started: boolean;
                load(): Promise<void>;
            }[];
            layerId: string;
            loaded: boolean;
            loading: {
                [toStringTag]: string;
                catch<TResult>(onrejected?: null | ((reason: any) => (...) | (...))): Promise<void | TResult>;
                finally(onfinally?: null | (() => void)): Promise<void>;
                then<TResult1, TResult2>(onfulfilled?: null | ((value: void) => (...) | (...)), onrejected?: null | ((reason: any) => (...) | (...))): Promise<TResult1 | TResult2>;
            };
            requestTime: number;
            uid: string;
        }[]>;
        properties: Ref<{
            [id: string]: DetailsItemInstance;
        }, {
            [id: string]: DetailsItemInstance;
        }>;
        removeLayer: ((layer: LayerInstance) => void);
    }, "removeLayer" | "addConfigProperty">>

Properties

Properties

$id: "details"

Id of the store. Used by map helpers.