@opengeoweb/store 21.2.0 → 21.3.0-nightly-20261127
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/dist/index.esm.js +290 -172
- package/dist/src/store/drawingTool/selectors.d.ts +0 -21
- package/dist/src/store/generic/linking/constants.d.ts +3 -1
- package/dist/src/store/map/map/reducer.d.ts +14 -1
- package/dist/src/store/map/map/selectors.d.ts +40 -12
- package/dist/src/store/map/map/types.d.ts +10 -0
- package/dist/src/store/mapStore/openlayers/syncGroupFit.d.ts +23 -0
- package/dist/src/store/mapStore/openlayers/syncGroupViewStore.d.ts +2 -0
- package/dist/src/store/store.d.ts +3 -1
- package/dist/src/store/ui/types.d.ts +4 -1
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
|
@@ -2528,11 +2528,27 @@ var slice$6 = createSlice({
|
|
|
2528
2528
|
draft.allIds.splice(mapIndex, 1);
|
|
2529
2529
|
}
|
|
2530
2530
|
},
|
|
2531
|
-
|
|
2532
|
-
setBbox: function setBbox(draft, action) {
|
|
2531
|
+
setMapSize: function setMapSize(draft, action) {
|
|
2533
2532
|
var _action$payload = action.payload,
|
|
2534
2533
|
mapId = _action$payload.mapId,
|
|
2535
|
-
|
|
2534
|
+
mapSize = _action$payload.mapSize;
|
|
2535
|
+
if (!draft.byId[mapId]) {
|
|
2536
|
+
return;
|
|
2537
|
+
}
|
|
2538
|
+
draft.byId[mapId].mapSize = mapSize;
|
|
2539
|
+
},
|
|
2540
|
+
/** Hides the maps until the workspace load has fitted its zoom sync groups. */
|
|
2541
|
+
startViewsSettling: function startViewsSettling(draft) {
|
|
2542
|
+
draft.areViewsSettling = true;
|
|
2543
|
+
},
|
|
2544
|
+
endViewsSettling: function endViewsSettling(draft) {
|
|
2545
|
+
draft.areViewsSettling = false;
|
|
2546
|
+
},
|
|
2547
|
+
setStepBackwardOrForward: function setStepBackwardOrForward(_draft, _action) {},
|
|
2548
|
+
setBbox: function setBbox(draft, action) {
|
|
2549
|
+
var _action$payload2 = action.payload,
|
|
2550
|
+
mapId = _action$payload2.mapId,
|
|
2551
|
+
bbox = _action$payload2.bbox;
|
|
2536
2552
|
if (!draft.byId[mapId]) {
|
|
2537
2553
|
return;
|
|
2538
2554
|
}
|
|
@@ -2543,9 +2559,9 @@ var slice$6 = createSlice({
|
|
|
2543
2559
|
}
|
|
2544
2560
|
},
|
|
2545
2561
|
mapUpdateAllMapDimensions: function mapUpdateAllMapDimensions(draft, action) {
|
|
2546
|
-
var _action$
|
|
2547
|
-
mapId = _action$
|
|
2548
|
-
dimensions = _action$
|
|
2562
|
+
var _action$payload3 = action.payload,
|
|
2563
|
+
mapId = _action$payload3.mapId,
|
|
2564
|
+
dimensions = _action$payload3.dimensions;
|
|
2549
2565
|
if (!draft.byId[mapId]) {
|
|
2550
2566
|
return;
|
|
2551
2567
|
}
|
|
@@ -2554,11 +2570,11 @@ var slice$6 = createSlice({
|
|
|
2554
2570
|
});
|
|
2555
2571
|
},
|
|
2556
2572
|
mapStartAnimation: function mapStartAnimation(draft, action) {
|
|
2557
|
-
var _action$
|
|
2558
|
-
mapId = _action$
|
|
2559
|
-
timeList = _action$
|
|
2560
|
-
start = _action$
|
|
2561
|
-
end = _action$
|
|
2573
|
+
var _action$payload4 = action.payload,
|
|
2574
|
+
mapId = _action$payload4.mapId,
|
|
2575
|
+
timeList = _action$payload4.timeList,
|
|
2576
|
+
start = _action$payload4.start,
|
|
2577
|
+
end = _action$payload4.end;
|
|
2562
2578
|
if (!draft.byId[mapId]) {
|
|
2563
2579
|
return;
|
|
2564
2580
|
}
|
|
@@ -2589,25 +2605,25 @@ var slice$6 = createSlice({
|
|
|
2589
2605
|
draft.byId[mapId].isAnimating = false;
|
|
2590
2606
|
},
|
|
2591
2607
|
setTimeSliderSpan: function setTimeSliderSpan(draft, action) {
|
|
2592
|
-
var _action$
|
|
2593
|
-
mapId = _action$
|
|
2594
|
-
timeSliderSpan = _action$
|
|
2608
|
+
var _action$payload5 = action.payload,
|
|
2609
|
+
mapId = _action$payload5.mapId,
|
|
2610
|
+
timeSliderSpan = _action$payload5.timeSliderSpan;
|
|
2595
2611
|
produceTimeSliderTimeSpan(draft, mapId, timeSliderSpan);
|
|
2596
2612
|
},
|
|
2597
2613
|
setTimeStep: function setTimeStep(draft, action) {
|
|
2598
|
-
var _action$
|
|
2599
|
-
mapId = _action$
|
|
2600
|
-
timeStep = _action$
|
|
2614
|
+
var _action$payload6 = action.payload,
|
|
2615
|
+
mapId = _action$payload6.mapId,
|
|
2616
|
+
timeStep = _action$payload6.timeStep;
|
|
2601
2617
|
if (!draft.byId[mapId]) {
|
|
2602
2618
|
return;
|
|
2603
2619
|
}
|
|
2604
2620
|
draft.byId[mapId].timeStep = timeStep;
|
|
2605
2621
|
},
|
|
2606
2622
|
setAnimationStartTime: function setAnimationStartTime(draft, action) {
|
|
2607
|
-
var _action$
|
|
2608
|
-
mapId = _action$
|
|
2609
|
-
animationStartTime = _action$
|
|
2610
|
-
referenceTime = _action$
|
|
2623
|
+
var _action$payload7 = action.payload,
|
|
2624
|
+
mapId = _action$payload7.mapId,
|
|
2625
|
+
animationStartTime = _action$payload7.animationStartTime,
|
|
2626
|
+
referenceTime = _action$payload7.referenceTime;
|
|
2611
2627
|
if (!draft.byId[mapId]) {
|
|
2612
2628
|
return;
|
|
2613
2629
|
}
|
|
@@ -2617,10 +2633,10 @@ var slice$6 = createSlice({
|
|
|
2617
2633
|
}, referenceTime);
|
|
2618
2634
|
},
|
|
2619
2635
|
setAnimationEndTime: function setAnimationEndTime(draft, action) {
|
|
2620
|
-
var _action$
|
|
2621
|
-
mapId = _action$
|
|
2622
|
-
animationEndTime = _action$
|
|
2623
|
-
referenceTime = _action$
|
|
2636
|
+
var _action$payload8 = action.payload,
|
|
2637
|
+
mapId = _action$payload8.mapId,
|
|
2638
|
+
animationEndTime = _action$payload8.animationEndTime,
|
|
2639
|
+
referenceTime = _action$payload8.referenceTime;
|
|
2624
2640
|
if (!draft.byId[mapId]) {
|
|
2625
2641
|
return;
|
|
2626
2642
|
}
|
|
@@ -2630,11 +2646,11 @@ var slice$6 = createSlice({
|
|
|
2630
2646
|
}, referenceTime);
|
|
2631
2647
|
},
|
|
2632
2648
|
setAnimationLength: function setAnimationLength(draft, action) {
|
|
2633
|
-
var _action$
|
|
2634
|
-
mapId = _action$
|
|
2635
|
-
animationLength = _action$
|
|
2636
|
-
animationStartTime = _action$
|
|
2637
|
-
animationEndTime = _action$
|
|
2649
|
+
var _action$payload9 = action.payload,
|
|
2650
|
+
mapId = _action$payload9.mapId,
|
|
2651
|
+
animationLength = _action$payload9.animationLength,
|
|
2652
|
+
animationStartTime = _action$payload9.animationStartTime,
|
|
2653
|
+
animationEndTime = _action$payload9.animationEndTime;
|
|
2638
2654
|
if (!draft.byId[mapId]) {
|
|
2639
2655
|
return;
|
|
2640
2656
|
}
|
|
@@ -2647,10 +2663,10 @@ var slice$6 = createSlice({
|
|
|
2647
2663
|
}
|
|
2648
2664
|
},
|
|
2649
2665
|
refreshAnimationRange: function refreshAnimationRange(draft, action) {
|
|
2650
|
-
var _action$
|
|
2651
|
-
mapId = _action$
|
|
2652
|
-
animationStartTime = _action$
|
|
2653
|
-
animationEndTime = _action$
|
|
2666
|
+
var _action$payload0 = action.payload,
|
|
2667
|
+
mapId = _action$payload0.mapId,
|
|
2668
|
+
animationStartTime = _action$payload0.animationStartTime,
|
|
2669
|
+
animationEndTime = _action$payload0.animationEndTime;
|
|
2654
2670
|
if (!draft.byId[mapId]) {
|
|
2655
2671
|
return;
|
|
2656
2672
|
}
|
|
@@ -2658,20 +2674,20 @@ var slice$6 = createSlice({
|
|
|
2658
2674
|
draft.byId[mapId].animationEndTime = animationEndTime;
|
|
2659
2675
|
},
|
|
2660
2676
|
setAnimationDelay: function setAnimationDelay(draft, action) {
|
|
2661
|
-
var _action$
|
|
2662
|
-
mapId = _action$
|
|
2663
|
-
animationDelay = _action$
|
|
2677
|
+
var _action$payload1 = action.payload,
|
|
2678
|
+
mapId = _action$payload1.mapId,
|
|
2679
|
+
animationDelay = _action$payload1.animationDelay;
|
|
2664
2680
|
if (!draft.byId[mapId]) {
|
|
2665
2681
|
return;
|
|
2666
2682
|
}
|
|
2667
2683
|
draft.byId[mapId].animationDelay = animationDelay;
|
|
2668
2684
|
},
|
|
2669
2685
|
layerMoveLayer: function layerMoveLayer(draft, action) {
|
|
2670
|
-
var _action$
|
|
2671
|
-
oldIndex = _action$
|
|
2672
|
-
newIndex = _action$
|
|
2673
|
-
mapId = _action$
|
|
2674
|
-
layerType = _action$
|
|
2686
|
+
var _action$payload10 = action.payload,
|
|
2687
|
+
oldIndex = _action$payload10.oldIndex,
|
|
2688
|
+
newIndex = _action$payload10.newIndex,
|
|
2689
|
+
mapId = _action$payload10.mapId,
|
|
2690
|
+
layerType = _action$payload10.layerType;
|
|
2675
2691
|
if (!draft.byId[mapId]) {
|
|
2676
2692
|
return;
|
|
2677
2693
|
}
|
|
@@ -2682,11 +2698,11 @@ var slice$6 = createSlice({
|
|
|
2682
2698
|
}
|
|
2683
2699
|
},
|
|
2684
2700
|
setAutoLayerId: function setAutoLayerId(draft, action) {
|
|
2685
|
-
var _action$
|
|
2686
|
-
mapId = _action$
|
|
2687
|
-
layerId = _action$
|
|
2688
|
-
autoTimeStepLayerId = _action$
|
|
2689
|
-
autoUpdateLayerId = _action$
|
|
2701
|
+
var _action$payload11 = action.payload,
|
|
2702
|
+
mapId = _action$payload11.mapId,
|
|
2703
|
+
layerId = _action$payload11.layerId,
|
|
2704
|
+
autoTimeStepLayerId = _action$payload11.autoTimeStepLayerId,
|
|
2705
|
+
autoUpdateLayerId = _action$payload11.autoUpdateLayerId;
|
|
2690
2706
|
var map = draft.byId[mapId];
|
|
2691
2707
|
if (!map) {
|
|
2692
2708
|
return;
|
|
@@ -2703,9 +2719,9 @@ var slice$6 = createSlice({
|
|
|
2703
2719
|
}
|
|
2704
2720
|
},
|
|
2705
2721
|
setAutoTimestepLayerId: function setAutoTimestepLayerId(draft, action) {
|
|
2706
|
-
var _action$
|
|
2707
|
-
mapId = _action$
|
|
2708
|
-
autoTimestepLayerId = _action$
|
|
2722
|
+
var _action$payload12 = action.payload,
|
|
2723
|
+
mapId = _action$payload12.mapId,
|
|
2724
|
+
autoTimestepLayerId = _action$payload12.autoTimestepLayerId;
|
|
2709
2725
|
var map = draft.byId[mapId];
|
|
2710
2726
|
if (!map) {
|
|
2711
2727
|
return;
|
|
@@ -2713,9 +2729,9 @@ var slice$6 = createSlice({
|
|
|
2713
2729
|
map.autoTimeStepLayerId = autoTimestepLayerId;
|
|
2714
2730
|
},
|
|
2715
2731
|
setAutoUpdateLayerId: function setAutoUpdateLayerId(draft, action) {
|
|
2716
|
-
var _action$
|
|
2717
|
-
mapId = _action$
|
|
2718
|
-
autoUpdateLayerId = _action$
|
|
2732
|
+
var _action$payload13 = action.payload,
|
|
2733
|
+
mapId = _action$payload13.mapId,
|
|
2734
|
+
autoUpdateLayerId = _action$payload13.autoUpdateLayerId;
|
|
2719
2735
|
var map = draft.byId[mapId];
|
|
2720
2736
|
if (!map) {
|
|
2721
2737
|
return;
|
|
@@ -2723,9 +2739,9 @@ var slice$6 = createSlice({
|
|
|
2723
2739
|
map.autoUpdateLayerId = autoUpdateLayerId;
|
|
2724
2740
|
},
|
|
2725
2741
|
setTimeSliderWidth: function setTimeSliderWidth(draft, action) {
|
|
2726
|
-
var _action$
|
|
2727
|
-
mapId = _action$
|
|
2728
|
-
timeSliderWidth = _action$
|
|
2742
|
+
var _action$payload14 = action.payload,
|
|
2743
|
+
mapId = _action$payload14.mapId,
|
|
2744
|
+
timeSliderWidth = _action$payload14.timeSliderWidth;
|
|
2729
2745
|
if (!draft.byId[mapId]) {
|
|
2730
2746
|
return;
|
|
2731
2747
|
}
|
|
@@ -2733,135 +2749,147 @@ var slice$6 = createSlice({
|
|
|
2733
2749
|
draft.byId[mapId].timeSliderSecondsPerPx = secondsPerPxFromCanvasWidth(timeSliderWidth, draft.byId[mapId].timeSliderSpan || defaultTimeSpan);
|
|
2734
2750
|
},
|
|
2735
2751
|
setTimeSliderCenterTime: function setTimeSliderCenterTime(draft, action) {
|
|
2736
|
-
var _action$
|
|
2737
|
-
mapId = _action$
|
|
2738
|
-
timeSliderCenterTime = _action$
|
|
2752
|
+
var _action$payload15 = action.payload,
|
|
2753
|
+
mapId = _action$payload15.mapId,
|
|
2754
|
+
timeSliderCenterTime = _action$payload15.timeSliderCenterTime;
|
|
2739
2755
|
if (!draft.byId[mapId]) {
|
|
2740
2756
|
return;
|
|
2741
2757
|
}
|
|
2742
2758
|
draft.byId[mapId].timeSliderCenterTime = timeSliderCenterTime;
|
|
2743
2759
|
},
|
|
2744
2760
|
toggleAutoUpdate: function toggleAutoUpdate(draft, action) {
|
|
2745
|
-
var _action$
|
|
2746
|
-
mapId = _action$
|
|
2747
|
-
shouldAutoUpdate = _action$
|
|
2761
|
+
var _action$payload16 = action.payload,
|
|
2762
|
+
mapId = _action$payload16.mapId,
|
|
2763
|
+
shouldAutoUpdate = _action$payload16.shouldAutoUpdate;
|
|
2748
2764
|
if (!draft.byId[mapId]) {
|
|
2749
2765
|
return;
|
|
2750
2766
|
}
|
|
2751
2767
|
draft.byId[mapId].isAutoUpdating = shouldAutoUpdate;
|
|
2752
2768
|
},
|
|
2753
2769
|
setEndTimeOverriding: function setEndTimeOverriding(draft, action) {
|
|
2754
|
-
var _action$
|
|
2755
|
-
mapId = _action$
|
|
2756
|
-
shouldEndtimeOverride = _action$
|
|
2770
|
+
var _action$payload17 = action.payload,
|
|
2771
|
+
mapId = _action$payload17.mapId,
|
|
2772
|
+
shouldEndtimeOverride = _action$payload17.shouldEndtimeOverride;
|
|
2757
2773
|
if (!draft.byId[mapId]) {
|
|
2758
2774
|
return;
|
|
2759
2775
|
}
|
|
2760
2776
|
draft.byId[mapId].shouldEndtimeOverride = shouldEndtimeOverride;
|
|
2761
2777
|
},
|
|
2762
2778
|
toggleTimestepAuto: function toggleTimestepAuto(draft, action) {
|
|
2763
|
-
var _action$
|
|
2764
|
-
mapId = _action$
|
|
2765
|
-
timestepAuto = _action$
|
|
2779
|
+
var _action$payload18 = action.payload,
|
|
2780
|
+
mapId = _action$payload18.mapId,
|
|
2781
|
+
timestepAuto = _action$payload18.timestepAuto;
|
|
2766
2782
|
if (!draft.byId[mapId]) {
|
|
2767
2783
|
return;
|
|
2768
2784
|
}
|
|
2769
2785
|
draft.byId[mapId].isTimestepAuto = timestepAuto;
|
|
2770
2786
|
},
|
|
2771
2787
|
toggleTimeSpanAuto: function toggleTimeSpanAuto(draft, action) {
|
|
2772
|
-
var _action$
|
|
2773
|
-
mapId = _action$
|
|
2774
|
-
timeSpanAuto = _action$
|
|
2788
|
+
var _action$payload19 = action.payload,
|
|
2789
|
+
mapId = _action$payload19.mapId,
|
|
2790
|
+
timeSpanAuto = _action$payload19.timeSpanAuto;
|
|
2775
2791
|
if (!draft.byId[mapId]) {
|
|
2776
2792
|
return;
|
|
2777
2793
|
}
|
|
2778
2794
|
draft.byId[mapId].isTimeSpanAuto = timeSpanAuto;
|
|
2779
2795
|
},
|
|
2780
2796
|
toggleTimeSliderHover: function toggleTimeSliderHover(draft, action) {
|
|
2781
|
-
var _action$
|
|
2782
|
-
mapId = _action$
|
|
2783
|
-
isTimeSliderHoverOn = _action$
|
|
2797
|
+
var _action$payload20 = action.payload,
|
|
2798
|
+
mapId = _action$payload20.mapId,
|
|
2799
|
+
isTimeSliderHoverOn = _action$payload20.isTimeSliderHoverOn;
|
|
2784
2800
|
if (!draft.byId[mapId]) {
|
|
2785
2801
|
return;
|
|
2786
2802
|
}
|
|
2787
2803
|
draft.byId[mapId].isTimeSliderHoverOn = isTimeSliderHoverOn;
|
|
2788
2804
|
},
|
|
2789
2805
|
toggleTimeSliderIsVisible: function toggleTimeSliderIsVisible(draft, action) {
|
|
2790
|
-
var _action$
|
|
2791
|
-
mapId = _action$
|
|
2792
|
-
isTimeSliderVisible = _action$
|
|
2806
|
+
var _action$payload21 = action.payload,
|
|
2807
|
+
mapId = _action$payload21.mapId,
|
|
2808
|
+
isTimeSliderVisible = _action$payload21.isTimeSliderVisible;
|
|
2793
2809
|
if (!draft.byId[mapId]) {
|
|
2794
2810
|
return;
|
|
2795
2811
|
}
|
|
2796
2812
|
draft.byId[mapId].isTimeSliderVisible = isTimeSliderVisible;
|
|
2797
2813
|
},
|
|
2798
2814
|
toggleZoomControls: function toggleZoomControls(draft, action) {
|
|
2799
|
-
var _action$
|
|
2800
|
-
mapId = _action$
|
|
2801
|
-
shouldShowZoomControls = _action$
|
|
2815
|
+
var _action$payload22 = action.payload,
|
|
2816
|
+
mapId = _action$payload22.mapId,
|
|
2817
|
+
shouldShowZoomControls = _action$payload22.shouldShowZoomControls;
|
|
2802
2818
|
if (!draft.byId[mapId]) {
|
|
2803
2819
|
return;
|
|
2804
2820
|
}
|
|
2805
2821
|
draft.byId[mapId].shouldShowZoomControls = shouldShowZoomControls;
|
|
2806
2822
|
},
|
|
2807
2823
|
setMapPinLocation: function setMapPinLocation(draft, action) {
|
|
2808
|
-
var _action$
|
|
2809
|
-
mapId = _action$
|
|
2810
|
-
mapPinLocation = _action$
|
|
2824
|
+
var _action$payload23 = action.payload,
|
|
2825
|
+
mapId = _action$payload23.mapId,
|
|
2826
|
+
mapPinLocation = _action$payload23.mapPinLocation;
|
|
2811
2827
|
if (!draft.byId[mapId]) {
|
|
2812
2828
|
return;
|
|
2813
2829
|
}
|
|
2814
2830
|
draft.byId[mapId].mapPinLocation = mapPinLocation;
|
|
2815
2831
|
},
|
|
2816
2832
|
setDisableMapPin: function setDisableMapPin(draft, action) {
|
|
2817
|
-
var _action$
|
|
2818
|
-
mapId = _action$
|
|
2819
|
-
disableMapPin = _action$
|
|
2833
|
+
var _action$payload24 = action.payload,
|
|
2834
|
+
mapId = _action$payload24.mapId,
|
|
2835
|
+
disableMapPin = _action$payload24.disableMapPin;
|
|
2820
2836
|
if (!draft.byId[mapId]) {
|
|
2821
2837
|
return;
|
|
2822
2838
|
}
|
|
2823
2839
|
draft.byId[mapId].disableMapPin = disableMapPin;
|
|
2824
2840
|
},
|
|
2825
2841
|
toggleMapPinIsVisible: function toggleMapPinIsVisible(draft, action) {
|
|
2826
|
-
var _action$
|
|
2827
|
-
mapId = _action$
|
|
2828
|
-
displayMapPin = _action$
|
|
2842
|
+
var _action$payload25 = action.payload,
|
|
2843
|
+
mapId = _action$payload25.mapId,
|
|
2844
|
+
displayMapPin = _action$payload25.displayMapPin,
|
|
2845
|
+
sourceId = _action$payload25.sourceId;
|
|
2829
2846
|
if (!draft.byId[mapId]) {
|
|
2830
2847
|
return;
|
|
2831
2848
|
}
|
|
2832
|
-
|
|
2849
|
+
if (sourceId) {
|
|
2850
|
+
var _draft$byId$mapId$map;
|
|
2851
|
+
var sources = (_draft$byId$mapId$map = draft.byId[mapId].mapPinVisibilitySources) !== null && _draft$byId$mapId$map !== void 0 ? _draft$byId$mapId$map : [];
|
|
2852
|
+
if (sources.includes(sourceId) === displayMapPin) {
|
|
2853
|
+
return;
|
|
2854
|
+
}
|
|
2855
|
+
draft.byId[mapId].mapPinVisibilitySources = displayMapPin ? [].concat(_toConsumableArray(sources), [sourceId]) : sources.filter(function (id) {
|
|
2856
|
+
return id !== sourceId;
|
|
2857
|
+
});
|
|
2858
|
+
} else {
|
|
2859
|
+
draft.byId[mapId].displayMapPin = displayMapPin;
|
|
2860
|
+
}
|
|
2833
2861
|
},
|
|
2834
2862
|
setDockedLayerManagerSize: function setDockedLayerManagerSize(draft, action) {
|
|
2835
|
-
var _action$
|
|
2836
|
-
mapId = _action$
|
|
2837
|
-
dockedLayerManagerSize = _action$
|
|
2863
|
+
var _action$payload26 = action.payload,
|
|
2864
|
+
mapId = _action$payload26.mapId,
|
|
2865
|
+
dockedLayerManagerSize = _action$payload26.dockedLayerManagerSize;
|
|
2838
2866
|
if (!draft.byId[mapId]) {
|
|
2839
2867
|
return;
|
|
2840
2868
|
}
|
|
2841
2869
|
draft.byId[mapId].dockedLayerManagerSize = dockedLayerManagerSize;
|
|
2842
2870
|
},
|
|
2843
2871
|
setDockedLayerManagerPosition: function setDockedLayerManagerPosition(draft, action) {
|
|
2844
|
-
var _action$
|
|
2845
|
-
mapId = _action$
|
|
2846
|
-
dockedLayerManagerPosition = _action$
|
|
2872
|
+
var _action$payload27 = action.payload,
|
|
2873
|
+
mapId = _action$payload27.mapId,
|
|
2874
|
+
dockedLayerManagerPosition = _action$payload27.dockedLayerManagerPosition;
|
|
2847
2875
|
if (!draft.byId[mapId]) {
|
|
2848
2876
|
return;
|
|
2849
2877
|
}
|
|
2850
2878
|
draft.byId[mapId].dockedLayerManagerPosition = dockedLayerManagerPosition;
|
|
2851
2879
|
},
|
|
2852
2880
|
setDockedLayerManagerDimensions: function setDockedLayerManagerDimensions(draft, action) {
|
|
2853
|
-
var _action$
|
|
2854
|
-
mapId = _action$
|
|
2855
|
-
dockedLayerManagerDimensions = _action$
|
|
2881
|
+
var _action$payload28 = action.payload,
|
|
2882
|
+
mapId = _action$payload28.mapId,
|
|
2883
|
+
dockedLayerManagerDimensions = _action$payload28.dockedLayerManagerDimensions;
|
|
2856
2884
|
if (!draft.byId[mapId]) {
|
|
2857
2885
|
return;
|
|
2858
2886
|
}
|
|
2859
2887
|
draft.byId[mapId].dockedLayerManagerDimensions = dockedLayerManagerDimensions;
|
|
2860
2888
|
},
|
|
2861
2889
|
setPendingInitialZoomToLayer: function setPendingInitialZoomToLayer(draft, action) {
|
|
2862
|
-
var _action$
|
|
2863
|
-
mapId = _action$
|
|
2864
|
-
layerId = _action$
|
|
2890
|
+
var _action$payload29 = action.payload,
|
|
2891
|
+
mapId = _action$payload29.mapId,
|
|
2892
|
+
layerId = _action$payload29.layerId;
|
|
2865
2893
|
if (!draft.byId[mapId]) {
|
|
2866
2894
|
return;
|
|
2867
2895
|
}
|
|
@@ -2872,18 +2900,18 @@ var slice$6 = createSlice({
|
|
|
2872
2900
|
draft.defaultMapSettings = action.payload.preset;
|
|
2873
2901
|
},
|
|
2874
2902
|
changeOverlayer: function changeOverlayer(draft, action) {
|
|
2875
|
-
var _action$
|
|
2876
|
-
mapId = _action$
|
|
2877
|
-
selectedOverlayer = _action$
|
|
2903
|
+
var _action$payload30 = action.payload,
|
|
2904
|
+
mapId = _action$payload30.mapId,
|
|
2905
|
+
selectedOverlayer = _action$payload30.selectedOverlayer;
|
|
2878
2906
|
if (!draft.byId[mapId]) {
|
|
2879
2907
|
return;
|
|
2880
2908
|
}
|
|
2881
2909
|
draft.byId[mapId].overLayers = [selectedOverlayer];
|
|
2882
2910
|
},
|
|
2883
2911
|
toggleClock: function toggleClock(draft, action) {
|
|
2884
|
-
var _action$
|
|
2885
|
-
mapId = _action$
|
|
2886
|
-
isClockVisible = _action$
|
|
2912
|
+
var _action$payload31 = action.payload,
|
|
2913
|
+
mapId = _action$payload31.mapId,
|
|
2914
|
+
isClockVisible = _action$payload31.isClockVisible;
|
|
2887
2915
|
if (!draft.byId[mapId]) {
|
|
2888
2916
|
return;
|
|
2889
2917
|
}
|
|
@@ -2894,19 +2922,19 @@ var slice$6 = createSlice({
|
|
|
2894
2922
|
}
|
|
2895
2923
|
},
|
|
2896
2924
|
toggleClockOptions: function toggleClockOptions(draft, action) {
|
|
2897
|
-
var _action$
|
|
2898
|
-
mapId = _action$
|
|
2899
|
-
isClockOptionsMenuVisible = _action$
|
|
2925
|
+
var _action$payload32 = action.payload,
|
|
2926
|
+
mapId = _action$payload32.mapId,
|
|
2927
|
+
isClockOptionsMenuVisible = _action$payload32.isClockOptionsMenuVisible;
|
|
2900
2928
|
if (!draft.byId[mapId]) {
|
|
2901
2929
|
return;
|
|
2902
2930
|
}
|
|
2903
2931
|
draft.byId[mapId].isClockOptionsMenuVisible = isClockOptionsMenuVisible;
|
|
2904
2932
|
},
|
|
2905
2933
|
setClockPositionSize: function setClockPositionSize(draft, action) {
|
|
2906
|
-
var _action$
|
|
2907
|
-
mapId = _action$
|
|
2908
|
-
position = _action$
|
|
2909
|
-
size = _action$
|
|
2934
|
+
var _action$payload33 = action.payload,
|
|
2935
|
+
mapId = _action$payload33.mapId,
|
|
2936
|
+
position = _action$payload33.position,
|
|
2937
|
+
size = _action$payload33.size;
|
|
2910
2938
|
if (!draft.byId[mapId]) {
|
|
2911
2939
|
return;
|
|
2912
2940
|
}
|
|
@@ -2918,10 +2946,10 @@ var slice$6 = createSlice({
|
|
|
2918
2946
|
}
|
|
2919
2947
|
},
|
|
2920
2948
|
setLegendPositionSize: function setLegendPositionSize(draft, action) {
|
|
2921
|
-
var _action$
|
|
2922
|
-
mapId = _action$
|
|
2923
|
-
position = _action$
|
|
2924
|
-
size = _action$
|
|
2949
|
+
var _action$payload34 = action.payload,
|
|
2950
|
+
mapId = _action$payload34.mapId,
|
|
2951
|
+
position = _action$payload34.position,
|
|
2952
|
+
size = _action$payload34.size;
|
|
2925
2953
|
if (!draft.byId[mapId]) {
|
|
2926
2954
|
return;
|
|
2927
2955
|
}
|
|
@@ -2935,10 +2963,10 @@ var slice$6 = createSlice({
|
|
|
2935
2963
|
},
|
|
2936
2964
|
extraReducers: function extraReducers(builder) {
|
|
2937
2965
|
builder.addCase(layerActions.addLayer, function (draft, action) {
|
|
2938
|
-
var _action$
|
|
2939
|
-
layerId = _action$
|
|
2940
|
-
mapId = _action$
|
|
2941
|
-
layer = _action$
|
|
2966
|
+
var _action$payload35 = action.payload,
|
|
2967
|
+
layerId = _action$payload35.layerId,
|
|
2968
|
+
mapId = _action$payload35.mapId,
|
|
2969
|
+
layer = _action$payload35.layer;
|
|
2942
2970
|
if (!draft.byId[mapId]) {
|
|
2943
2971
|
return;
|
|
2944
2972
|
}
|
|
@@ -2957,10 +2985,10 @@ var slice$6 = createSlice({
|
|
|
2957
2985
|
draft.byId[mapId].mapLayers.unshift(layerId);
|
|
2958
2986
|
}
|
|
2959
2987
|
}).addCase(layerActions.duplicateMapLayer, function (draft, action) {
|
|
2960
|
-
var _action$
|
|
2961
|
-
newLayerId = _action$
|
|
2962
|
-
oldLayerId = _action$
|
|
2963
|
-
mapId = _action$
|
|
2988
|
+
var _action$payload36 = action.payload,
|
|
2989
|
+
newLayerId = _action$payload36.newLayerId,
|
|
2990
|
+
oldLayerId = _action$payload36.oldLayerId,
|
|
2991
|
+
mapId = _action$payload36.mapId;
|
|
2964
2992
|
if (!draft.byId[mapId]) {
|
|
2965
2993
|
return;
|
|
2966
2994
|
}
|
|
@@ -2977,10 +3005,10 @@ var slice$6 = createSlice({
|
|
|
2977
3005
|
draft.byId[mapId].featureLayers.unshift(newLayerId);
|
|
2978
3006
|
}
|
|
2979
3007
|
}).addCase(layerActions.addBaseLayer, function (draft, action) {
|
|
2980
|
-
var _action$
|
|
2981
|
-
layer = _action$
|
|
2982
|
-
layerId = _action$
|
|
2983
|
-
mapId = _action$
|
|
3008
|
+
var _action$payload37 = action.payload,
|
|
3009
|
+
layer = _action$payload37.layer,
|
|
3010
|
+
layerId = _action$payload37.layerId,
|
|
3011
|
+
mapId = _action$payload37.mapId;
|
|
2984
3012
|
if (!draft.byId[mapId]) {
|
|
2985
3013
|
return;
|
|
2986
3014
|
}
|
|
@@ -3010,9 +3038,9 @@ var slice$6 = createSlice({
|
|
|
3010
3038
|
draft.byId[mapId].autoTimeStepLayerId = activeLayerId;
|
|
3011
3039
|
}
|
|
3012
3040
|
}).addCase(layerActions.setBaseLayers, function (draft, action) {
|
|
3013
|
-
var _action$
|
|
3014
|
-
layers = _action$
|
|
3015
|
-
mapId = _action$
|
|
3041
|
+
var _action$payload38 = action.payload,
|
|
3042
|
+
layers = _action$payload38.layers,
|
|
3043
|
+
mapId = _action$payload38.mapId;
|
|
3016
3044
|
// Split into base and overlayers
|
|
3017
3045
|
var baseLayers = [];
|
|
3018
3046
|
var overLayers = [];
|
|
@@ -3042,9 +3070,9 @@ var slice$6 = createSlice({
|
|
|
3042
3070
|
}
|
|
3043
3071
|
}
|
|
3044
3072
|
}).addCase(layerActions.layerDelete, function (draft, action) {
|
|
3045
|
-
var _action$
|
|
3046
|
-
mapId = _action$
|
|
3047
|
-
layerId = _action$
|
|
3073
|
+
var _action$payload39 = action.payload,
|
|
3074
|
+
mapId = _action$payload39.mapId,
|
|
3075
|
+
layerId = _action$payload39.layerId;
|
|
3048
3076
|
var map = draft.byId[mapId];
|
|
3049
3077
|
if (!map) {
|
|
3050
3078
|
return;
|
|
@@ -3070,9 +3098,9 @@ var slice$6 = createSlice({
|
|
|
3070
3098
|
map.autoTimeStepLayerId = activeLayerId;
|
|
3071
3099
|
}
|
|
3072
3100
|
}).addCase(layerActions.baseLayerDelete, function (draft, action) {
|
|
3073
|
-
var _action$
|
|
3074
|
-
mapId = _action$
|
|
3075
|
-
layerId = _action$
|
|
3101
|
+
var _action$payload40 = action.payload,
|
|
3102
|
+
mapId = _action$payload40.mapId,
|
|
3103
|
+
layerId = _action$payload40.layerId;
|
|
3076
3104
|
if (!draft.byId[mapId]) {
|
|
3077
3105
|
return;
|
|
3078
3106
|
}
|
|
@@ -3083,14 +3111,14 @@ var slice$6 = createSlice({
|
|
|
3083
3111
|
return id !== layerId;
|
|
3084
3112
|
});
|
|
3085
3113
|
}).addCase(layerActions.layerChangeDimension, function (draft, action) {
|
|
3086
|
-
var _action$
|
|
3087
|
-
layerId = _action$
|
|
3088
|
-
dimension = _action$
|
|
3114
|
+
var _action$payload41 = action.payload,
|
|
3115
|
+
layerId = _action$payload41.layerId,
|
|
3116
|
+
dimension = _action$payload41.dimension;
|
|
3089
3117
|
produceDraftStateSetMapDimensionFromLayerChangeDimension(draft, layerId, dimension);
|
|
3090
3118
|
}).addCase(setTimeSync, function (draft, action) {
|
|
3091
|
-
var _action$
|
|
3092
|
-
targetsFromAction = _action$
|
|
3093
|
-
source = _action$
|
|
3119
|
+
var _action$payload42 = action.payload,
|
|
3120
|
+
targetsFromAction = _action$payload42.targets,
|
|
3121
|
+
source = _action$payload42.source;
|
|
3094
3122
|
var sourceMapId = source === null || source === void 0 ? void 0 : source.payload.sourceId;
|
|
3095
3123
|
/* Because we want backwards compatibility with the previous code, we also need to listen to the original source action */
|
|
3096
3124
|
var targets = [];
|
|
@@ -3156,9 +3184,9 @@ var slice$6 = createSlice({
|
|
|
3156
3184
|
}
|
|
3157
3185
|
});
|
|
3158
3186
|
}).addCase(setBboxSync, function (draft, action) {
|
|
3159
|
-
var _action$
|
|
3160
|
-
targetsFromAction = _action$
|
|
3161
|
-
source = _action$
|
|
3187
|
+
var _action$payload43 = action.payload,
|
|
3188
|
+
targetsFromAction = _action$payload43.targets,
|
|
3189
|
+
source = _action$payload43.source;
|
|
3162
3190
|
/* Because we want backwards compatibility with the previous code, we also need to listen to the original source action */
|
|
3163
3191
|
var targets = [];
|
|
3164
3192
|
if (source) {
|
|
@@ -3190,9 +3218,9 @@ var slice$6 = createSlice({
|
|
|
3190
3218
|
* These targets can be used as payloads in new Layer actions.
|
|
3191
3219
|
* These actions are here handled via the layer reducer, as it is the same logic
|
|
3192
3220
|
*/
|
|
3193
|
-
var _action$
|
|
3194
|
-
targets = _action$
|
|
3195
|
-
source = _action$
|
|
3221
|
+
var _action$payload44 = action.payload,
|
|
3222
|
+
targets = _action$payload44.targets,
|
|
3223
|
+
source = _action$payload44.source;
|
|
3196
3224
|
return targets.reduce(function (prevState, target) {
|
|
3197
3225
|
var actionType = (source === null || source === void 0 ? void 0 : source.type) || 'GENERIC_SYNC_SETLAYERACTIONS';
|
|
3198
3226
|
var action = {
|
|
@@ -3214,9 +3242,9 @@ var slice$6 = createSlice({
|
|
|
3214
3242
|
});
|
|
3215
3243
|
return draft;
|
|
3216
3244
|
}).addCase(mapChangeDimension, function (draft, action) {
|
|
3217
|
-
var _action$
|
|
3218
|
-
mapId = _action$
|
|
3219
|
-
dimensionFromAction = _action$
|
|
3245
|
+
var _action$payload45 = action.payload,
|
|
3246
|
+
mapId = _action$payload45.mapId,
|
|
3247
|
+
dimensionFromAction = _action$payload45.dimension;
|
|
3220
3248
|
produceDraftStateSetWebMapDimension(draft, mapId, dimensionFromAction, true);
|
|
3221
3249
|
}).addCase(setMapPreset, function (draft, action) {
|
|
3222
3250
|
var mapId = action.payload.mapId;
|
|
@@ -4028,8 +4056,10 @@ var SupportedComponentTypes;
|
|
|
4028
4056
|
SupportedComponentTypes["WarningList"] = "WarningList";
|
|
4029
4057
|
SupportedComponentTypes["TimeSeries"] = "TimeSeries";
|
|
4030
4058
|
SupportedComponentTypes["Soundings"] = "Soundings";
|
|
4059
|
+
SupportedComponentTypes["CrossSection"] = "CrossSection";
|
|
4060
|
+
SupportedComponentTypes["DataExplorer"] = "DataExplorer";
|
|
4031
4061
|
})(SupportedComponentTypes || (SupportedComponentTypes = {}));
|
|
4032
|
-
var supportedComponentTypesForLinking = [SupportedComponentTypes.WarningList, SupportedComponentTypes.TimeSeries, SupportedComponentTypes.Soundings];
|
|
4062
|
+
var supportedComponentTypesForLinking = [SupportedComponentTypes.WarningList, SupportedComponentTypes.TimeSeries, SupportedComponentTypes.Soundings, SupportedComponentTypes.CrossSection, SupportedComponentTypes.DataExplorer];
|
|
4033
4063
|
|
|
4034
4064
|
var constants$1 = /*#__PURE__*/Object.freeze({
|
|
4035
4065
|
__proto__: null,
|
|
@@ -4454,6 +4484,71 @@ var selectors$6 = /*#__PURE__*/Object.freeze({
|
|
|
4454
4484
|
syncGroupStore: syncGroupStore
|
|
4455
4485
|
});
|
|
4456
4486
|
|
|
4487
|
+
/* *
|
|
4488
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4489
|
+
* you may not use this file except in compliance with the License.
|
|
4490
|
+
* You may obtain a copy of the License at
|
|
4491
|
+
*
|
|
4492
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4493
|
+
*
|
|
4494
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4495
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4496
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4497
|
+
* See the License for the specific language governing permissions and
|
|
4498
|
+
* limitations under the License.
|
|
4499
|
+
*
|
|
4500
|
+
* Copyright 2026 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
4501
|
+
* Copyright 2026 - Finnish Meteorological Institute (FMI)
|
|
4502
|
+
* Copyright 2026 - The Norwegian Meteorological Institute (MET Norway)
|
|
4503
|
+
* */
|
|
4504
|
+
var getBboxCenter = function getBboxCenter(bbox) {
|
|
4505
|
+
return [(bbox.left + bbox.right) / 2, (bbox.bottom + bbox.top) / 2];
|
|
4506
|
+
};
|
|
4507
|
+
/** The view that shows the whole bbox in a map of this size. */
|
|
4508
|
+
var fitBboxToMapSize = function fitBboxToMapSize(bbox, mapSize) {
|
|
4509
|
+
return {
|
|
4510
|
+
center: getBboxCenter(bbox),
|
|
4511
|
+
resolution: Math.max((bbox.right - bbox.left) / mapSize.width, (bbox.top - bbox.bottom) / mapSize.height)
|
|
4512
|
+
};
|
|
4513
|
+
};
|
|
4514
|
+
var getVisibleArea = function getVisibleArea(fit, mapSize) {
|
|
4515
|
+
var _fit$center = _slicedToArray(fit.center, 2),
|
|
4516
|
+
centerX = _fit$center[0],
|
|
4517
|
+
centerY = _fit$center[1];
|
|
4518
|
+
var halfWidth = mapSize.width * fit.resolution / 2;
|
|
4519
|
+
var halfHeight = mapSize.height * fit.resolution / 2;
|
|
4520
|
+
return {
|
|
4521
|
+
left: centerX - halfWidth,
|
|
4522
|
+
bottom: centerY - halfHeight,
|
|
4523
|
+
right: centerX + halfWidth,
|
|
4524
|
+
top: centerY + halfHeight
|
|
4525
|
+
};
|
|
4526
|
+
};
|
|
4527
|
+
/** Keeps the view of the source map's bbox, sized for the target map. */
|
|
4528
|
+
var scaleBboxToMapSize = function scaleBboxToMapSize(bbox, sourceMapSize, targetMapSize) {
|
|
4529
|
+
return getVisibleArea(fitBboxToMapSize(bbox, sourceMapSize), targetMapSize);
|
|
4530
|
+
};
|
|
4531
|
+
/** Gets the bbox of the source map sized for the target map at the same view. Unchanged while either map has no reported size. */
|
|
4532
|
+
var getBboxForMapSize = function getBboxForMapSize(state, bbox, sourceMapId, targetMapId) {
|
|
4533
|
+
var _state$webmap, _state$webmap2;
|
|
4534
|
+
var sourceMapSize = (_state$webmap = state.webmap) === null || _state$webmap === void 0 || (_state$webmap = _state$webmap.byId[sourceMapId]) === null || _state$webmap === void 0 ? void 0 : _state$webmap.mapSize;
|
|
4535
|
+
var targetMapSize = (_state$webmap2 = state.webmap) === null || _state$webmap2 === void 0 || (_state$webmap2 = _state$webmap2.byId[targetMapId]) === null || _state$webmap2 === void 0 ? void 0 : _state$webmap2.mapSize;
|
|
4536
|
+
return sourceMapSize && targetMapSize ? scaleBboxToMapSize(bbox, sourceMapSize, targetMapSize) : bbox;
|
|
4537
|
+
};
|
|
4538
|
+
var compareMapIds = function compareMapIds(firstMember, secondMember) {
|
|
4539
|
+
return firstMember.mapId < secondMember.mapId ? -1 : 1;
|
|
4540
|
+
};
|
|
4541
|
+
/** The member fit with the largest resolution shows every member's whole bbox. Ties go to the first map id. */
|
|
4542
|
+
var calculateSyncGroupFit = function calculateSyncGroupFit(members) {
|
|
4543
|
+
return _toConsumableArray(members).sort(compareMapIds).map(function (member) {
|
|
4544
|
+
return _objectSpread2({
|
|
4545
|
+
mapId: member.mapId
|
|
4546
|
+
}, fitBboxToMapSize(member.bbox, member.mapSize));
|
|
4547
|
+
}).reduce(function (tightestFit, memberFit) {
|
|
4548
|
+
return !tightestFit || memberFit.resolution > tightestFit.resolution ? memberFit : tightestFit;
|
|
4549
|
+
}, undefined);
|
|
4550
|
+
};
|
|
4551
|
+
|
|
4457
4552
|
var syncGroupsListener = createListenerMiddleware();
|
|
4458
4553
|
var ensureFeatureGroupsForSources = function ensureFeatureGroupsForSources(state, rootState, dispatch) {
|
|
4459
4554
|
var _globalState$workspac;
|
|
@@ -4526,7 +4621,7 @@ syncGroupsListener.startListening({
|
|
|
4526
4621
|
matcher: isAnyOf(syncGroupsActions.syncGroupAddTarget, syncGroupsActions.syncGroupLinkTarget),
|
|
4527
4622
|
effect: function () {
|
|
4528
4623
|
var _effect = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref, listenerApi) {
|
|
4529
|
-
var payload, type, groupId, linked, targetToUpdate, group, _t;
|
|
4624
|
+
var payload, type, groupId, linked, targetToUpdate, group, bboxPayload, _t;
|
|
4530
4625
|
return _regenerator().w(function (_context) {
|
|
4531
4626
|
while (1) switch (_context.n) {
|
|
4532
4627
|
case 0:
|
|
@@ -4569,16 +4664,17 @@ syncGroupsListener.startListening({
|
|
|
4569
4664
|
}], [groupId]));
|
|
4570
4665
|
return _context.a(3, 8);
|
|
4571
4666
|
case 5:
|
|
4572
|
-
|
|
4667
|
+
bboxPayload = group.payloadByType[SYNCGROUPS_TYPE_SETBBOX];
|
|
4668
|
+
if (bboxPayload) {
|
|
4573
4669
|
_context.n = 6;
|
|
4574
4670
|
break;
|
|
4575
4671
|
}
|
|
4576
4672
|
return _context.a(2);
|
|
4577
4673
|
case 6:
|
|
4578
|
-
listenerApi.dispatch(setBboxSync(
|
|
4674
|
+
listenerApi.dispatch(setBboxSync(bboxPayload, [{
|
|
4579
4675
|
targetId: targetToUpdate,
|
|
4580
|
-
bbox:
|
|
4581
|
-
srs:
|
|
4676
|
+
bbox: getBboxForMapSize(listenerApi.getState(), bboxPayload.bbox, bboxPayload.sourceId, targetToUpdate),
|
|
4677
|
+
srs: bboxPayload.srs
|
|
4582
4678
|
}], [groupId]));
|
|
4583
4679
|
return _context.a(3, 8);
|
|
4584
4680
|
case 7:
|
|
@@ -6455,6 +6551,7 @@ var DialogTypes;
|
|
|
6455
6551
|
DialogTypes["SyncGroups"] = "syncGroups";
|
|
6456
6552
|
DialogTypes["TimeSeriesSelect"] = "timeSeriesSelect";
|
|
6457
6553
|
DialogTypes["TimeSeriesManager"] = "timeSeriesManager";
|
|
6554
|
+
DialogTypes["TimeSeriesSettings"] = "timeSeriesSettings";
|
|
6458
6555
|
DialogTypes["TimeSeriesInfo"] = "timeSeriesInfo";
|
|
6459
6556
|
DialogTypes["TimeSeriesLocationInfo"] = "timeSeriesLocationInfo";
|
|
6460
6557
|
DialogTypes["KeywordFilter"] = "keywordFilter";
|
|
@@ -6478,6 +6575,7 @@ var DialogTypes;
|
|
|
6478
6575
|
DialogTypes["SoundingsLocations"] = "soundingsLocations";
|
|
6479
6576
|
DialogTypes["SoundingsManager"] = "soundingsManager";
|
|
6480
6577
|
DialogTypes["SoundingsProfileData"] = "soundingsProfileData";
|
|
6578
|
+
DialogTypes["CrossSectionManager"] = "crossSectionManager";
|
|
6481
6579
|
DialogTypes["TimeseriesLocations"] = "timeseriesLocations";
|
|
6482
6580
|
DialogTypes["Getfeatureinfo"] = "getfeatureinfo";
|
|
6483
6581
|
})(DialogTypes || (DialogTypes = {}));
|
|
@@ -6837,6 +6935,19 @@ var getSrs = createSelector(getMapById, function (store) {
|
|
|
6837
6935
|
var getBbox = createSelector(getMapById, function (store) {
|
|
6838
6936
|
return store ? store.bbox : {};
|
|
6839
6937
|
}, selectorMemoizationOptions);
|
|
6938
|
+
/**
|
|
6939
|
+
* Gets the size of the map in pixels, as reported by OpenLayers
|
|
6940
|
+
*/
|
|
6941
|
+
var getMapSize = createSelector(getMapById, function (map) {
|
|
6942
|
+
return map === null || map === void 0 ? void 0 : map.mapSize;
|
|
6943
|
+
}, selectorMemoizationOptions);
|
|
6944
|
+
/**
|
|
6945
|
+
* Gets if the maps wait for the workspace load to fit its zoom sync groups
|
|
6946
|
+
*/
|
|
6947
|
+
var areViewsSettling = function areViewsSettling(store) {
|
|
6948
|
+
var _getMapStore$areViews, _getMapStore2;
|
|
6949
|
+
return (_getMapStore$areViews = (_getMapStore2 = getMapStore(store)) === null || _getMapStore2 === void 0 ? void 0 : _getMapStore2.areViewsSettling) !== null && _getMapStore$areViews !== void 0 ? _getMapStore$areViews : false;
|
|
6950
|
+
};
|
|
6840
6951
|
/**
|
|
6841
6952
|
* Gets if map is animating
|
|
6842
6953
|
*
|
|
@@ -7240,7 +7351,7 @@ var getDisableMapPin = createSelector([getMapById], function (map) {
|
|
|
7240
7351
|
return map === null || map === void 0 ? void 0 : map.disableMapPin;
|
|
7241
7352
|
}, selectorMemoizationOptions);
|
|
7242
7353
|
/**
|
|
7243
|
-
* Returns the
|
|
7354
|
+
* Returns whether the map setting or any active consumer needs the map pin.
|
|
7244
7355
|
*
|
|
7245
7356
|
* Example getDisplayMapPin(store);
|
|
7246
7357
|
* @param {object} store store: object - store object
|
|
@@ -7248,7 +7359,8 @@ var getDisableMapPin = createSelector([getMapById], function (map) {
|
|
|
7248
7359
|
* @returns {boolean} returnType: boolean
|
|
7249
7360
|
*/
|
|
7250
7361
|
var getDisplayMapPin = createSelector(getMapById, function (store) {
|
|
7251
|
-
|
|
7362
|
+
var _store$mapPinVisibili;
|
|
7363
|
+
return !!(store !== null && store !== void 0 && store.displayMapPin) || !!(store !== null && store !== void 0 && (_store$mapPinVisibili = store.mapPinVisibilitySources) !== null && _store$mapPinVisibili !== void 0 && _store$mapPinVisibili.length);
|
|
7252
7364
|
}, selectorMemoizationOptions);
|
|
7253
7365
|
/**
|
|
7254
7366
|
* Returns if clock visible from webmap state
|
|
@@ -7652,6 +7764,7 @@ var getInitialZoomToLayerId = createSelector(getMapById, function (map) {
|
|
|
7652
7764
|
|
|
7653
7765
|
var selectors$1 = /*#__PURE__*/Object.freeze({
|
|
7654
7766
|
__proto__: null,
|
|
7767
|
+
areViewsSettling: areViewsSettling,
|
|
7655
7768
|
getActiveLayerId: getActiveLayerId,
|
|
7656
7769
|
getAllMapIds: getAllMapIds,
|
|
7657
7770
|
getAllMapsByIds: getAllMapsByIds,
|
|
@@ -7703,6 +7816,7 @@ var selectors$1 = /*#__PURE__*/Object.freeze({
|
|
|
7703
7816
|
getMapOverLayers: getMapOverLayers,
|
|
7704
7817
|
getMapOverLayersIds: getMapOverLayersIds,
|
|
7705
7818
|
getMapPreset: getMapPreset,
|
|
7819
|
+
getMapSize: getMapSize,
|
|
7706
7820
|
getMapTimeSliderCenterTime: getMapTimeSliderCenterTime,
|
|
7707
7821
|
getMapTimeSliderSecondsPerPx: getMapTimeSliderSecondsPerPx,
|
|
7708
7822
|
getMapTimeSliderSpan: getMapTimeSliderSpan,
|
|
@@ -8296,7 +8410,11 @@ genericListener.startListening({
|
|
|
8296
8410
|
case 0:
|
|
8297
8411
|
payload = _ref3.payload;
|
|
8298
8412
|
listenerApi.cancelActiveListeners();
|
|
8299
|
-
targets = getTargets(listenerApi.getState(), payload, SYNCGROUPS_TYPE_SETBBOX)
|
|
8413
|
+
targets = getTargets(listenerApi.getState(), payload, SYNCGROUPS_TYPE_SETBBOX).map(function (target) {
|
|
8414
|
+
return _objectSpread2(_objectSpread2({}, target), {}, {
|
|
8415
|
+
bbox: getBboxForMapSize(listenerApi.getState(), payload.bbox, payload.sourceId, target.targetId)
|
|
8416
|
+
});
|
|
8417
|
+
});
|
|
8300
8418
|
groups = getTargetGroups(listenerApi.getState(), payload, SYNCGROUPS_TYPE_SETBBOX);
|
|
8301
8419
|
listenerApi.dispatch(setBboxSync(payload, targets, groups));
|
|
8302
8420
|
case 1:
|
|
@@ -9917,6 +10035,13 @@ var getViewObjectForSyncGroup = function getViewObjectForSyncGroup(id) {
|
|
|
9917
10035
|
}
|
|
9918
10036
|
return storedView;
|
|
9919
10037
|
};
|
|
10038
|
+
var setSyncGroupViewFit = function setSyncGroupViewFit(groupId, fit, projection) {
|
|
10039
|
+
getViewObjectForSyncGroup(groupId).setView(new View({
|
|
10040
|
+
center: fit.center,
|
|
10041
|
+
resolution: fit.resolution,
|
|
10042
|
+
projection: projection
|
|
10043
|
+
}));
|
|
10044
|
+
};
|
|
9920
10045
|
|
|
9921
10046
|
/* *
|
|
9922
10047
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -10482,12 +10607,6 @@ var getHasDrawToolForLayer = function getHasDrawToolForLayer(store, layerId) {
|
|
|
10482
10607
|
return tool.geoJSONLayerId === layerId;
|
|
10483
10608
|
});
|
|
10484
10609
|
};
|
|
10485
|
-
var getActiveDrawToolId = createSelector(selectAllDrawingTools, function (drawtools) {
|
|
10486
|
-
var activeDrawTool = drawtools === null || drawtools === void 0 ? void 0 : drawtools.find(function (drawtool) {
|
|
10487
|
-
return drawtool.activeDrawModeId !== '';
|
|
10488
|
-
});
|
|
10489
|
-
return (activeDrawTool === null || activeDrawTool === void 0 ? void 0 : activeDrawTool.drawToolId) || '';
|
|
10490
|
-
});
|
|
10491
10610
|
var getDrawModeById = createSelector(selectDrawToolById, function (_store, _drawToolId, drawModeId) {
|
|
10492
10611
|
return drawModeId;
|
|
10493
10612
|
}, function (draw, drawModeId) {
|
|
@@ -10524,7 +10643,6 @@ var selectors = /*#__PURE__*/Object.freeze({
|
|
|
10524
10643
|
__proto__: null,
|
|
10525
10644
|
getActiveDrawMode: getActiveDrawMode,
|
|
10526
10645
|
getActiveDrawModeId: getActiveDrawModeId,
|
|
10527
|
-
getActiveDrawToolId: getActiveDrawToolId,
|
|
10528
10646
|
getDrawModeById: getDrawModeById,
|
|
10529
10647
|
getDrawToolGeoJSONLayerId: getDrawToolGeoJSONLayerId,
|
|
10530
10648
|
getDrawingtoolStore: getDrawingtoolStore,
|
|
@@ -11687,4 +11805,4 @@ var storeSentryStateMap = {
|
|
|
11687
11805
|
}
|
|
11688
11806
|
};
|
|
11689
11807
|
|
|
11690
|
-
export { FEATURE_GROUP_PREFIX, IS_LEGEND_OPEN_BY_DEFAULT, PUBLIC_WARNING_DRAW_TOOL_ID, SECONDS_IN_DAY, SECONDS_IN_HOUR, commonActions, commonListener, commonReducers, commonSelectors, configureOpenGeoWebStore, constructSyncSourceDisplayName, createMockStore, createSentryStatePicker, createViewObjectForNewMap, drawingToolActions, drawingToolListener, drawingToolReducer, selectors as drawingToolSelectors, filterLayers$1 as filterLayers, genericActions, genericListener, selectors$5 as genericSelectors, getFeatureGroupId, getFeatureLinksForAllPanelsFromState, getFeatureSyncLayerMetadata$1 as getFeatureSyncLayerMetadata, getFeatureSyncLayersForPanel, getLinkedFeatureSourcePanelIdsForMapId, getLinkedTargetIdsForFeatureSourcePanel, getSingularDrawtoolDrawLayerId, getTakenWarningTimelineIds, getUrlHost, getUserAddedServices, getViewObjectForMapId, getViewObjectForSyncGroup, initialState$4 as initialState, isWarningsTimelineLinkSourceAllowed, layerActions, layerReducer, selectors$4 as layerSelectors, types$2 as layerTypes, utils$1 as layerUtils, layersListener, constants$1 as linkComponentTypesConstants, loadingIndicatorActions, constants as loadingIndicatorConstants, loadingIndicatorReducer, selectors$3 as loadingIndicatorSelectors, makeFeatureSyncLayerId, mapActions, enums as mapEnums, mapListener, mapReducer, selectors$1 as mapSelectors, types$3 as mapTypes, mapUtils, metronomeListener, openlayersListener, pickDimension, pickEntities, pickList, pickRecord, routerActions, routerListener, routerReducer, utils as routerUtils, selectorMemoizationOptions, serviceActions, serviceListener, serviceReducer, selectors$7 as serviceSelectors, setUserAddedServices, storeMiddlewares, storeReducerMap, storeSentryStateMap, storeTestSettings, storeTestUtils, utils$3 as storeUtils, constants$2 as syncConstants, syncGroupsActions, syncGroupsListener, syncGroupsReducer, selector as syncGroupsSelector, selectors$6 as syncGroupsSelectors, types$1 as syncGroupsTypes, types$1 as types, uiActions, uiReducer, selectors$2 as uiSelectors, types as uiTypes, unifyReducerMaps, unifySentryStateMaps, upsertFeatureSyncLayer, useRegisterFeatureSyncSource, useSetupDialog, useSyncgroupTimeState, useUpdateFeatureSyncLayers };
|
|
11808
|
+
export { FEATURE_GROUP_PREFIX, IS_LEGEND_OPEN_BY_DEFAULT, PUBLIC_WARNING_DRAW_TOOL_ID, SECONDS_IN_DAY, SECONDS_IN_HOUR, calculateSyncGroupFit, commonActions, commonListener, commonReducers, commonSelectors, configureOpenGeoWebStore, constructSyncSourceDisplayName, createMockStore, createSentryStatePicker, createViewObjectForNewMap, drawingToolActions, drawingToolListener, drawingToolReducer, selectors as drawingToolSelectors, filterLayers$1 as filterLayers, genericActions, genericListener, selectors$5 as genericSelectors, getFeatureGroupId, getFeatureLinksForAllPanelsFromState, getFeatureSyncLayerMetadata$1 as getFeatureSyncLayerMetadata, getFeatureSyncLayersForPanel, getLinkedFeatureSourcePanelIdsForMapId, getLinkedTargetIdsForFeatureSourcePanel, getSingularDrawtoolDrawLayerId, getTakenWarningTimelineIds, getUrlHost, getUserAddedServices, getViewObjectForMapId, getViewObjectForSyncGroup, getVisibleArea, initialState$4 as initialState, isWarningsTimelineLinkSourceAllowed, layerActions, layerReducer, selectors$4 as layerSelectors, types$2 as layerTypes, utils$1 as layerUtils, layersListener, constants$1 as linkComponentTypesConstants, loadingIndicatorActions, constants as loadingIndicatorConstants, loadingIndicatorReducer, selectors$3 as loadingIndicatorSelectors, makeFeatureSyncLayerId, mapActions, enums as mapEnums, mapListener, mapReducer, selectors$1 as mapSelectors, types$3 as mapTypes, mapUtils, metronomeListener, openlayersListener, pickDimension, pickEntities, pickList, pickRecord, routerActions, routerListener, routerReducer, utils as routerUtils, selectorMemoizationOptions, serviceActions, serviceListener, serviceReducer, selectors$7 as serviceSelectors, setSyncGroupViewFit, setUserAddedServices, storeMiddlewares, storeReducerMap, storeSentryStateMap, storeTestSettings, storeTestUtils, utils$3 as storeUtils, constants$2 as syncConstants, syncGroupsActions, syncGroupsListener, syncGroupsReducer, selector as syncGroupsSelector, selectors$6 as syncGroupsSelectors, types$1 as syncGroupsTypes, types$1 as types, uiActions, uiReducer, selectors$2 as uiSelectors, types as uiTypes, unifyReducerMaps, unifySentryStateMaps, upsertFeatureSyncLayer, useRegisterFeatureSyncSource, useSetupDialog, useSyncgroupTimeState, useUpdateFeatureSyncLayers };
|
|
@@ -11,27 +11,6 @@ export declare const selectDrawToolById: (state: DrawtoolModuleStore, id: string
|
|
|
11
11
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
12
12
|
}, selectAllDrawingTools: (state: DrawtoolModuleStore) => import("./reducer").DrawToolItem[];
|
|
13
13
|
export declare const getHasDrawToolForLayer: (store: DrawtoolModuleStore, layerId?: string) => boolean;
|
|
14
|
-
export declare const getActiveDrawToolId: ((state: DrawtoolModuleStore) => string) & {
|
|
15
|
-
clearCache: () => void;
|
|
16
|
-
resultsCount: () => number;
|
|
17
|
-
resetResultsCount: () => void;
|
|
18
|
-
} & {
|
|
19
|
-
resultFunc: (resultFuncArgs_0: import("./reducer").DrawToolItem[]) => string;
|
|
20
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("./reducer").DrawToolItem[]) => string) & {
|
|
21
|
-
clearCache: () => void;
|
|
22
|
-
resultsCount: () => number;
|
|
23
|
-
resetResultsCount: () => void;
|
|
24
|
-
};
|
|
25
|
-
lastResult: () => string;
|
|
26
|
-
dependencies: [(state: DrawtoolModuleStore) => import("./reducer").DrawToolItem[]];
|
|
27
|
-
recomputations: () => number;
|
|
28
|
-
resetRecomputations: () => void;
|
|
29
|
-
dependencyRecomputations: () => number;
|
|
30
|
-
resetDependencyRecomputations: () => void;
|
|
31
|
-
} & {
|
|
32
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
33
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
34
|
-
};
|
|
35
14
|
export declare const getDrawModeById: ((state: DrawtoolModuleStore, _drawToolId: string, drawModeId: string) => import("libs/webmap-react/dist").DrawMode | undefined) & {
|
|
36
15
|
clearCache: () => void;
|
|
37
16
|
resultsCount: () => number;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare enum SupportedComponentTypes {
|
|
2
2
|
WarningList = "WarningList",
|
|
3
3
|
TimeSeries = "TimeSeries",
|
|
4
|
-
Soundings = "Soundings"
|
|
4
|
+
Soundings = "Soundings",
|
|
5
|
+
CrossSection = "CrossSection",
|
|
6
|
+
DataExplorer = "DataExplorer"
|
|
5
7
|
}
|
|
6
8
|
export declare const supportedComponentTypesForLinking: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
2
|
import type { MapPinLocationPayload, SetBboxPayload, SetStepBackWardOrForward, UpdateAllMapDimensionsPayload } from '@opengeoweb/webmap-react';
|
|
3
|
-
import type { WebMapState, SetAutoLayerIdPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderSpanPayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderWidthPayload, SetTimeSliderCenterTimePayload, SetEndTimeOverriding, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSpanAutoPayload, ToggleTimeSliderHoverPayload, DisableMapPinPayload, ToggleTimeSliderIsVisiblePayload, SetDockedLayerManagerSize, SetDockedLayerManagerPosition, SetDockedLayerManagerDimensions, SetAnimationLengthPayload, RefreshAnimationRangePayload, SetDefaultMapSettingsPayload, ToggleClockPayload, SetClockPositionSizePayload, SetPendingInitialZoomToLayerPayload, SetLegendPositionSizePayload } from './types';
|
|
3
|
+
import type { MapSize, WebMapState, SetAutoLayerIdPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderSpanPayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderWidthPayload, SetTimeSliderCenterTimePayload, SetEndTimeOverriding, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSpanAutoPayload, ToggleTimeSliderHoverPayload, DisableMapPinPayload, ToggleTimeSliderIsVisiblePayload, SetDockedLayerManagerSize, SetDockedLayerManagerPosition, SetDockedLayerManagerDimensions, SetAnimationLengthPayload, RefreshAnimationRangePayload, SetDefaultMapSettingsPayload, ToggleClockPayload, SetClockPositionSizePayload, SetPendingInitialZoomToLayerPayload, SetLegendPositionSizePayload } from './types';
|
|
4
4
|
import type { ToggleMapPinIsVisiblePayload, ToggleZoomControlsPayload } from '../types';
|
|
5
5
|
import type { MapActionOrigin } from './enums';
|
|
6
6
|
/**
|
|
@@ -18,6 +18,13 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
|
18
18
|
unregisterMap: (draft: Draft<WebMapState>, action: PayloadAction<{
|
|
19
19
|
mapId: string;
|
|
20
20
|
}>) => void;
|
|
21
|
+
setMapSize: (draft: Draft<WebMapState>, action: PayloadAction<{
|
|
22
|
+
mapId: string;
|
|
23
|
+
mapSize: MapSize;
|
|
24
|
+
}>) => void;
|
|
25
|
+
/** Hides the maps until the workspace load has fitted its zoom sync groups. */
|
|
26
|
+
startViewsSettling: (draft: Draft<WebMapState>) => void;
|
|
27
|
+
endViewsSettling: (draft: Draft<WebMapState>) => void;
|
|
21
28
|
setStepBackwardOrForward: (_draft: Draft<WebMapState>, _action: PayloadAction<SetStepBackWardOrForward>) => void;
|
|
22
29
|
setBbox: (draft: Draft<WebMapState>, action: PayloadAction<SetBboxPayload>) => void;
|
|
23
30
|
mapUpdateAllMapDimensions: (draft: Draft<WebMapState>, action: PayloadAction<UpdateAllMapDimensionsPayload>) => void;
|
|
@@ -86,6 +93,12 @@ export declare const mapActions: {
|
|
|
86
93
|
unregisterMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
87
94
|
mapId: string;
|
|
88
95
|
}, "mapReducer/unregisterMap">;
|
|
96
|
+
setMapSize: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
97
|
+
mapId: string;
|
|
98
|
+
mapSize: MapSize;
|
|
99
|
+
}, "mapReducer/setMapSize">;
|
|
100
|
+
startViewsSettling: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"mapReducer/startViewsSettling">;
|
|
101
|
+
endViewsSettling: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"mapReducer/endViewsSettling">;
|
|
89
102
|
setStepBackwardOrForward: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetStepBackWardOrForward, "mapReducer/setStepBackwardOrForward">;
|
|
90
103
|
setBbox: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetBboxPayload, "mapReducer/setBbox">;
|
|
91
104
|
mapUpdateAllMapDimensions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UpdateAllMapDimensionsPayload, "mapReducer/mapUpdateAllMapDimensions">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AnimationAnchorInputs, AnimationLengthSetting } from '@opengeoweb/time-slider';
|
|
2
|
-
import type { Bbox, ClockPosition, ClockSize, LegendPosition, LegendSize, MapPreset, WebMap, WebMapState } from './types';
|
|
2
|
+
import type { Bbox, ClockPosition, ClockSize, LegendPosition, LegendSize, MapPreset, MapSize, WebMap, WebMapState } from './types';
|
|
3
3
|
import type { CoreAppStore } from '../../types';
|
|
4
4
|
import { uiTypes } from '../../ui';
|
|
5
5
|
import type { Dimension, DockedLayerManagerPosition, DockedLayerManagerSize, DockedLayerManagerDimensions, HarmonieInitialPropsResult, InitialTimeSliderProps, Layer, MultiMapInitialProps, ReduxLayer, TimeSliderStartEndStep, WebMapAnimationList } from '../types';
|
|
@@ -937,6 +937,34 @@ export declare const getBbox: ((state: CoreAppStore, mapId: string) => Bbox) & {
|
|
|
937
937
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
938
938
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
939
939
|
};
|
|
940
|
+
/**
|
|
941
|
+
* Gets the size of the map in pixels, as reported by OpenLayers
|
|
942
|
+
*/
|
|
943
|
+
export declare const getMapSize: ((state: CoreAppStore, mapId: string) => MapSize | undefined) & {
|
|
944
|
+
clearCache: () => void;
|
|
945
|
+
resultsCount: () => number;
|
|
946
|
+
resetResultsCount: () => void;
|
|
947
|
+
} & {
|
|
948
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => MapSize | undefined;
|
|
949
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => MapSize | undefined) & {
|
|
950
|
+
clearCache: () => void;
|
|
951
|
+
resultsCount: () => number;
|
|
952
|
+
resetResultsCount: () => void;
|
|
953
|
+
};
|
|
954
|
+
lastResult: () => MapSize | undefined;
|
|
955
|
+
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
956
|
+
recomputations: () => number;
|
|
957
|
+
resetRecomputations: () => void;
|
|
958
|
+
dependencyRecomputations: () => number;
|
|
959
|
+
resetDependencyRecomputations: () => void;
|
|
960
|
+
} & {
|
|
961
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
962
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
963
|
+
};
|
|
964
|
+
/**
|
|
965
|
+
* Gets if the maps wait for the workspace load to fit its zoom sync groups
|
|
966
|
+
*/
|
|
967
|
+
export declare const areViewsSettling: (store: CoreAppStore) => boolean;
|
|
940
968
|
/**
|
|
941
969
|
* Gets if map is animating
|
|
942
970
|
*
|
|
@@ -2039,25 +2067,25 @@ export declare const getDisableMapPin: ((state: CoreAppStore, mapId: string) =>
|
|
|
2039
2067
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
2040
2068
|
};
|
|
2041
2069
|
/**
|
|
2042
|
-
* Returns the
|
|
2070
|
+
* Returns whether the map setting or any active consumer needs the map pin.
|
|
2043
2071
|
*
|
|
2044
2072
|
* Example getDisplayMapPin(store);
|
|
2045
2073
|
* @param {object} store store: object - store object
|
|
2046
2074
|
* @param {string} mapId mapId: string - Id of the map
|
|
2047
2075
|
* @returns {boolean} returnType: boolean
|
|
2048
2076
|
*/
|
|
2049
|
-
export declare const getDisplayMapPin: ((state: CoreAppStore, mapId: string) => boolean
|
|
2077
|
+
export declare const getDisplayMapPin: ((state: CoreAppStore, mapId: string) => boolean) & {
|
|
2050
2078
|
clearCache: () => void;
|
|
2051
2079
|
resultsCount: () => number;
|
|
2052
2080
|
resetResultsCount: () => void;
|
|
2053
2081
|
} & {
|
|
2054
|
-
resultFunc: (resultFuncArgs_0: WebMap | undefined) => boolean
|
|
2055
|
-
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => boolean
|
|
2082
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => boolean;
|
|
2083
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => boolean) & {
|
|
2056
2084
|
clearCache: () => void;
|
|
2057
2085
|
resultsCount: () => number;
|
|
2058
2086
|
resetResultsCount: () => void;
|
|
2059
2087
|
};
|
|
2060
|
-
lastResult: () => boolean
|
|
2088
|
+
lastResult: () => boolean;
|
|
2061
2089
|
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
2062
2090
|
recomputations: () => number;
|
|
2063
2091
|
resetRecomputations: () => void;
|
|
@@ -2231,8 +2259,8 @@ export declare const getMapPreset: ((state: CoreAppStore & uiTypes.UIModuleState
|
|
|
2231
2259
|
resultsCount: () => number;
|
|
2232
2260
|
resetResultsCount: () => void;
|
|
2233
2261
|
} & {
|
|
2234
|
-
resultFunc: (resultFuncArgs_0: ReduxLayer[], resultFuncArgs_1: ReduxLayer[], resultFuncArgs_2: ReduxLayer[], resultFuncArgs_3: Bbox, resultFuncArgs_4: string, resultFuncArgs_5: string | undefined, resultFuncArgs_6: string | undefined, resultFuncArgs_7: string | undefined, resultFuncArgs_8: boolean, resultFuncArgs_9: boolean, resultFuncArgs_10: boolean | undefined, resultFuncArgs_11: boolean
|
|
2235
|
-
memoizedResultFunc: ((resultFuncArgs_0: ReduxLayer[], resultFuncArgs_1: ReduxLayer[], resultFuncArgs_2: ReduxLayer[], resultFuncArgs_3: Bbox, resultFuncArgs_4: string, resultFuncArgs_5: string | undefined, resultFuncArgs_6: string | undefined, resultFuncArgs_7: string | undefined, resultFuncArgs_8: boolean, resultFuncArgs_9: boolean, resultFuncArgs_10: boolean | undefined, resultFuncArgs_11: boolean
|
|
2262
|
+
resultFunc: (resultFuncArgs_0: ReduxLayer[], resultFuncArgs_1: ReduxLayer[], resultFuncArgs_2: ReduxLayer[], resultFuncArgs_3: Bbox, resultFuncArgs_4: string, resultFuncArgs_5: string | undefined, resultFuncArgs_6: string | undefined, resultFuncArgs_7: string | undefined, resultFuncArgs_8: boolean, resultFuncArgs_9: boolean, resultFuncArgs_10: boolean | undefined, resultFuncArgs_11: boolean, resultFuncArgs_12: boolean | undefined, resultFuncArgs_13: number, resultFuncArgs_14: number | undefined, resultFuncArgs_15: string | undefined, resultFuncArgs_16: string | undefined, resultFuncArgs_17: number | undefined, resultFuncArgs_18: Dimension[] | undefined, resultFuncArgs_19: boolean | undefined, resultFuncArgs_20: boolean | undefined, resultFuncArgs_21: AnimationLengthSetting | undefined, resultFuncArgs_22: DockedLayerManagerSize, resultFuncArgs_23: DockedLayerManagerPosition, resultFuncArgs_24: DockedLayerManagerDimensions | undefined, resultFuncArgs_25: boolean | undefined, resultFuncArgs_26: boolean | undefined, resultFuncArgs_27: ClockPosition | undefined, resultFuncArgs_28: ClockSize | undefined, resultFuncArgs_29: LegendPosition | undefined, resultFuncArgs_30: LegendSize | undefined, resultFuncArgs_31: uiTypes.UIStoreType, resultFuncArgs_32: string, resultFuncArgs_33: string) => MapPreset;
|
|
2263
|
+
memoizedResultFunc: ((resultFuncArgs_0: ReduxLayer[], resultFuncArgs_1: ReduxLayer[], resultFuncArgs_2: ReduxLayer[], resultFuncArgs_3: Bbox, resultFuncArgs_4: string, resultFuncArgs_5: string | undefined, resultFuncArgs_6: string | undefined, resultFuncArgs_7: string | undefined, resultFuncArgs_8: boolean, resultFuncArgs_9: boolean, resultFuncArgs_10: boolean | undefined, resultFuncArgs_11: boolean, resultFuncArgs_12: boolean | undefined, resultFuncArgs_13: number, resultFuncArgs_14: number | undefined, resultFuncArgs_15: string | undefined, resultFuncArgs_16: string | undefined, resultFuncArgs_17: number | undefined, resultFuncArgs_18: Dimension[] | undefined, resultFuncArgs_19: boolean | undefined, resultFuncArgs_20: boolean | undefined, resultFuncArgs_21: AnimationLengthSetting | undefined, resultFuncArgs_22: DockedLayerManagerSize, resultFuncArgs_23: DockedLayerManagerPosition, resultFuncArgs_24: DockedLayerManagerDimensions | undefined, resultFuncArgs_25: boolean | undefined, resultFuncArgs_26: boolean | undefined, resultFuncArgs_27: ClockPosition | undefined, resultFuncArgs_28: ClockSize | undefined, resultFuncArgs_29: LegendPosition | undefined, resultFuncArgs_30: LegendSize | undefined, resultFuncArgs_31: uiTypes.UIStoreType, resultFuncArgs_32: string, resultFuncArgs_33: string) => MapPreset) & {
|
|
2236
2264
|
clearCache: () => void;
|
|
2237
2265
|
resultsCount: () => number;
|
|
2238
2266
|
resetResultsCount: () => void;
|
|
@@ -2558,18 +2586,18 @@ export declare const getMapPreset: ((state: CoreAppStore & uiTypes.UIModuleState
|
|
|
2558
2586
|
} & {
|
|
2559
2587
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2560
2588
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
2561
|
-
}, ((state: CoreAppStore, mapId: string) => boolean
|
|
2589
|
+
}, ((state: CoreAppStore, mapId: string) => boolean) & {
|
|
2562
2590
|
clearCache: () => void;
|
|
2563
2591
|
resultsCount: () => number;
|
|
2564
2592
|
resetResultsCount: () => void;
|
|
2565
2593
|
} & {
|
|
2566
|
-
resultFunc: (resultFuncArgs_0: WebMap | undefined) => boolean
|
|
2567
|
-
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => boolean
|
|
2594
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => boolean;
|
|
2595
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => boolean) & {
|
|
2568
2596
|
clearCache: () => void;
|
|
2569
2597
|
resultsCount: () => number;
|
|
2570
2598
|
resetResultsCount: () => void;
|
|
2571
2599
|
};
|
|
2572
|
-
lastResult: () => boolean
|
|
2600
|
+
lastResult: () => boolean;
|
|
2573
2601
|
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
2574
2602
|
recomputations: () => number;
|
|
2575
2603
|
resetRecomputations: () => void;
|
|
@@ -50,6 +50,8 @@ export interface WebMap {
|
|
|
50
50
|
mapPinLocation?: MapLocation;
|
|
51
51
|
disableMapPin?: boolean;
|
|
52
52
|
displayMapPin?: boolean;
|
|
53
|
+
/** Active consumers of the shared location pin; omitted from map presets. */
|
|
54
|
+
mapPinVisibilitySources?: string[];
|
|
53
55
|
dockedLayerManagerSize?: DockedLayerManagerSize;
|
|
54
56
|
dockedLayerManagerPosition?: DockedLayerManagerPosition;
|
|
55
57
|
dockedLayerManagerDimensions?: DockedLayerManagerDimensions;
|
|
@@ -62,6 +64,11 @@ export interface WebMap {
|
|
|
62
64
|
initialZoomToLayerId?: string;
|
|
63
65
|
legendPosition?: LegendPosition;
|
|
64
66
|
legendSize?: LegendSize;
|
|
67
|
+
mapSize?: MapSize;
|
|
68
|
+
}
|
|
69
|
+
export interface MapSize {
|
|
70
|
+
width: number;
|
|
71
|
+
height: number;
|
|
65
72
|
}
|
|
66
73
|
export type DockedLayerManagerSize = 'sizeSmall' | 'sizeMedium' | 'sizeLarge' | '';
|
|
67
74
|
export interface DockedLayerManagerPosition {
|
|
@@ -76,6 +83,7 @@ export interface WebMapState {
|
|
|
76
83
|
byId: Record<string, WebMap>;
|
|
77
84
|
allIds: string[];
|
|
78
85
|
defaultMapSettings?: MapPreset;
|
|
86
|
+
areViewsSettling?: boolean;
|
|
79
87
|
}
|
|
80
88
|
export interface Bbox {
|
|
81
89
|
left: number;
|
|
@@ -267,6 +275,8 @@ export interface DisableMapPinPayload {
|
|
|
267
275
|
export interface ToggleMapPinIsVisiblePayload {
|
|
268
276
|
mapId: string;
|
|
269
277
|
displayMapPin: boolean;
|
|
278
|
+
/** A consumer may release only its own visibility request. */
|
|
279
|
+
sourceId?: string;
|
|
270
280
|
}
|
|
271
281
|
export interface SetMapPresetPayload {
|
|
272
282
|
mapId: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Bbox, MapSize } from '../../map/map/types';
|
|
2
|
+
import type { CoreAppStore } from '../../types';
|
|
3
|
+
export interface SyncGroupFit {
|
|
4
|
+
center: [number, number];
|
|
5
|
+
resolution: number;
|
|
6
|
+
}
|
|
7
|
+
export interface SyncGroupFitMember {
|
|
8
|
+
mapId: string;
|
|
9
|
+
bbox: Bbox;
|
|
10
|
+
mapSize: MapSize;
|
|
11
|
+
}
|
|
12
|
+
export interface SyncGroupMemberFit extends SyncGroupFit {
|
|
13
|
+
mapId: string;
|
|
14
|
+
}
|
|
15
|
+
/** The view that shows the whole bbox in a map of this size. */
|
|
16
|
+
export declare const fitBboxToMapSize: (bbox: Bbox, mapSize: MapSize) => SyncGroupFit;
|
|
17
|
+
export declare const getVisibleArea: (fit: SyncGroupFit, mapSize: MapSize) => Bbox;
|
|
18
|
+
/** Keeps the view of the source map's bbox, sized for the target map. */
|
|
19
|
+
export declare const scaleBboxToMapSize: (bbox: Bbox, sourceMapSize: MapSize, targetMapSize: MapSize) => Bbox;
|
|
20
|
+
/** Gets the bbox of the source map sized for the target map at the same view. Unchanged while either map has no reported size. */
|
|
21
|
+
export declare const getBboxForMapSize: (state: CoreAppStore, bbox: Bbox, sourceMapId: string, targetMapId: string) => Bbox;
|
|
22
|
+
/** The member fit with the largest resolution shows every member's whole bbox. Ties go to the first map id. */
|
|
23
|
+
export declare const calculateSyncGroupFit: (members: SyncGroupFitMember[]) => SyncGroupMemberFit | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Observable, View } from 'ol';
|
|
2
|
+
import type { SyncGroupFit } from './syncGroupFit';
|
|
2
3
|
export declare const copyView: (view: View) => View;
|
|
3
4
|
/**
|
|
4
5
|
* The StoredView objects keep references to OpenLayers View objects that may be shared
|
|
@@ -24,3 +25,4 @@ export declare const clearSyncGroupViewStore: () => void;
|
|
|
24
25
|
export declare const getViewObjectForMapId: (id: string) => StoredView;
|
|
25
26
|
export declare const createViewObjectForNewMap: (createFromId: string, newId: string) => void;
|
|
26
27
|
export declare const getViewObjectForSyncGroup: (id: string) => StoredView;
|
|
28
|
+
export declare const setSyncGroupViewFit: (groupId: string, fit: SyncGroupFit, projection?: string) => void;
|
|
@@ -23,7 +23,9 @@ export declare const storeReducerMap: {
|
|
|
23
23
|
};
|
|
24
24
|
export declare const storeMiddlewares: (ListenerMiddleware<import("./types").CoreAppStore, import("redux-thunk").ThunkDispatch<import("./types").CoreAppStore, unknown, import("redux").UnknownAction>, unknown> | ListenerMiddleware<import("./router/types").RouterModuleStore, import("redux-thunk").ThunkDispatch<import("./router/types").RouterModuleStore, unknown, import("redux").UnknownAction>, unknown>)[];
|
|
25
25
|
export declare const createMockStore: (mockState?: WebMapStateModuleState | SynchronizationGroupModuleState | LoadingIndicatorModuleState | UIModuleState | CommonModuleState | DrawtoolModuleStore) => Store;
|
|
26
|
-
export { getViewObjectForSyncGroup, getViewObjectForMapId, createViewObjectForNewMap, } from './mapStore/openlayers/syncGroupViewStore';
|
|
26
|
+
export { getViewObjectForSyncGroup, getViewObjectForMapId, createViewObjectForNewMap, setSyncGroupViewFit, } from './mapStore/openlayers/syncGroupViewStore';
|
|
27
|
+
export { calculateSyncGroupFit, getVisibleArea, } from './mapStore/openlayers/syncGroupFit';
|
|
28
|
+
export type { SyncGroupFitMember } from './mapStore/openlayers/syncGroupFit';
|
|
27
29
|
/**
|
|
28
30
|
* This creates an OpenGeoWeb redux store for redux connected components
|
|
29
31
|
*
|
|
@@ -8,11 +8,13 @@ type DockedLayerManagerDialogType = WithSuffix<DialogTypes.DockedLayerManager>;
|
|
|
8
8
|
type GetFeatureInfoDialogType = WithSuffix<DialogTypes.Getfeatureinfo>;
|
|
9
9
|
type KeywordFilterDialogType = WithSuffix<DialogTypes.KeywordFilter>;
|
|
10
10
|
type SearchDialogDialogType = WithSuffix<DialogTypes.Search>;
|
|
11
|
+
type TimeSeriesSettingsDialogType = WithSuffix<DialogTypes.TimeSeriesSettings>;
|
|
11
12
|
export declare enum DialogTypes {
|
|
12
13
|
LayerInfo = "layerInfo",
|
|
13
14
|
SyncGroups = "syncGroups",
|
|
14
15
|
TimeSeriesSelect = "timeSeriesSelect",
|
|
15
16
|
TimeSeriesManager = "timeSeriesManager",
|
|
17
|
+
TimeSeriesSettings = "timeSeriesSettings",
|
|
16
18
|
TimeSeriesInfo = "timeSeriesInfo",
|
|
17
19
|
TimeSeriesLocationInfo = "timeSeriesLocationInfo",
|
|
18
20
|
KeywordFilter = "keywordFilter",
|
|
@@ -36,10 +38,11 @@ export declare enum DialogTypes {
|
|
|
36
38
|
SoundingsLocations = "soundingsLocations",
|
|
37
39
|
SoundingsManager = "soundingsManager",
|
|
38
40
|
SoundingsProfileData = "soundingsProfileData",
|
|
41
|
+
CrossSectionManager = "crossSectionManager",
|
|
39
42
|
TimeseriesLocations = "timeseriesLocations",
|
|
40
43
|
Getfeatureinfo = "getfeatureinfo"
|
|
41
44
|
}
|
|
42
|
-
export type DialogType = DialogTypes | LegendDialogDialogType | LayerManagerDialogType | LayerSelectDialogType | DockedLayerManagerDialogType | GetFeatureInfoDialogType | KeywordFilterDialogType | SearchDialogDialogType | DrawingToolDialogType;
|
|
45
|
+
export type DialogType = DialogTypes | LegendDialogDialogType | LayerManagerDialogType | LayerSelectDialogType | DockedLayerManagerDialogType | GetFeatureInfoDialogType | KeywordFilterDialogType | SearchDialogDialogType | DrawingToolDialogType | TimeSeriesSettingsDialogType;
|
|
43
46
|
export type { Source };
|
|
44
47
|
export interface UIType {
|
|
45
48
|
type: DialogType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.3.0-nightly-20261127",
|
|
4
4
|
"description": "GeoWeb Store library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@opengeoweb/shared": "21.
|
|
23
|
+
"@opengeoweb/shared": "21.3.0-nightly-20261127",
|
|
24
24
|
"react-redux": "^9.2.0",
|
|
25
25
|
"@reduxjs/toolkit": "^2.6.1",
|
|
26
|
-
"@opengeoweb/webmap-react": "21.
|
|
27
|
-
"@opengeoweb/webmap": "21.
|
|
26
|
+
"@opengeoweb/webmap-react": "21.3.0-nightly-20261127",
|
|
27
|
+
"@opengeoweb/webmap": "21.3.0-nightly-20261127",
|
|
28
28
|
"immer": "^10.0.3",
|
|
29
29
|
"lodash": "^4.18.1",
|
|
30
|
-
"@opengeoweb/metronome": "21.
|
|
31
|
-
"@opengeoweb/time-slider": "21.
|
|
30
|
+
"@opengeoweb/metronome": "21.3.0-nightly-20261127",
|
|
31
|
+
"@opengeoweb/time-slider": "21.3.0-nightly-20261127",
|
|
32
32
|
"ol": "^10.4.0",
|
|
33
33
|
"@turf/turf": "^7.2.0",
|
|
34
34
|
"@types/geojson": "^7946.0.14",
|