@eodash/eodash 5.0.0-alpha.2.18 → 5.0.0-alpha.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/client/composables/EodashMap.js +83 -97
- package/core/client/eodash.js +25 -4
- package/core/client/store/Actions.js +6 -0
- package/core/client/utils/createLayers.js +25 -10
- package/core/client/utils/eodashSTAC.js +13 -5
- package/core/client/utils/helpers.js +3 -3
- package/dist/client/{DashboardLayout-Dk6lzKZA.js → DashboardLayout-CU4js3lr.js} +2 -2
- package/dist/client/{DynamicWebComponent-BkMCGU7a.js → DynamicWebComponent-BsYZdIEB.js} +2 -2
- package/dist/client/{EodashDatePicker-D27wn0jP.js → EodashDatePicker-DZoH_gRX.js} +24 -24
- package/dist/client/{EodashItemFilter-DS1mOc2p.js → EodashItemFilter-CHBfsFSm.js} +1362 -1347
- package/dist/client/{EodashLayerControl-BqGA6jbV.js → EodashLayerControl-CuY-cAx8.js} +4374 -4243
- package/dist/client/{EodashMap-BnVrfBnA.js → EodashMap-Ch43fWNv.js} +23407 -23065
- package/dist/client/{EodashMapBtns-rv-U1nI_.js → EodashMapBtns-CFA2uti4.js} +2 -2
- package/dist/client/{ExportState-C3Z1ET5c.js → ExportState-C6raDjTt.js} +58 -59
- package/dist/client/{Footer-BBkNiqPm.js → Footer-D8T5ROhF.js} +1 -1
- package/dist/client/{Header-BQKHLO5P.js → Header-B8B4Z5R9.js} +4 -4
- package/dist/client/{IframeWrapper-BX4e2uxq.js → IframeWrapper-BK2JxzSJ.js} +1 -1
- package/dist/client/{MobileLayout-C2aqobN5.js → MobileLayout-aZaYvF8V.js} +51 -51
- package/dist/client/{PopUp-DG3zrW12.js → PopUp-DdHXoNOP.js} +30 -30
- package/dist/client/{VImg-BLpHACcB.js → VImg-yb8O1cb8.js} +2 -2
- package/dist/client/{VMain-DOyRcpub.js → VMain-Dknnyxts.js} +2 -2
- package/dist/client/{VOverlay-DAiInZQP.js → VOverlay-BCOn3hd6.js} +35 -35
- package/dist/client/{WidgetsContainer-BqoX7R5Z.js → WidgetsContainer-BixUyr1e.js} +1 -1
- package/dist/client/{asWebComponent-tNU8_fkz.js → asWebComponent-CHqY8A1z.js} +6784 -6666
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/{forwardRefs-BexjzXbg.js → forwardRefs-dcYA2XVU.js} +1 -1
- package/dist/client/{index-F73os72i.js → index-BVuSHaVu.js} +1 -1
- package/dist/client/{lerc-B4lXefGh-DhdntrgS.js → lerc-BPVtQnt3-08GHszVp.js} +1 -1
- package/dist/client/{ssrBoot-C71RpKe4.js → ssrBoot-DU2S_nLc.js} +1 -1
- package/dist/client/style.css +1 -1
- package/dist/client/{transition-DNdd2Y-1.js → transition-C_fi1aa6.js} +1 -1
- package/dist/client/{webfontloader-C7dpDL7m.js → webfontloader-Ofarvipf.js} +1 -1
- package/package.json +5 -5
- package/widgets/EodashLayerControl.vue +21 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eodash/eodash",
|
|
3
|
-
"version": "5.0.0-alpha.2.
|
|
3
|
+
"version": "5.0.0-alpha.2.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./core/client/types.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"docs:generate": "typedoc --options typedoc.config.json"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@eox/itemfilter": "^1.1.
|
|
50
|
+
"@eox/itemfilter": "^1.1.1",
|
|
51
51
|
"@eox/jsonform": "^0.8.2",
|
|
52
|
-
"@eox/layercontrol": "^0.
|
|
52
|
+
"@eox/layercontrol": "^0.21.0",
|
|
53
53
|
"@eox/layout": "^0.1.0",
|
|
54
|
-
"@eox/map": "^1.13.
|
|
54
|
+
"@eox/map": "^1.13.1",
|
|
55
55
|
"@eox/stacinfo": "^0.3.3",
|
|
56
|
-
"@eox/timecontrol": "^0.
|
|
56
|
+
"@eox/timecontrol": "^0.8.0",
|
|
57
57
|
"@mdi/js": "^7.4.47",
|
|
58
58
|
"@vitejs/plugin-vue": "^5.1.2",
|
|
59
59
|
"animated-details": "gist:2912bb049fa906671807415eb0e87188",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<span class="d-flex flex-column fill-height overflow-auto">
|
|
3
3
|
<eox-layercontrol
|
|
4
|
-
v-if="
|
|
4
|
+
v-if="showControls"
|
|
5
5
|
:for="mapElement"
|
|
6
6
|
.tools="['datetime', 'info', 'config', 'opacity']"
|
|
7
7
|
@datetime:updated="debouncedHandleDateTime"
|
|
8
8
|
class="fill-height"
|
|
9
|
-
|
|
9
|
+
toolsAsList="true"
|
|
10
10
|
ref="eoxLayercontrol"
|
|
11
11
|
/>
|
|
12
12
|
</span>
|
|
@@ -16,10 +16,12 @@ import "@eox/layercontrol";
|
|
|
16
16
|
import "@eox/jsonform";
|
|
17
17
|
import "@eox/timecontrol";
|
|
18
18
|
|
|
19
|
-
import { ref } from "vue";
|
|
19
|
+
import { computed, ref } from "vue";
|
|
20
20
|
import { mapEl, mapCompareEl } from "@/store/States";
|
|
21
21
|
import { getColFromLayer } from "@/utils/helpers";
|
|
22
22
|
import { eodashCollections, eodashCompareCollections } from "@/utils/states";
|
|
23
|
+
import { storeToRefs } from "pinia";
|
|
24
|
+
import { useSTAcStore } from "@/store/stac";
|
|
23
25
|
|
|
24
26
|
const props = defineProps({
|
|
25
27
|
map: {
|
|
@@ -28,6 +30,17 @@ const props = defineProps({
|
|
|
28
30
|
},
|
|
29
31
|
});
|
|
30
32
|
|
|
33
|
+
const showControls = computed(() => {
|
|
34
|
+
const { selectedCompareStac, selectedStac } = storeToRefs(useSTAcStore());
|
|
35
|
+
if (props.map === "second") {
|
|
36
|
+
return mapCompareEl.value !== null && selectedCompareStac.value !== null;
|
|
37
|
+
}
|
|
38
|
+
if (mapEl.value !== null && selectedStac.value !== null) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
});
|
|
43
|
+
|
|
31
44
|
const eodashCols =
|
|
32
45
|
props.map === "second" ? eodashCompareCollections : eodashCollections;
|
|
33
46
|
const mapElement = props.map === "second" ? mapCompareEl : mapEl;
|
|
@@ -46,7 +59,11 @@ const handleDatetimeUpdate = async (evt) => {
|
|
|
46
59
|
|
|
47
60
|
if (ec) {
|
|
48
61
|
await ec.fetchCollection();
|
|
49
|
-
updatedLayers = await ec.updateLayerJson(
|
|
62
|
+
updatedLayers = await ec.updateLayerJson(
|
|
63
|
+
datetime,
|
|
64
|
+
layer.get("id"),
|
|
65
|
+
props.map,
|
|
66
|
+
);
|
|
50
67
|
}
|
|
51
68
|
/** @type {Record<String,any>[] | undefined} */
|
|
52
69
|
const dataLayers = updatedLayers?.find(
|