@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<
{
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>;
rasterEndpoint: Ref<string | null, string | null>;
resetSelectedCompareSTAC: () => Promise<void>;
selectedCompareItem: Ref<
StacLink | StacItem | null,
StacLink | StacItem | null
>;
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
| {
titilerVersion?: 1 | 2;
url: string;
}
)[],
(
| string
| {
titilerVersion?: 1 | 2;
url: string;
}
)[]
>;
},
| "stacEndpoint"
| "stac"
| "rasterEndpoint"
| "isApi"
| "selectedStac"
| "selectedCompareStac"
| "selectedItem"
| "selectedCompareItem"
| "supportedUpscalingEndpoints"
| "colormapRegistry"
>,
Pick<
{
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>;
rasterEndpoint: Ref<string | null, string | null>;
resetSelectedCompareSTAC: () => Promise<void>;
selectedCompareItem: Ref<
StacLink | StacItem | null,
StacLink | StacItem | null
>;
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
| {
titilerVersion?: 1 | 2;
url: string;
}
)[],
(
| string
| {
titilerVersion?: 1 | 2;
url: string;
}
)[]
>;
},
never
>,
Pick<
{
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>;
rasterEndpoint: Ref<string | null, string | null>;
resetSelectedCompareSTAC: () => Promise<void>;
selectedCompareItem: Ref<
StacLink | StacItem | null,
StacLink | StacItem | null
>;
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
| {
titilerVersion?: 1 | 2;
url: string;
}
)[],
(
| string
| {
titilerVersion?: 1 | 2;
url: string;
}
)[]
>;
},
| "init"
| "loadSTAC"
| "loadSelectedSTAC"
| "loadSelectedCompareSTAC"
| "resetSelectedCompareSTAC"
| "loadColormapRegistry"
>
>;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}`[];