@geowiki/map 0.16.9-dev.15 → 0.16.9-dev.17
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.
|
@@ -9898,7 +9898,7 @@ var TimeSeries = () => {
|
|
|
9898
9898
|
!evolandStore.isAnnualAnnotation && /* @__PURE__ */ jsx30(
|
|
9899
9899
|
"button",
|
|
9900
9900
|
{
|
|
9901
|
-
className: currentTab === -1 ? "pl-1 pr-5 border-gray-300 text-white" : "pl-1 pr-5 border-gray-300 bg-
|
|
9901
|
+
className: currentTab === -1 ? "pl-1 pr-5 border-gray-300 text-white" : "pl-1 pr-5 border-gray-300 bg-white text-black",
|
|
9902
9902
|
onClick: () => setCurrentTab(-1),
|
|
9903
9903
|
children: "View Annotations"
|
|
9904
9904
|
}
|
|
@@ -9906,7 +9906,7 @@ var TimeSeries = () => {
|
|
|
9906
9906
|
]
|
|
9907
9907
|
}
|
|
9908
9908
|
),
|
|
9909
|
-
/* @__PURE__ */ jsx30("div", { className: "overflow-x-scroll", children: taskChangeYears == null ? void 0 : taskChangeYears.map((year) => {
|
|
9909
|
+
currentTab !== -1 && /* @__PURE__ */ jsx30("div", { className: "overflow-x-scroll", children: taskChangeYears == null ? void 0 : taskChangeYears.map((year) => {
|
|
9910
9910
|
var _a;
|
|
9911
9911
|
return /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
9912
9912
|
/* @__PURE__ */ jsx30("div", { className: "w-full pt-4", children: year }),
|
|
@@ -9916,31 +9916,43 @@ var TimeSeries = () => {
|
|
|
9916
9916
|
var _a2;
|
|
9917
9917
|
return (_a2 = x.minDate) == null ? void 0 : _a2.includes(year);
|
|
9918
9918
|
})) == null ? void 0 : _a.map((x, index) => {
|
|
9919
|
-
var _a2, _b;
|
|
9919
|
+
var _a2, _b, _c;
|
|
9920
|
+
let selected_ref_date = new Date(evolandStore.selectedReferenceDate);
|
|
9921
|
+
let current_date = new Date(x.date);
|
|
9922
|
+
let selected_date;
|
|
9923
|
+
if (selected_ref_date.getMonth() == current_date.getMonth())
|
|
9924
|
+
selected_date = (_a2 = evolandStore.reference_dates) == null ? void 0 : _a2.find((date) => new Date(date).getMonth() + 1 == new Date(x.date).getMonth() + 1);
|
|
9920
9925
|
return /* @__PURE__ */ jsxs21("div", { children: [
|
|
9921
9926
|
/* @__PURE__ */ jsx30(
|
|
9922
9927
|
"img",
|
|
9923
9928
|
{
|
|
9924
|
-
className: "text-xs w-32 border-y border-x hover:border-blue-500 hover:border-2 hover:cursor-pointer pl-1 pr-1 pb-1" + (((
|
|
9929
|
+
className: "text-xs w-32 border-y border-x hover:border-blue-500 hover:border-2 hover:cursor-pointer pl-1 pr-1 pb-1" + (((_b = evolandStore.selectedCompositeRasterAsset) == null ? void 0 : _b.id) == x.id || !evolandStore.isAnnualAnnotation && evolandStore.selectedReferenceDate == selected_date ? " border-2 border-red-500" : ""),
|
|
9925
9930
|
src: x.imgUrl,
|
|
9926
9931
|
alt: x.date,
|
|
9927
9932
|
onClick: () => {
|
|
9928
|
-
var _a3, _b2,
|
|
9933
|
+
var _a3, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
9929
9934
|
evolandStore.getLegendsDetails(
|
|
9930
9935
|
!evolandStore.isAnnualAnnotation ? evolandStore.reference_dates && evolandStore.selectedReferenceDate ? (_b2 = evolandStore.annotatedRasterAsset) == null ? void 0 : _b2.buffer[(_a3 = evolandStore.reference_dates) == null ? void 0 : _a3.indexOf(
|
|
9931
9936
|
x.date
|
|
9932
|
-
)] : (
|
|
9937
|
+
)] : (_c2 = evolandStore.annotatedRasterAsset) == null ? void 0 : _c2.buffer[0] : (_d = evolandStore.annotatedRasterAsset) == null ? void 0 : _d.buffer
|
|
9933
9938
|
);
|
|
9934
9939
|
if (evolandStore.reference_dates.length > 1) {
|
|
9935
|
-
|
|
9940
|
+
let selected_date2;
|
|
9941
|
+
if (!((_e = evolandStore.reference_dates) == null ? void 0 : _e.find((date) => date == x.date))) {
|
|
9942
|
+
selected_date2 = (_f = evolandStore.reference_dates) == null ? void 0 : _f.find((date) => new Date(date).getMonth() + 1 == new Date(x.date).getMonth() + 1);
|
|
9943
|
+
evolandStore.setSelectedReferenceDate(selected_date2);
|
|
9944
|
+
} else {
|
|
9945
|
+
evolandStore.setSelectedReferenceDate(x.date);
|
|
9946
|
+
selected_date2 = x.date;
|
|
9947
|
+
}
|
|
9936
9948
|
evolandStore.setUpdateAsset(true);
|
|
9937
9949
|
insertEmptyBufferForSingleBand(
|
|
9938
|
-
(
|
|
9950
|
+
(_j = evolandStore.reference_dates && evolandStore.selectedReferenceDate ? (_h = evolandStore.annotatedRasterAsset) == null ? void 0 : _h.buffer[(_g = evolandStore.reference_dates) == null ? void 0 : _g.indexOf(
|
|
9939
9951
|
evolandStore.selectedReferenceDate
|
|
9940
|
-
)] : (
|
|
9941
|
-
(
|
|
9942
|
-
(
|
|
9943
|
-
(
|
|
9952
|
+
)] : (_i = evolandStore.annotatedRasterAsset) == null ? void 0 : _i.buffer[0]) == null ? void 0 : _j.length,
|
|
9953
|
+
(_k = evolandStore.annotatedRasterAsset) == null ? void 0 : _k.width,
|
|
9954
|
+
(_l = evolandStore.annotatedRasterAsset) == null ? void 0 : _l.height,
|
|
9955
|
+
(_m = evolandStore.reference_dates) == null ? void 0 : _m.indexOf(selected_date2),
|
|
9944
9956
|
evolandStore.annotatedRasterAsset,
|
|
9945
9957
|
evolandStore.labels,
|
|
9946
9958
|
evolandStore.isAnnualAnnotation
|
|
@@ -9973,7 +9985,7 @@ var TimeSeries = () => {
|
|
|
9973
9985
|
/* @__PURE__ */ jsx30(
|
|
9974
9986
|
"div",
|
|
9975
9987
|
{
|
|
9976
|
-
className: "pl-8 text-xs w-32 text-white " + (((
|
|
9988
|
+
className: "pl-8 text-xs w-32 text-white " + (((_c = evolandStore.selectedCompositeRasterAsset) == null ? void 0 : _c.id) == x.id || !evolandStore.isAnnualAnnotation && evolandStore.selectedReferenceDate == selected_date ? "bg-red-400" : ""),
|
|
9977
9989
|
children: x.date
|
|
9978
9990
|
}
|
|
9979
9991
|
)
|
|
@@ -9982,7 +9994,7 @@ var TimeSeries = () => {
|
|
|
9982
9994
|
] })
|
|
9983
9995
|
] });
|
|
9984
9996
|
}) }),
|
|
9985
|
-
currentTab == -1 && /* @__PURE__ */ jsxs21("div", { className: "overflow-x-scroll flex flex-row", children: [
|
|
9997
|
+
currentTab == -1 && /* @__PURE__ */ jsxs21("div", { className: "overflow-x-scroll flex flex-row pt-4", children: [
|
|
9986
9998
|
!evolandStore.annotatedRasterAsset && /* @__PURE__ */ jsx30("div", { children: "No annotation" }),
|
|
9987
9999
|
evolandStore.annotatedRasterAsset && evolandStore.annotation_dates && evolandStore.annotation_dates.map(
|
|
9988
10000
|
(annotationDate, index) => {
|
package/dist/index.js
CHANGED
|
@@ -10609,7 +10609,7 @@ var init_TimeSeries = __esm({
|
|
|
10609
10609
|
!evolandStore.isAnnualAnnotation && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
10610
10610
|
"button",
|
|
10611
10611
|
{
|
|
10612
|
-
className: currentTab === -1 ? "pl-1 pr-5 border-gray-300 text-white" : "pl-1 pr-5 border-gray-300 bg-
|
|
10612
|
+
className: currentTab === -1 ? "pl-1 pr-5 border-gray-300 text-white" : "pl-1 pr-5 border-gray-300 bg-white text-black",
|
|
10613
10613
|
onClick: () => setCurrentTab(-1),
|
|
10614
10614
|
children: "View Annotations"
|
|
10615
10615
|
}
|
|
@@ -10617,7 +10617,7 @@ var init_TimeSeries = __esm({
|
|
|
10617
10617
|
]
|
|
10618
10618
|
}
|
|
10619
10619
|
),
|
|
10620
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "overflow-x-scroll", children: taskChangeYears == null ? void 0 : taskChangeYears.map((year) => {
|
|
10620
|
+
currentTab !== -1 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "overflow-x-scroll", children: taskChangeYears == null ? void 0 : taskChangeYears.map((year) => {
|
|
10621
10621
|
var _a;
|
|
10622
10622
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
|
10623
10623
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-full pt-4", children: year }),
|
|
@@ -10627,31 +10627,43 @@ var init_TimeSeries = __esm({
|
|
|
10627
10627
|
var _a2;
|
|
10628
10628
|
return (_a2 = x.minDate) == null ? void 0 : _a2.includes(year);
|
|
10629
10629
|
})) == null ? void 0 : _a.map((x, index) => {
|
|
10630
|
-
var _a2, _b;
|
|
10630
|
+
var _a2, _b, _c;
|
|
10631
|
+
let selected_ref_date = new Date(evolandStore.selectedReferenceDate);
|
|
10632
|
+
let current_date = new Date(x.date);
|
|
10633
|
+
let selected_date;
|
|
10634
|
+
if (selected_ref_date.getMonth() == current_date.getMonth())
|
|
10635
|
+
selected_date = (_a2 = evolandStore.reference_dates) == null ? void 0 : _a2.find((date) => new Date(date).getMonth() + 1 == new Date(x.date).getMonth() + 1);
|
|
10631
10636
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
|
|
10632
10637
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
10633
10638
|
"img",
|
|
10634
10639
|
{
|
|
10635
|
-
className: "text-xs w-32 border-y border-x hover:border-blue-500 hover:border-2 hover:cursor-pointer pl-1 pr-1 pb-1" + (((
|
|
10640
|
+
className: "text-xs w-32 border-y border-x hover:border-blue-500 hover:border-2 hover:cursor-pointer pl-1 pr-1 pb-1" + (((_b = evolandStore.selectedCompositeRasterAsset) == null ? void 0 : _b.id) == x.id || !evolandStore.isAnnualAnnotation && evolandStore.selectedReferenceDate == selected_date ? " border-2 border-red-500" : ""),
|
|
10636
10641
|
src: x.imgUrl,
|
|
10637
10642
|
alt: x.date,
|
|
10638
10643
|
onClick: () => {
|
|
10639
|
-
var _a3, _b2,
|
|
10644
|
+
var _a3, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
10640
10645
|
evolandStore.getLegendsDetails(
|
|
10641
10646
|
!evolandStore.isAnnualAnnotation ? evolandStore.reference_dates && evolandStore.selectedReferenceDate ? (_b2 = evolandStore.annotatedRasterAsset) == null ? void 0 : _b2.buffer[(_a3 = evolandStore.reference_dates) == null ? void 0 : _a3.indexOf(
|
|
10642
10647
|
x.date
|
|
10643
|
-
)] : (
|
|
10648
|
+
)] : (_c2 = evolandStore.annotatedRasterAsset) == null ? void 0 : _c2.buffer[0] : (_d = evolandStore.annotatedRasterAsset) == null ? void 0 : _d.buffer
|
|
10644
10649
|
);
|
|
10645
10650
|
if (evolandStore.reference_dates.length > 1) {
|
|
10646
|
-
|
|
10651
|
+
let selected_date2;
|
|
10652
|
+
if (!((_e = evolandStore.reference_dates) == null ? void 0 : _e.find((date) => date == x.date))) {
|
|
10653
|
+
selected_date2 = (_f = evolandStore.reference_dates) == null ? void 0 : _f.find((date) => new Date(date).getMonth() + 1 == new Date(x.date).getMonth() + 1);
|
|
10654
|
+
evolandStore.setSelectedReferenceDate(selected_date2);
|
|
10655
|
+
} else {
|
|
10656
|
+
evolandStore.setSelectedReferenceDate(x.date);
|
|
10657
|
+
selected_date2 = x.date;
|
|
10658
|
+
}
|
|
10647
10659
|
evolandStore.setUpdateAsset(true);
|
|
10648
10660
|
insertEmptyBufferForSingleBand(
|
|
10649
|
-
(
|
|
10661
|
+
(_j = evolandStore.reference_dates && evolandStore.selectedReferenceDate ? (_h = evolandStore.annotatedRasterAsset) == null ? void 0 : _h.buffer[(_g = evolandStore.reference_dates) == null ? void 0 : _g.indexOf(
|
|
10650
10662
|
evolandStore.selectedReferenceDate
|
|
10651
|
-
)] : (
|
|
10652
|
-
(
|
|
10653
|
-
(
|
|
10654
|
-
(
|
|
10663
|
+
)] : (_i = evolandStore.annotatedRasterAsset) == null ? void 0 : _i.buffer[0]) == null ? void 0 : _j.length,
|
|
10664
|
+
(_k = evolandStore.annotatedRasterAsset) == null ? void 0 : _k.width,
|
|
10665
|
+
(_l = evolandStore.annotatedRasterAsset) == null ? void 0 : _l.height,
|
|
10666
|
+
(_m = evolandStore.reference_dates) == null ? void 0 : _m.indexOf(selected_date2),
|
|
10655
10667
|
evolandStore.annotatedRasterAsset,
|
|
10656
10668
|
evolandStore.labels,
|
|
10657
10669
|
evolandStore.isAnnualAnnotation
|
|
@@ -10684,7 +10696,7 @@ var init_TimeSeries = __esm({
|
|
|
10684
10696
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
10685
10697
|
"div",
|
|
10686
10698
|
{
|
|
10687
|
-
className: "pl-8 text-xs w-32 text-white " + (((
|
|
10699
|
+
className: "pl-8 text-xs w-32 text-white " + (((_c = evolandStore.selectedCompositeRasterAsset) == null ? void 0 : _c.id) == x.id || !evolandStore.isAnnualAnnotation && evolandStore.selectedReferenceDate == selected_date ? "bg-red-400" : ""),
|
|
10688
10700
|
children: x.date
|
|
10689
10701
|
}
|
|
10690
10702
|
)
|
|
@@ -10693,7 +10705,7 @@ var init_TimeSeries = __esm({
|
|
|
10693
10705
|
] })
|
|
10694
10706
|
] });
|
|
10695
10707
|
}) }),
|
|
10696
|
-
currentTab == -1 && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "overflow-x-scroll flex flex-row", children: [
|
|
10708
|
+
currentTab == -1 && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "overflow-x-scroll flex flex-row pt-4", children: [
|
|
10697
10709
|
!evolandStore.annotatedRasterAsset && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { children: "No annotation" }),
|
|
10698
10710
|
evolandStore.annotatedRasterAsset && evolandStore.annotation_dates && evolandStore.annotation_dates.map(
|
|
10699
10711
|
(annotationDate, index) => {
|
package/dist/index.mjs
CHANGED
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
useEvolandStore,
|
|
39
39
|
useMapLayerStore,
|
|
40
40
|
useMapStore
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-P5RXGGRU.mjs";
|
|
42
42
|
|
|
43
43
|
// src/Components/CanvasImage.tsx
|
|
44
44
|
var CanvasImage = () => {
|
|
@@ -9216,7 +9216,7 @@ var MapLibre = forwardRef5(({ baseLayers, customLayers, mapControls, sourceData,
|
|
|
9216
9216
|
import { Suspense, lazy, useEffect as useEffect22, useState as useState18 } from "react";
|
|
9217
9217
|
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
9218
9218
|
var MapComponent = lazy(
|
|
9219
|
-
() => import("./GeoWikiMap-
|
|
9219
|
+
() => import("./GeoWikiMap-AUSQTRUG.mjs").then((m) => ({ default: m.GeoWikiMap }))
|
|
9220
9220
|
);
|
|
9221
9221
|
var ClientOnlyMap = ({ children }) => {
|
|
9222
9222
|
const [isClient, setIsClient] = useState18(false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geowiki/map",
|
|
3
|
-
"version": "0.16.9-dev.
|
|
3
|
+
"version": "0.16.9-dev.17",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"react-hotkeys-hook": "^4.5.0",
|
|
25
25
|
"react-leaflet": "^4.2.1",
|
|
26
26
|
"zod": "^3.25.7",
|
|
27
|
-
"@geowiki/
|
|
28
|
-
"@geowiki/design-system": "0.16.9-dev.
|
|
29
|
-
"@geowiki/
|
|
30
|
-
"@geowiki/
|
|
31
|
-
"@geowiki/
|
|
27
|
+
"@geowiki/core": "0.16.9-dev.17",
|
|
28
|
+
"@geowiki/design-system": "0.16.9-dev.17",
|
|
29
|
+
"@geowiki/ui": "0.16.9-dev.17",
|
|
30
|
+
"@geowiki/evoland-api-proxy": "0.16.9-dev.17",
|
|
31
|
+
"@geowiki/cms-proxy": "0.16.9-dev.17"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@dnd-kit/core": "^6.3.1",
|