Skip to content

@eodash/eodash / Configuration / EodashStore

Interface: EodashStore

Properties

actions

ts
actions: object;

changeMapProjection

Change eox-map projection from an EPSG code or a registered projection code

ts
changeMapProjection: (code?) => Promise<void>;
Parameters
code?

| string | number | { def: string; name: string; }

Returns

Promise<void>

getLayers

returns the layers of the eox-map

ts
getLayers: (el?) => object[];
Parameters
el?

string

eox-map element selector

Returns

object[]

registerProjection

Register EPSG projection in eox-map and adds it to availableMapProjection

ts
registerProjection: (code?) => Promise<void>;
Parameters
code?

| string | number | { def: string; name: string; }

Returns

Promise<void>


stac

Pinia store definition used to navigate the root STAC catalog.

ts
stac: object;

useSTAcStore

ts
useSTAcStore: SetupStoreDefinition<
  "stac",
  {
    colormapRegistry: Ref<
      Record<string, string[]> | null,
      Record<string, string[]> | null
    >;
    init: (endpoint) => void;
    isApi: Ref<boolean, boolean>;
    loadColormapRegistry: (registry) => Promise<void>;
    loadSelectedCompareSTAC: (
      relativePath?,
      isPOI?,
      stacItem?,
    ) => Promise<void>;
    loadSelectedSTAC: (relativePath?, isPoi?, stacItem?) => Promise<void>;
    loadSTAC: (url?) => Promise<void>;
    loadTileMatrixSetRegistry: (registry) => Promise<void>;
    rasterEndpoint: Ref<string | null, string | null>;
    resetSelectedCompareSTAC: () => Promise<void>;
    selectedCompareItem: Ref<
      StacLink | StacItem | null | undefined,
      StacLink | StacItem | null | undefined
    >;
    selectedCompareStac: Ref<StacCollection | null, StacCollection | null>;
    selectedItem: Ref<
      StacLink | StacItem | null | undefined,
      StacLink | StacItem | null | undefined
    >;
    selectedStac: Ref<StacCollection | null, StacCollection | null>;
    stac: Ref<StacLink[] | null, StacLink[] | null>;
    stacEndpoint: Ref<string | null, string | null>;
    supportedUpscalingEndpoints: Ref<
      (
        | string
        | {
            scaleFactor?: number;
            titilerVersion?: 1 | 2;
            url: string;
          }
      )[],
      (
        | string
        | {
            scaleFactor?: number;
            titilerVersion?: 1 | 2;
            url: string;
          }
      )[]
    >;
    tileMatrixSetRegistry: Ref<
      Record<string, any> | null,
      Record<string, any> | null
    >;
  }
>;

states

Stateful Reactive variables

ts
states: object;

availableMapProjection

available projection to be rendered by the Map

ts
availableMapProjection: Ref<string, string>;

currentUrl

Currently selected STAC endpoint

ts
currentUrl: Ref<string, string>;

datetime

Currently selected datetime

ts
datetime: Ref<string, string>;

indicator

Currently selected indicator

ts
indicator: Ref<string, string>;

registeredProjections

ts
registeredProjections: `EPSG${number}`[];