@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: StoreDefinition<
"stac",
Pick<
{
init: (endpoint) => void;
isApi: Ref<boolean, boolean>;
loadSelectedCompareSTAC: (relativePath?, isPOI?) => Promise<void>;
loadSelectedSTAC: (relativePath?, isPoi?, stacItem?) => Promise<void>;
loadSTAC: (url?) => Promise<void>;
resetSelectedCompareSTAC: () => Promise<void>;
selectedCompareStac: Ref<StacCollection | null, StacCollection | null>;
selectedItem: Ref<StacLink | StacItem | null, StacLink | StacItem | null>;
selectedStac: Ref<StacCollection | null, StacCollection | null>;
stac: Ref<StacLink[] | null, StacLink[] | null>;
stacEndpoint: Ref<string | null, string | null>;
supportedUpscalingEndpoints: Ref<string[], string[]>;
},
| "stac"
| "stacEndpoint"
| "isApi"
| "selectedStac"
| "selectedCompareStac"
| "selectedItem"
| "supportedUpscalingEndpoints"
>,
Pick<
{
init: (endpoint) => void;
isApi: Ref<boolean, boolean>;
loadSelectedCompareSTAC: (relativePath?, isPOI?) => Promise<void>;
loadSelectedSTAC: (relativePath?, isPoi?, stacItem?) => Promise<void>;
loadSTAC: (url?) => Promise<void>;
resetSelectedCompareSTAC: () => Promise<void>;
selectedCompareStac: Ref<StacCollection | null, StacCollection | null>;
selectedItem: Ref<StacLink | StacItem | null, StacLink | StacItem | null>;
selectedStac: Ref<StacCollection | null, StacCollection | null>;
stac: Ref<StacLink[] | null, StacLink[] | null>;
stacEndpoint: Ref<string | null, string | null>;
supportedUpscalingEndpoints: Ref<string[], string[]>;
},
never
>,
Pick<
{
init: (endpoint) => void;
isApi: Ref<boolean, boolean>;
loadSelectedCompareSTAC: (relativePath?, isPOI?) => Promise<void>;
loadSelectedSTAC: (relativePath?, isPoi?, stacItem?) => Promise<void>;
loadSTAC: (url?) => Promise<void>;
resetSelectedCompareSTAC: () => Promise<void>;
selectedCompareStac: Ref<StacCollection | null, StacCollection | null>;
selectedItem: Ref<StacLink | StacItem | null, StacLink | StacItem | null>;
selectedStac: Ref<StacCollection | null, StacCollection | null>;
stac: Ref<StacLink[] | null, StacLink[] | null>;
stacEndpoint: Ref<string | null, string | null>;
supportedUpscalingEndpoints: Ref<string[], string[]>;
},
| "init"
| "loadSTAC"
| "loadSelectedSTAC"
| "loadSelectedCompareSTAC"
| "resetSelectedCompareSTAC"
>
>;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}`[];