@opengeoweb/store 14.5.1 → 15.0.0
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/index.esm.js
CHANGED
|
@@ -2722,14 +2722,23 @@ var slice$5 = createSlice({
|
|
|
2722
2722
|
return;
|
|
2723
2723
|
}
|
|
2724
2724
|
draft.byId[mapId].overLayers = [selectedOverlayer];
|
|
2725
|
+
},
|
|
2726
|
+
toggleClock: function toggleClock(draft, action) {
|
|
2727
|
+
var _action$payload26 = action.payload,
|
|
2728
|
+
mapId = _action$payload26.mapId,
|
|
2729
|
+
isClockVisible = _action$payload26.isClockVisible;
|
|
2730
|
+
if (!draft.byId[mapId]) {
|
|
2731
|
+
return;
|
|
2732
|
+
}
|
|
2733
|
+
draft.byId[mapId].isClockVisible = isClockVisible;
|
|
2725
2734
|
}
|
|
2726
2735
|
},
|
|
2727
2736
|
extraReducers: function extraReducers(builder) {
|
|
2728
2737
|
builder.addCase(layerActions.addLayer, function (draft, action) {
|
|
2729
|
-
var _action$
|
|
2730
|
-
layerId = _action$
|
|
2731
|
-
mapId = _action$
|
|
2732
|
-
layer = _action$
|
|
2738
|
+
var _action$payload27 = action.payload,
|
|
2739
|
+
layerId = _action$payload27.layerId,
|
|
2740
|
+
mapId = _action$payload27.mapId,
|
|
2741
|
+
layer = _action$payload27.layer;
|
|
2733
2742
|
if (!draft.byId[mapId]) {
|
|
2734
2743
|
return;
|
|
2735
2744
|
}
|
|
@@ -2748,10 +2757,10 @@ var slice$5 = createSlice({
|
|
|
2748
2757
|
draft.byId[mapId].mapLayers.unshift(layerId);
|
|
2749
2758
|
}
|
|
2750
2759
|
}).addCase(layerActions.duplicateMapLayer, function (draft, action) {
|
|
2751
|
-
var _action$
|
|
2752
|
-
newLayerId = _action$
|
|
2753
|
-
oldLayerId = _action$
|
|
2754
|
-
mapId = _action$
|
|
2760
|
+
var _action$payload28 = action.payload,
|
|
2761
|
+
newLayerId = _action$payload28.newLayerId,
|
|
2762
|
+
oldLayerId = _action$payload28.oldLayerId,
|
|
2763
|
+
mapId = _action$payload28.mapId;
|
|
2755
2764
|
if (!draft.byId[mapId]) {
|
|
2756
2765
|
return;
|
|
2757
2766
|
}
|
|
@@ -2768,10 +2777,10 @@ var slice$5 = createSlice({
|
|
|
2768
2777
|
draft.byId[mapId].featureLayers.unshift(newLayerId);
|
|
2769
2778
|
}
|
|
2770
2779
|
}).addCase(layerActions.addBaseLayer, function (draft, action) {
|
|
2771
|
-
var _action$
|
|
2772
|
-
layer = _action$
|
|
2773
|
-
layerId = _action$
|
|
2774
|
-
mapId = _action$
|
|
2780
|
+
var _action$payload29 = action.payload,
|
|
2781
|
+
layer = _action$payload29.layer,
|
|
2782
|
+
layerId = _action$payload29.layerId,
|
|
2783
|
+
mapId = _action$payload29.mapId;
|
|
2775
2784
|
if (!draft.byId[mapId]) {
|
|
2776
2785
|
return;
|
|
2777
2786
|
}
|
|
@@ -2801,9 +2810,9 @@ var slice$5 = createSlice({
|
|
|
2801
2810
|
draft.byId[mapId].autoTimeStepLayerId = activeLayerId;
|
|
2802
2811
|
}
|
|
2803
2812
|
}).addCase(layerActions.setBaseLayers, function (draft, action) {
|
|
2804
|
-
var _action$
|
|
2805
|
-
layers = _action$
|
|
2806
|
-
mapId = _action$
|
|
2813
|
+
var _action$payload30 = action.payload,
|
|
2814
|
+
layers = _action$payload30.layers,
|
|
2815
|
+
mapId = _action$payload30.mapId;
|
|
2807
2816
|
// Split into base and overlayers
|
|
2808
2817
|
var baseLayers = [];
|
|
2809
2818
|
var overLayers = [];
|
|
@@ -2833,9 +2842,9 @@ var slice$5 = createSlice({
|
|
|
2833
2842
|
}
|
|
2834
2843
|
}
|
|
2835
2844
|
}).addCase(layerActions.layerDelete, function (draft, action) {
|
|
2836
|
-
var _action$
|
|
2837
|
-
mapId = _action$
|
|
2838
|
-
layerId = _action$
|
|
2845
|
+
var _action$payload31 = action.payload,
|
|
2846
|
+
mapId = _action$payload31.mapId,
|
|
2847
|
+
layerId = _action$payload31.layerId;
|
|
2839
2848
|
var map = draft.byId[mapId];
|
|
2840
2849
|
if (!map) {
|
|
2841
2850
|
return;
|
|
@@ -2861,9 +2870,9 @@ var slice$5 = createSlice({
|
|
|
2861
2870
|
return id !== layerId;
|
|
2862
2871
|
});
|
|
2863
2872
|
}).addCase(layerActions.baseLayerDelete, function (draft, action) {
|
|
2864
|
-
var _action$
|
|
2865
|
-
mapId = _action$
|
|
2866
|
-
layerId = _action$
|
|
2873
|
+
var _action$payload32 = action.payload,
|
|
2874
|
+
mapId = _action$payload32.mapId,
|
|
2875
|
+
layerId = _action$payload32.layerId;
|
|
2867
2876
|
if (!draft.byId[mapId]) {
|
|
2868
2877
|
return;
|
|
2869
2878
|
}
|
|
@@ -2874,14 +2883,14 @@ var slice$5 = createSlice({
|
|
|
2874
2883
|
return id !== layerId;
|
|
2875
2884
|
});
|
|
2876
2885
|
}).addCase(layerActions.layerChangeDimension, function (draft, action) {
|
|
2877
|
-
var _action$
|
|
2878
|
-
layerId = _action$
|
|
2879
|
-
dimension = _action$
|
|
2886
|
+
var _action$payload33 = action.payload,
|
|
2887
|
+
layerId = _action$payload33.layerId,
|
|
2888
|
+
dimension = _action$payload33.dimension;
|
|
2880
2889
|
produceDraftStateSetMapDimensionFromLayerChangeDimension(draft, layerId, dimension);
|
|
2881
2890
|
}).addCase(setTimeSync, function (draft, action) {
|
|
2882
|
-
var _action$
|
|
2883
|
-
targetsFromAction = _action$
|
|
2884
|
-
source = _action$
|
|
2891
|
+
var _action$payload34 = action.payload,
|
|
2892
|
+
targetsFromAction = _action$payload34.targets,
|
|
2893
|
+
source = _action$payload34.source;
|
|
2885
2894
|
/* Because we want backwards compatibility with the previous code, we also need to listen to the original source action */
|
|
2886
2895
|
var targets = [];
|
|
2887
2896
|
if (source) {
|
|
@@ -2934,9 +2943,9 @@ var slice$5 = createSlice({
|
|
|
2934
2943
|
}
|
|
2935
2944
|
});
|
|
2936
2945
|
}).addCase(setBboxSync, function (draft, action) {
|
|
2937
|
-
var _action$
|
|
2938
|
-
targetsFromAction = _action$
|
|
2939
|
-
source = _action$
|
|
2946
|
+
var _action$payload35 = action.payload,
|
|
2947
|
+
targetsFromAction = _action$payload35.targets,
|
|
2948
|
+
source = _action$payload35.source;
|
|
2940
2949
|
/* Because we want backwards compatibility with the previous code, we also need to listen to the original source action */
|
|
2941
2950
|
var targets = [];
|
|
2942
2951
|
if (source) {
|
|
@@ -2968,9 +2977,9 @@ var slice$5 = createSlice({
|
|
|
2968
2977
|
* These targets can be used as payloads in new Layer actions.
|
|
2969
2978
|
* These actions are here handled via the layer reducer, as it is the same logic
|
|
2970
2979
|
*/
|
|
2971
|
-
var _action$
|
|
2972
|
-
targets = _action$
|
|
2973
|
-
source = _action$
|
|
2980
|
+
var _action$payload36 = action.payload,
|
|
2981
|
+
targets = _action$payload36.targets,
|
|
2982
|
+
source = _action$payload36.source;
|
|
2974
2983
|
return targets.reduce(function (prevState, target) {
|
|
2975
2984
|
var actionType = (source === null || source === void 0 ? void 0 : source.type) || 'GENERIC_SYNC_SETLAYERACTIONS';
|
|
2976
2985
|
var action = {
|
|
@@ -2992,9 +3001,9 @@ var slice$5 = createSlice({
|
|
|
2992
3001
|
});
|
|
2993
3002
|
return draft;
|
|
2994
3003
|
}).addCase(mapChangeDimension, function (draft, action) {
|
|
2995
|
-
var _action$
|
|
2996
|
-
mapId = _action$
|
|
2997
|
-
dimensionFromAction = _action$
|
|
3004
|
+
var _action$payload37 = action.payload,
|
|
3005
|
+
mapId = _action$payload37.mapId,
|
|
3006
|
+
dimensionFromAction = _action$payload37.dimension;
|
|
2998
3007
|
produceDraftStateSetWebMapDimension(draft, mapId, dimensionFromAction, true);
|
|
2999
3008
|
}).addCase(setMapPreset, function (draft, action) {
|
|
3000
3009
|
var mapId = action.payload.mapId;
|
|
@@ -3014,9 +3023,9 @@ var slice$5 = createSlice({
|
|
|
3014
3023
|
draft.byId[mapId].animationDelay = defaultAnimationDelayAtStart;
|
|
3015
3024
|
draft.byId[mapId].dockedLayerManagerSize = '';
|
|
3016
3025
|
}).addCase(uiActions.registerDialog, function (draft, action) {
|
|
3017
|
-
var _action$
|
|
3018
|
-
mapId = _action$
|
|
3019
|
-
type = _action$
|
|
3026
|
+
var _action$payload38 = action.payload,
|
|
3027
|
+
mapId = _action$payload38.mapId,
|
|
3028
|
+
type = _action$payload38.type;
|
|
3020
3029
|
if (!draft.byId[mapId]) {
|
|
3021
3030
|
return;
|
|
3022
3031
|
}
|
|
@@ -4850,7 +4859,7 @@ var getLayerIsInsideAcceptanceTime = createSelector(getAcceptanceTimeInMinutes,
|
|
|
4850
4859
|
if (mapTime === layerTime) {
|
|
4851
4860
|
return 'equal';
|
|
4852
4861
|
}
|
|
4853
|
-
if (acceptanceTimeInMinutes !== undefined) {
|
|
4862
|
+
if (acceptanceTimeInMinutes !== undefined && acceptanceTimeInMinutes !== null) {
|
|
4854
4863
|
var millisecondsBetween = mapTime - layerTime;
|
|
4855
4864
|
var acceptanceTimeInMilliseconds = acceptanceTimeInMinutes * 60000;
|
|
4856
4865
|
if (Math.abs(millisecondsBetween) > acceptanceTimeInMilliseconds) {
|
|
@@ -5707,6 +5716,15 @@ var getDisplayMapPin = createSelector(getMapById, function (store) {
|
|
|
5707
5716
|
var getLegendId = createSelector(getMapById, function (store) {
|
|
5708
5717
|
return store ? store.legendId : undefined;
|
|
5709
5718
|
}, selectorMemoizationOptions);
|
|
5719
|
+
/**
|
|
5720
|
+
* Returns if clock visible from webmap state
|
|
5721
|
+
*
|
|
5722
|
+
* @param {CoreAppStore} store - The Redux store from which the map state will be extracted.
|
|
5723
|
+
* @returns {boolean | undefined} returnType: boolean
|
|
5724
|
+
*/
|
|
5725
|
+
var getIsClockVisible = createSelector(getMapById, function (store) {
|
|
5726
|
+
return store === null || store === void 0 ? void 0 : store.isClockVisible;
|
|
5727
|
+
}, selectorMemoizationOptions);
|
|
5710
5728
|
/**
|
|
5711
5729
|
* Creates a MapPreset from mapId
|
|
5712
5730
|
*
|
|
@@ -5716,14 +5734,14 @@ var getLegendId = createSelector(getMapById, function (store) {
|
|
|
5716
5734
|
* @param {boolean} keepAllDims? keepAllDims: boolean - default false: whether or not to leave the time and reference_time dimentions
|
|
5717
5735
|
* @returns {MapPreset} returnType: MapPreset
|
|
5718
5736
|
*/
|
|
5719
|
-
var getMapPreset = createSelector(getMapLayers, getMapBaseLayers, getMapOverLayers, getBbox, getSrs, getActiveLayerId, getAutoTimeStepLayerId, getAutoUpdateLayerId, isAnimating, isAutoUpdating, isTimeSliderVisible, getDisplayMapPin, isZoomControlsVisible, getMapTimeStep, getMapAnimationDelay, getAnimationStartTime, getAnimationEndTime, getMapTimeSliderSpan, getMapDimensions, isTimestepAuto, isTimeSpanAuto, getLegendId, getUiStore, function (_store, mapId) {
|
|
5737
|
+
var getMapPreset = createSelector(getMapLayers, getMapBaseLayers, getMapOverLayers, getBbox, getSrs, getActiveLayerId, getAutoTimeStepLayerId, getAutoUpdateLayerId, isAnimating, isAutoUpdating, isTimeSliderVisible, getDisplayMapPin, isZoomControlsVisible, getMapTimeStep, getMapAnimationDelay, getAnimationStartTime, getAnimationEndTime, getMapTimeSliderSpan, getMapDimensions, isTimestepAuto, isTimeSpanAuto, getLegendId, getIsClockVisible, getUiStore, function (_store, mapId) {
|
|
5720
5738
|
return mapId;
|
|
5721
5739
|
}, function (_store, _mapId) {
|
|
5722
5740
|
var keepAllDims = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
5723
5741
|
return keepAllDims;
|
|
5724
|
-
}, function (mapLayers, baseLayers, overLayers, bbox, srs, activeLayerId, autoTimeStepLayerId, autoUpdateLayerId, isAnimating, isAutoUpdating, isTimeSliderVisible, displayMapPin, isZoomControlsVisible, mapTimeStep, mapAnimationDelay, animationStartTime, animationEndTime, timeSliderSpan, mapDimensions, isTimestepAuto, isTimeSpanAuto, legendId, uiStore, mapId, keepAllDims) {
|
|
5742
|
+
}, function (mapLayers, baseLayers, overLayers, bbox, srs, activeLayerId, autoTimeStepLayerId, autoUpdateLayerId, isAnimating, isAutoUpdating, isTimeSliderVisible, displayMapPin, isZoomControlsVisible, mapTimeStep, mapAnimationDelay, animationStartTime, animationEndTime, timeSliderSpan, mapDimensions, isTimestepAuto, isTimeSpanAuto, legendId, isClockVisible, uiStore, mapId, keepAllDims) {
|
|
5725
5743
|
var _overLayers$, _uiStore$dialogs$lege;
|
|
5726
|
-
var defaultOverlayer = arguments.length >
|
|
5744
|
+
var defaultOverlayer = arguments.length > 26 && arguments[26] !== undefined ? arguments[26] : ((_overLayers$ = overLayers[0]) === null || _overLayers$ === void 0 ? void 0 : _overLayers$.name) || 'none';
|
|
5727
5745
|
var allLayers = [].concat(_toConsumableArray(baseLayers), _toConsumableArray(overLayers), _toConsumableArray(mapLayers)).map(function (_ref3) {
|
|
5728
5746
|
_ref3.mapId;
|
|
5729
5747
|
var layer = _objectWithoutProperties(_ref3, _excluded$2);
|
|
@@ -5751,13 +5769,13 @@ var getMapPreset = createSelector(getMapLayers, getMapBaseLayers, getMapOverLaye
|
|
|
5751
5769
|
var shouldShowLegend = legendId ? uiStore === null || uiStore === void 0 || (_uiStore$dialogs$lege = uiStore.dialogs[legendId]) === null || _uiStore$dialogs$lege === void 0 ? void 0 : _uiStore$dialogs$lege.isOpen : false;
|
|
5752
5770
|
var dataExplorerDialog = uiStore === null || uiStore === void 0 ? void 0 : uiStore.dialogs[DialogTypes.DataExplorer];
|
|
5753
5771
|
var shouldShowDataExplorer = (dataExplorerDialog === null || dataExplorerDialog === void 0 ? void 0 : dataExplorerDialog.isOpen) && (dataExplorerDialog === null || dataExplorerDialog === void 0 ? void 0 : dataExplorerDialog.activeMapId) === mapId || false;
|
|
5754
|
-
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
5772
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
5755
5773
|
layers: allLayers
|
|
5756
|
-
}, activeLayerId
|
|
5774
|
+
}, activeLayerId && {
|
|
5757
5775
|
activeLayerId: activeLayerId
|
|
5758
|
-
}), autoTimeStepLayerId
|
|
5776
|
+
}), autoTimeStepLayerId && {
|
|
5759
5777
|
autoTimeStepLayerId: autoTimeStepLayerId
|
|
5760
|
-
}), autoUpdateLayerId
|
|
5778
|
+
}), autoUpdateLayerId && {
|
|
5761
5779
|
autoUpdateLayerId: autoUpdateLayerId
|
|
5762
5780
|
}), {}, {
|
|
5763
5781
|
proj: {
|
|
@@ -5776,7 +5794,9 @@ var getMapPreset = createSelector(getMapLayers, getMapBaseLayers, getMapOverLaye
|
|
|
5776
5794
|
timeSliderSpan: timeSliderSpan,
|
|
5777
5795
|
shouldShowDataExplorer: shouldShowDataExplorer,
|
|
5778
5796
|
defaultOverlayer: defaultOverlayer
|
|
5779
|
-
},
|
|
5797
|
+
}, isClockVisible !== undefined && {
|
|
5798
|
+
isClockVisible: isClockVisible
|
|
5799
|
+
}), keepAllDims && {
|
|
5780
5800
|
dimensions: mapDimensions
|
|
5781
5801
|
});
|
|
5782
5802
|
}, selectorMemoizationOptions);
|
|
@@ -5981,6 +6001,15 @@ var getdefaultMapSettingsLayers = createSelector(getdefaultMapSettings, function
|
|
|
5981
6001
|
var getSelectedOverlayerByMapId = createSelector(getMapById, function (store) {
|
|
5982
6002
|
return (store === null || store === void 0 ? void 0 : store.overLayers[0]) || null;
|
|
5983
6003
|
}, selectorMemoizationOptions);
|
|
6004
|
+
/**
|
|
6005
|
+
* Gets the RefTimeDimensionModes of intialViewMapPreset from webmap state
|
|
6006
|
+
*
|
|
6007
|
+
* @param {object} store store: object - Store object
|
|
6008
|
+
* @returns {RefTimeDimensionModes | undefined} returnType: RefTimeDimensionModes
|
|
6009
|
+
*/
|
|
6010
|
+
var getRefTimeDimensionModes = createSelector(getdefaultMapSettings, function (state) {
|
|
6011
|
+
return state === null || state === void 0 ? void 0 : state.refTimeDimensionModes;
|
|
6012
|
+
}, selectorMemoizationOptions);
|
|
5984
6013
|
|
|
5985
6014
|
var selectors$1 = /*#__PURE__*/Object.freeze({
|
|
5986
6015
|
__proto__: null,
|
|
@@ -6003,6 +6032,7 @@ var selectors$1 = /*#__PURE__*/Object.freeze({
|
|
|
6003
6032
|
getFirstMap: getFirstMap,
|
|
6004
6033
|
getFirstMapId: getFirstMapId,
|
|
6005
6034
|
getHarmonieInitialProps: getHarmonieInitialProps,
|
|
6035
|
+
getIsClockVisible: getIsClockVisible,
|
|
6006
6036
|
getIsEnabledLayersForMapDimension: getIsEnabledLayersForMapDimension,
|
|
6007
6037
|
getIsLayerActiveLayer: getIsLayerActiveLayer,
|
|
6008
6038
|
getIsMapPresent: getIsMapPresent,
|
|
@@ -6034,6 +6064,7 @@ var selectors$1 = /*#__PURE__*/Object.freeze({
|
|
|
6034
6064
|
getMapTimeStepWithoutDefault: getMapTimeStepWithoutDefault,
|
|
6035
6065
|
getMultiMapInitialProps: getMultiMapInitialProps,
|
|
6036
6066
|
getPinLocation: getPinLocation,
|
|
6067
|
+
getRefTimeDimensionModes: getRefTimeDimensionModes,
|
|
6037
6068
|
getSelectedOverlayerByMapId: getSelectedOverlayerByMapId,
|
|
6038
6069
|
getSelectedTime: getSelectedTime,
|
|
6039
6070
|
getSrs: getSrs,
|
|
@@ -7296,7 +7327,7 @@ mapListener.startListening({
|
|
|
7296
7327
|
actionCreator: mapActions.setMapPreset,
|
|
7297
7328
|
effect: function () {
|
|
7298
7329
|
var _effect2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref6, listenerApi) {
|
|
7299
|
-
var payload, mapId, initialProps, mapPreset, _mapPreset$dimensions, layers, activeLayerId, autoTimeStepLayerId, autoUpdateLayerId, proj, shouldAutoUpdate, shouldAnimate, animationPayload, toggleTimestepAuto, showTimeSlider, displayMapPin, shouldShowZoomControls, shouldShowLegend, shouldShowDataExplorer, dockedLayerManagerSize, timeSliderSpan, toggleTimeSpanAuto, defaultOverlayer, _filterLayers, mapLayers, baseLayers, overLayers, _newLayerIds$layers$f, _newLayerIds$layers$f2, autoTimeStepLayerIdNew, autoUpdateLayerIdNew, onlyActiveLayerIdIsSet, newLayerIds, newAutoTimeStepLayerId, newAutoUpdateLayerId, customLayers, customBaseLayer, customOverLayer, baseLayersWithDefaultLayer, overLayersWithDefaultLayer, allBaseLayers, _overlayersFromStore$, overlayersFromStore, foundOverlayerId, checkIsprojectionSupported, animationLength, animationEndTime, shouldEndtimeOverride, interval, timeAlreadySet, endTime, startTime, centerTimeInSeconds, animationEnd, _startTime, duration, _animationEnd, animationStart, shouldOpenLegend, legendId, fiveMinuteDelayForAnimation, _animationEnd2, _animationStart;
|
|
7330
|
+
var payload, mapId, initialProps, mapPreset, _mapPreset$dimensions, layers, activeLayerId, autoTimeStepLayerId, autoUpdateLayerId, proj, shouldAutoUpdate, shouldAnimate, animationPayload, toggleTimestepAuto, showTimeSlider, displayMapPin, shouldShowZoomControls, shouldShowLegend, shouldShowDataExplorer, dockedLayerManagerSize, timeSliderSpan, toggleTimeSpanAuto, defaultOverlayer, isClockVisible, _filterLayers, mapLayers, baseLayers, overLayers, _newLayerIds$layers$f, _newLayerIds$layers$f2, autoTimeStepLayerIdNew, autoUpdateLayerIdNew, onlyActiveLayerIdIsSet, newLayerIds, newAutoTimeStepLayerId, newAutoUpdateLayerId, customLayers, customBaseLayer, customOverLayer, baseLayersWithDefaultLayer, overLayersWithDefaultLayer, allBaseLayers, _overlayersFromStore$, overlayersFromStore, foundOverlayerId, checkIsprojectionSupported, animationLength, animationEndTime, shouldEndtimeOverride, interval, timeAlreadySet, endTime, startTime, centerTimeInSeconds, animationEnd, _startTime, duration, _animationEnd, animationStart, shouldOpenLegend, legendId, fiveMinuteDelayForAnimation, _animationEnd2, _animationStart;
|
|
7300
7331
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7301
7332
|
while (1) switch (_context2.prev = _context2.next) {
|
|
7302
7333
|
case 0:
|
|
@@ -7305,10 +7336,10 @@ mapListener.startListening({
|
|
|
7305
7336
|
mapId = payload.mapId, initialProps = payload.initialProps;
|
|
7306
7337
|
mapPreset = initialProps.mapPreset;
|
|
7307
7338
|
if (!mapPreset) {
|
|
7308
|
-
_context2.next =
|
|
7339
|
+
_context2.next = 54;
|
|
7309
7340
|
break;
|
|
7310
7341
|
}
|
|
7311
|
-
layers = mapPreset.layers, activeLayerId = mapPreset.activeLayerId, autoTimeStepLayerId = mapPreset.autoTimeStepLayerId, autoUpdateLayerId = mapPreset.autoUpdateLayerId, proj = mapPreset.proj, shouldAutoUpdate = mapPreset.shouldAutoUpdate, shouldAnimate = mapPreset.shouldAnimate, animationPayload = mapPreset.animationPayload, toggleTimestepAuto = mapPreset.toggleTimestepAuto, showTimeSlider = mapPreset.showTimeSlider, displayMapPin = mapPreset.displayMapPin, shouldShowZoomControls = mapPreset.shouldShowZoomControls, shouldShowLegend = mapPreset.shouldShowLegend, shouldShowDataExplorer = mapPreset.shouldShowDataExplorer, dockedLayerManagerSize = mapPreset.dockedLayerManagerSize, timeSliderSpan = mapPreset.timeSliderSpan, toggleTimeSpanAuto = mapPreset.toggleTimeSpanAuto, defaultOverlayer = mapPreset.defaultOverlayer;
|
|
7342
|
+
layers = mapPreset.layers, activeLayerId = mapPreset.activeLayerId, autoTimeStepLayerId = mapPreset.autoTimeStepLayerId, autoUpdateLayerId = mapPreset.autoUpdateLayerId, proj = mapPreset.proj, shouldAutoUpdate = mapPreset.shouldAutoUpdate, shouldAnimate = mapPreset.shouldAnimate, animationPayload = mapPreset.animationPayload, toggleTimestepAuto = mapPreset.toggleTimestepAuto, showTimeSlider = mapPreset.showTimeSlider, displayMapPin = mapPreset.displayMapPin, shouldShowZoomControls = mapPreset.shouldShowZoomControls, shouldShowLegend = mapPreset.shouldShowLegend, shouldShowDataExplorer = mapPreset.shouldShowDataExplorer, dockedLayerManagerSize = mapPreset.dockedLayerManagerSize, timeSliderSpan = mapPreset.timeSliderSpan, toggleTimeSpanAuto = mapPreset.toggleTimeSpanAuto, defaultOverlayer = mapPreset.defaultOverlayer, isClockVisible = mapPreset.isClockVisible;
|
|
7312
7343
|
_filterLayers = filterLayers(layers), mapLayers = _filterLayers.mapLayers, baseLayers = _filterLayers.baseLayers, overLayers = _filterLayers.overLayers;
|
|
7313
7344
|
if (layers) {
|
|
7314
7345
|
// make sure all layers have a unique id before going forward
|
|
@@ -7434,6 +7465,13 @@ mapListener.startListening({
|
|
|
7434
7465
|
displayMapPin: displayMapPin
|
|
7435
7466
|
}));
|
|
7436
7467
|
}
|
|
7468
|
+
if (isClockVisible !== undefined) {
|
|
7469
|
+
// toggle clock visibility
|
|
7470
|
+
listenerApi.dispatch(mapActions.toggleClock({
|
|
7471
|
+
mapId: mapId,
|
|
7472
|
+
isClockVisible: isClockVisible
|
|
7473
|
+
}));
|
|
7474
|
+
}
|
|
7437
7475
|
// sets timestep by interval of animationPayload
|
|
7438
7476
|
interval = animationPayload === null || animationPayload === void 0 ? void 0 : animationPayload.interval;
|
|
7439
7477
|
if (interval) {
|
|
@@ -7553,15 +7591,15 @@ mapListener.startListening({
|
|
|
7553
7591
|
dockedLayerManagerSize: dockedLayerManagerSize
|
|
7554
7592
|
}));
|
|
7555
7593
|
}
|
|
7556
|
-
case
|
|
7594
|
+
case 44:
|
|
7557
7595
|
if (!(animationEndTime && (shouldEndtimeOverride || !(shouldAutoUpdate || shouldAnimate)))) {
|
|
7558
|
-
_context2.next =
|
|
7596
|
+
_context2.next = 54;
|
|
7559
7597
|
break;
|
|
7560
7598
|
}
|
|
7561
7599
|
fiveMinuteDelayForAnimation = 1000 * 60 * 5; // eslint-disable-next-line no-await-in-loop
|
|
7562
|
-
_context2.next =
|
|
7600
|
+
_context2.next = 48;
|
|
7563
7601
|
return listenerApi.delay(fiveMinuteDelayForAnimation);
|
|
7564
|
-
case
|
|
7602
|
+
case 48:
|
|
7565
7603
|
_animationEnd2 = getAnimationEndTime(listenerApi.getState(), mapId);
|
|
7566
7604
|
listenerApi.dispatch(mapActions.setAnimationEndTime({
|
|
7567
7605
|
mapId: mapId,
|
|
@@ -7576,13 +7614,13 @@ mapListener.startListening({
|
|
|
7576
7614
|
minutes: 5
|
|
7577
7615
|
}).toISOString()
|
|
7578
7616
|
}));
|
|
7579
|
-
_context2.next =
|
|
7617
|
+
_context2.next = 44;
|
|
7580
7618
|
break;
|
|
7581
|
-
case
|
|
7582
|
-
_context2.next =
|
|
7619
|
+
case 54:
|
|
7620
|
+
_context2.next = 59;
|
|
7583
7621
|
break;
|
|
7584
|
-
case
|
|
7585
|
-
_context2.prev =
|
|
7622
|
+
case 56:
|
|
7623
|
+
_context2.prev = 56;
|
|
7586
7624
|
_context2.t0 = _context2["catch"](1);
|
|
7587
7625
|
if (_context2.t0 instanceof Error) {
|
|
7588
7626
|
listenerApi.dispatch(mapActions.setMapPresetError({
|
|
@@ -7590,11 +7628,11 @@ mapListener.startListening({
|
|
|
7590
7628
|
error: _context2.t0.message
|
|
7591
7629
|
}));
|
|
7592
7630
|
}
|
|
7593
|
-
case
|
|
7631
|
+
case 59:
|
|
7594
7632
|
case "end":
|
|
7595
7633
|
return _context2.stop();
|
|
7596
7634
|
}
|
|
7597
|
-
}, _callee2, null, [[1,
|
|
7635
|
+
}, _callee2, null, [[1, 56]]);
|
|
7598
7636
|
}));
|
|
7599
7637
|
function effect(_x3, _x4) {
|
|
7600
7638
|
return _effect2.apply(this, arguments);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "GeoWeb Store library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "
|
|
11
|
+
"@opengeoweb/shared": "15.0.0",
|
|
12
12
|
"react-redux": "^9.2.0",
|
|
13
13
|
"@reduxjs/toolkit": "^2.6.1",
|
|
14
|
-
"@opengeoweb/webmap-react": "
|
|
15
|
-
"@opengeoweb/webmap": "
|
|
14
|
+
"@opengeoweb/webmap-react": "15.0.0",
|
|
15
|
+
"@opengeoweb/webmap": "15.0.0",
|
|
16
16
|
"immer": "^10.0.3",
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
|
-
"@opengeoweb/metronome": "
|
|
19
|
-
"@opengeoweb/time-slider": "
|
|
18
|
+
"@opengeoweb/metronome": "15.0.0",
|
|
19
|
+
"@opengeoweb/time-slider": "15.0.0",
|
|
20
20
|
"react-router-dom": "^6.23.1",
|
|
21
21
|
"ol": "^10.4.0",
|
|
22
22
|
"@turf/turf": "^7.2.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import type { SetLayerDimensionsPayload, SetLayerStylePayload, UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
2
|
+
import type { SetLayerAcceptanceTimePayload, SetLayerDimensionsPayload, SetLayerStylePayload, UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
3
3
|
import type { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturePayload, UpdateFeaturePayload, ExitFeatureDrawModePayload, ToggleFeatureModePayload, UpdateFeaturePropertiesPayload, DuplicateMapLayerPayload, ShowLayerInfoPayload, SetLayerGeojsonFromLayerPayload, SetLayerOptionsPayload } from './types';
|
|
4
4
|
export declare const createLayer: ({ id, opacity, acceptanceTimeInMinutes, enabled, layerType, status, useLatestReferenceTime, ...props }: Layer) => Layer;
|
|
5
5
|
export declare const initialState: LayerState;
|
|
@@ -10,10 +10,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
|
|
|
10
10
|
layerChangeEnabled: (draft: Draft<LayerState>, action: PayloadAction<SetLayerEnabledPayload>) => void;
|
|
11
11
|
layerChangeOpacity: (draft: Draft<LayerState>, action: PayloadAction<SetLayerOpacityPayload>) => void;
|
|
12
12
|
layerChangeStyle: (draft: Draft<LayerState>, action: PayloadAction<SetLayerStylePayload>) => void;
|
|
13
|
-
layerChangeAcceptanceTime: (draft: Draft<LayerState>, action: PayloadAction<
|
|
14
|
-
layerId: string;
|
|
15
|
-
acceptanceTime: number | undefined;
|
|
16
|
-
}>) => void;
|
|
13
|
+
layerChangeAcceptanceTime: (draft: Draft<LayerState>, action: PayloadAction<SetLayerAcceptanceTimePayload>) => void;
|
|
17
14
|
layerChangeName: (draft: Draft<LayerState>, action: PayloadAction<SetLayerNamePayload>) => void;
|
|
18
15
|
layerChangeOptions: (draft: Draft<LayerState>, action: PayloadAction<SetLayerOptionsPayload>) => void;
|
|
19
16
|
layerChangeGeojson: (draft: Draft<LayerState>, action: PayloadAction<SetLayerGeojsonPayload>) => void;
|
|
@@ -54,10 +51,7 @@ export declare const layerReducer: import("redux").Reducer<LayerState>, layerAct
|
|
|
54
51
|
layerChangeEnabled: (draft: Draft<LayerState>, action: PayloadAction<SetLayerEnabledPayload>) => void;
|
|
55
52
|
layerChangeOpacity: (draft: Draft<LayerState>, action: PayloadAction<SetLayerOpacityPayload>) => void;
|
|
56
53
|
layerChangeStyle: (draft: Draft<LayerState>, action: PayloadAction<SetLayerStylePayload>) => void;
|
|
57
|
-
layerChangeAcceptanceTime: (draft: Draft<LayerState>, action: PayloadAction<
|
|
58
|
-
layerId: string;
|
|
59
|
-
acceptanceTime: number | undefined;
|
|
60
|
-
}>) => void;
|
|
54
|
+
layerChangeAcceptanceTime: (draft: Draft<LayerState>, action: PayloadAction<SetLayerAcceptanceTimePayload>) => void;
|
|
61
55
|
layerChangeName: (draft: Draft<LayerState>, action: PayloadAction<SetLayerNamePayload>) => void;
|
|
62
56
|
layerChangeOptions: (draft: Draft<LayerState>, action: PayloadAction<SetLayerOptionsPayload>) => void;
|
|
63
57
|
layerChangeGeojson: (draft: Draft<LayerState>, action: PayloadAction<SetLayerGeojsonPayload>) => void;
|
|
@@ -1782,18 +1782,18 @@ export declare const getDimensionLayerIds: ((state: CoreAppStore, dimensionName:
|
|
|
1782
1782
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
1783
1783
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
1784
1784
|
};
|
|
1785
|
-
export declare const getAcceptanceTimeInMinutes: ((state: any, layerId: any) => number | undefined) & {
|
|
1785
|
+
export declare const getAcceptanceTimeInMinutes: ((state: any, layerId: any) => number | null | undefined) & {
|
|
1786
1786
|
clearCache: () => void;
|
|
1787
1787
|
resultsCount: () => number;
|
|
1788
1788
|
resetResultsCount: () => void;
|
|
1789
1789
|
} & {
|
|
1790
|
-
resultFunc: (resultFuncArgs_0: ReduxLayer | undefined) => number | undefined;
|
|
1791
|
-
memoizedResultFunc: ((resultFuncArgs_0: ReduxLayer | undefined) => number | undefined) & {
|
|
1790
|
+
resultFunc: (resultFuncArgs_0: ReduxLayer | undefined) => number | null | undefined;
|
|
1791
|
+
memoizedResultFunc: ((resultFuncArgs_0: ReduxLayer | undefined) => number | null | undefined) & {
|
|
1792
1792
|
clearCache: () => void;
|
|
1793
1793
|
resultsCount: () => number;
|
|
1794
1794
|
resetResultsCount: () => void;
|
|
1795
1795
|
};
|
|
1796
|
-
lastResult: () => number | undefined;
|
|
1796
|
+
lastResult: () => number | null | undefined;
|
|
1797
1797
|
dependencies: [((state: any, layerId: any) => ReduxLayer | undefined) & {
|
|
1798
1798
|
clearCache: () => void;
|
|
1799
1799
|
resultsCount: () => number;
|
|
@@ -1828,25 +1828,25 @@ export declare const getLayerIsInsideAcceptanceTime: ((state: any, _layerId: any
|
|
|
1828
1828
|
resultsCount: () => number;
|
|
1829
1829
|
resetResultsCount: () => void;
|
|
1830
1830
|
} & {
|
|
1831
|
-
resultFunc: (resultFuncArgs_0: number | undefined, resultFuncArgs_1: string | undefined, resultFuncArgs_2: string | undefined) => "equal" | "outside" | "inside";
|
|
1832
|
-
memoizedResultFunc: ((resultFuncArgs_0: number | undefined, resultFuncArgs_1: string | undefined, resultFuncArgs_2: string | undefined) => "equal" | "outside" | "inside") & {
|
|
1831
|
+
resultFunc: (resultFuncArgs_0: number | null | undefined, resultFuncArgs_1: string | undefined, resultFuncArgs_2: string | undefined) => "equal" | "outside" | "inside";
|
|
1832
|
+
memoizedResultFunc: ((resultFuncArgs_0: number | null | undefined, resultFuncArgs_1: string | undefined, resultFuncArgs_2: string | undefined) => "equal" | "outside" | "inside") & {
|
|
1833
1833
|
clearCache: () => void;
|
|
1834
1834
|
resultsCount: () => number;
|
|
1835
1835
|
resetResultsCount: () => void;
|
|
1836
1836
|
};
|
|
1837
1837
|
lastResult: () => "equal" | "outside" | "inside";
|
|
1838
|
-
dependencies: [((state: any, layerId: any) => number | undefined) & {
|
|
1838
|
+
dependencies: [((state: any, layerId: any) => number | null | undefined) & {
|
|
1839
1839
|
clearCache: () => void;
|
|
1840
1840
|
resultsCount: () => number;
|
|
1841
1841
|
resetResultsCount: () => void;
|
|
1842
1842
|
} & {
|
|
1843
|
-
resultFunc: (resultFuncArgs_0: ReduxLayer | undefined) => number | undefined;
|
|
1844
|
-
memoizedResultFunc: ((resultFuncArgs_0: ReduxLayer | undefined) => number | undefined) & {
|
|
1843
|
+
resultFunc: (resultFuncArgs_0: ReduxLayer | undefined) => number | null | undefined;
|
|
1844
|
+
memoizedResultFunc: ((resultFuncArgs_0: ReduxLayer | undefined) => number | null | undefined) & {
|
|
1845
1845
|
clearCache: () => void;
|
|
1846
1846
|
resultsCount: () => number;
|
|
1847
1847
|
resetResultsCount: () => void;
|
|
1848
1848
|
};
|
|
1849
|
-
lastResult: () => number | undefined;
|
|
1849
|
+
lastResult: () => number | null | undefined;
|
|
1850
1850
|
dependencies: [((state: any, layerId: any) => ReduxLayer | undefined) & {
|
|
1851
1851
|
clearCache: () => void;
|
|
1852
1852
|
resultsCount: () => number;
|
|
@@ -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, ToggleAnimationLengthAutoPayload, SetDefaultMapSettingsPayload } from './types';
|
|
3
|
+
import type { WebMapState, SetAutoLayerIdPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderSpanPayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderWidthPayload, SetTimeSliderCenterTimePayload, SetEndTimeOverriding, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSpanAutoPayload, ToggleTimeSliderHoverPayload, DisableMapPinPayload, ToggleTimeSliderIsVisiblePayload, SetDockedLayerManagerSize, ToggleAnimationLengthAutoPayload, SetDefaultMapSettingsPayload, ToggleClockPayload } from './types';
|
|
4
4
|
import type { ToggleMapPinIsVisiblePayload, ToggleZoomControlsPayload } from '../types';
|
|
5
5
|
import type { MapActionOrigin } from './enums';
|
|
6
6
|
/**
|
|
@@ -64,6 +64,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
|
64
64
|
selectedOverlayer: string;
|
|
65
65
|
origin: string;
|
|
66
66
|
}>) => void;
|
|
67
|
+
toggleClock: (draft: Draft<WebMapState>, action: PayloadAction<ToggleClockPayload>) => void;
|
|
67
68
|
}, "mapReducer", "mapReducer", import("@reduxjs/toolkit").SliceSelectors<WebMapState>>;
|
|
68
69
|
export declare const mapActions: {
|
|
69
70
|
setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetMapPresetPayload, string>;
|
|
@@ -120,5 +121,6 @@ export declare const mapActions: {
|
|
|
120
121
|
selectedOverlayer: string;
|
|
121
122
|
origin: string;
|
|
122
123
|
}, "mapReducer/changeOverlayer">;
|
|
124
|
+
toggleClock: import("@reduxjs/toolkit").ActionCreatorWithPayload<ToggleClockPayload, "mapReducer/toggleClock">;
|
|
123
125
|
};
|
|
124
126
|
export declare const mapReducer: import("redux").Reducer<WebMapState>;
|
|
@@ -2067,6 +2067,33 @@ export declare const getLegendId: ((state: CoreAppStore, mapId: string) => strin
|
|
|
2067
2067
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
2068
2068
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2069
2069
|
};
|
|
2070
|
+
/**
|
|
2071
|
+
* Returns if clock visible from webmap state
|
|
2072
|
+
*
|
|
2073
|
+
* @param {CoreAppStore} store - The Redux store from which the map state will be extracted.
|
|
2074
|
+
* @returns {boolean | undefined} returnType: boolean
|
|
2075
|
+
*/
|
|
2076
|
+
export declare const getIsClockVisible: ((state: CoreAppStore, mapId: string) => boolean | undefined) & {
|
|
2077
|
+
clearCache: () => void;
|
|
2078
|
+
resultsCount: () => number;
|
|
2079
|
+
resetResultsCount: () => void;
|
|
2080
|
+
} & {
|
|
2081
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => boolean | undefined;
|
|
2082
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => boolean | undefined) & {
|
|
2083
|
+
clearCache: () => void;
|
|
2084
|
+
resultsCount: () => number;
|
|
2085
|
+
resetResultsCount: () => void;
|
|
2086
|
+
};
|
|
2087
|
+
lastResult: () => boolean | undefined;
|
|
2088
|
+
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
2089
|
+
recomputations: () => number;
|
|
2090
|
+
resetRecomputations: () => void;
|
|
2091
|
+
dependencyRecomputations: () => number;
|
|
2092
|
+
resetDependencyRecomputations: () => void;
|
|
2093
|
+
} & {
|
|
2094
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2095
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2096
|
+
};
|
|
2070
2097
|
/**
|
|
2071
2098
|
* Creates a MapPreset from mapId
|
|
2072
2099
|
*
|
|
@@ -2081,8 +2108,8 @@ export declare const getMapPreset: ((state: CoreAppStore & uiTypes.UIModuleState
|
|
|
2081
2108
|
resultsCount: () => number;
|
|
2082
2109
|
resetResultsCount: () => void;
|
|
2083
2110
|
} & {
|
|
2084
|
-
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 | undefined, 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: string | undefined, resultFuncArgs_22: uiTypes.UIStoreType,
|
|
2085
|
-
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 | undefined, 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: string | undefined, resultFuncArgs_22: uiTypes.UIStoreType,
|
|
2111
|
+
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 | undefined, 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: string | undefined, resultFuncArgs_22: boolean | undefined, resultFuncArgs_23: uiTypes.UIStoreType, resultFuncArgs_24: string, resultFuncArgs_25: string) => MapPreset;
|
|
2112
|
+
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 | undefined, 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: string | undefined, resultFuncArgs_22: boolean | undefined, resultFuncArgs_23: uiTypes.UIStoreType, resultFuncArgs_24: string, resultFuncArgs_25: string) => MapPreset) & {
|
|
2086
2113
|
clearCache: () => void;
|
|
2087
2114
|
resultsCount: () => number;
|
|
2088
2115
|
resetResultsCount: () => void;
|
|
@@ -2628,6 +2655,26 @@ export declare const getMapPreset: ((state: CoreAppStore & uiTypes.UIModuleState
|
|
|
2628
2655
|
} & {
|
|
2629
2656
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
2630
2657
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2658
|
+
}, ((state: CoreAppStore, mapId: string) => boolean | undefined) & {
|
|
2659
|
+
clearCache: () => void;
|
|
2660
|
+
resultsCount: () => number;
|
|
2661
|
+
resetResultsCount: () => void;
|
|
2662
|
+
} & {
|
|
2663
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => boolean | undefined;
|
|
2664
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => boolean | undefined) & {
|
|
2665
|
+
clearCache: () => void;
|
|
2666
|
+
resultsCount: () => number;
|
|
2667
|
+
resetResultsCount: () => void;
|
|
2668
|
+
};
|
|
2669
|
+
lastResult: () => boolean | undefined;
|
|
2670
|
+
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
2671
|
+
recomputations: () => number;
|
|
2672
|
+
resetRecomputations: () => void;
|
|
2673
|
+
dependencyRecomputations: () => number;
|
|
2674
|
+
resetDependencyRecomputations: () => void;
|
|
2675
|
+
} & {
|
|
2676
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2677
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2631
2678
|
}, (store: uiTypes.UIModuleState) => uiTypes.UIStoreType, (_store: CoreAppStore, mapId: string) => string, (_store: CoreAppStore, _mapId: string, keepAllDims?: any) => string];
|
|
2632
2679
|
recomputations: () => number;
|
|
2633
2680
|
resetRecomputations: () => void;
|
|
@@ -3295,3 +3342,50 @@ export declare const getSelectedOverlayerByMapId: ((state: CoreAppStore, mapId:
|
|
|
3295
3342
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
3296
3343
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3297
3344
|
};
|
|
3345
|
+
/**
|
|
3346
|
+
* Gets the RefTimeDimensionModes of intialViewMapPreset from webmap state
|
|
3347
|
+
*
|
|
3348
|
+
* @param {object} store store: object - Store object
|
|
3349
|
+
* @returns {RefTimeDimensionModes | undefined} returnType: RefTimeDimensionModes
|
|
3350
|
+
*/
|
|
3351
|
+
export declare const getRefTimeDimensionModes: ((state: CoreAppStore) => import("@opengeoweb/webmap").RefTimeDimensionModes | undefined) & {
|
|
3352
|
+
clearCache: () => void;
|
|
3353
|
+
resultsCount: () => number;
|
|
3354
|
+
resetResultsCount: () => void;
|
|
3355
|
+
} & {
|
|
3356
|
+
resultFunc: (resultFuncArgs_0: MapPreset | undefined) => import("@opengeoweb/webmap").RefTimeDimensionModes | undefined;
|
|
3357
|
+
memoizedResultFunc: ((resultFuncArgs_0: MapPreset | undefined) => import("@opengeoweb/webmap").RefTimeDimensionModes | undefined) & {
|
|
3358
|
+
clearCache: () => void;
|
|
3359
|
+
resultsCount: () => number;
|
|
3360
|
+
resetResultsCount: () => void;
|
|
3361
|
+
};
|
|
3362
|
+
lastResult: () => import("@opengeoweb/webmap").RefTimeDimensionModes | undefined;
|
|
3363
|
+
dependencies: [((state: CoreAppStore) => MapPreset | undefined) & {
|
|
3364
|
+
clearCache: () => void;
|
|
3365
|
+
resultsCount: () => number;
|
|
3366
|
+
resetResultsCount: () => void;
|
|
3367
|
+
} & {
|
|
3368
|
+
resultFunc: (resultFuncArgs_0: WebMapState | undefined) => MapPreset | undefined;
|
|
3369
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMapState | undefined) => MapPreset | undefined) & {
|
|
3370
|
+
clearCache: () => void;
|
|
3371
|
+
resultsCount: () => number;
|
|
3372
|
+
resetResultsCount: () => void;
|
|
3373
|
+
};
|
|
3374
|
+
lastResult: () => MapPreset | undefined;
|
|
3375
|
+
dependencies: [(store: CoreAppStore) => WebMapState | undefined];
|
|
3376
|
+
recomputations: () => number;
|
|
3377
|
+
resetRecomputations: () => void;
|
|
3378
|
+
dependencyRecomputations: () => number;
|
|
3379
|
+
resetDependencyRecomputations: () => void;
|
|
3380
|
+
} & {
|
|
3381
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
3382
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3383
|
+
}];
|
|
3384
|
+
recomputations: () => number;
|
|
3385
|
+
resetRecomputations: () => void;
|
|
3386
|
+
dependencyRecomputations: () => number;
|
|
3387
|
+
resetDependencyRecomputations: () => void;
|
|
3388
|
+
} & {
|
|
3389
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
3390
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3391
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SpeedFactorType } from '@opengeoweb/time-slider';
|
|
2
|
-
import type { TimeInterval } from '@opengeoweb/webmap';
|
|
2
|
+
import type { RefTimeDimensionModes, TimeInterval } from '@opengeoweb/webmap';
|
|
3
3
|
import type { MapLocation } from '@opengeoweb/webmap-react';
|
|
4
4
|
import type { Layer, LayerActionOrigin } from '../types';
|
|
5
5
|
import type { MapActionOrigin } from './enums';
|
|
@@ -54,6 +54,7 @@ export interface WebMap {
|
|
|
54
54
|
dockedLayerManagerSize?: DockedLayerManagerSize;
|
|
55
55
|
isTimeScrollingEnabled?: boolean;
|
|
56
56
|
selectedMapIds?: string[];
|
|
57
|
+
isClockVisible?: boolean;
|
|
57
58
|
}
|
|
58
59
|
export type DockedLayerManagerSize = 'sizeSmall' | 'sizeMedium' | 'sizeLarge' | '';
|
|
59
60
|
export interface WebMapState {
|
|
@@ -110,6 +111,8 @@ export interface MapPreset {
|
|
|
110
111
|
toggleTimeSpanAuto?: boolean;
|
|
111
112
|
shouldShowDataExplorer?: boolean;
|
|
112
113
|
defaultOverlayer?: string;
|
|
114
|
+
refTimeDimensionModes?: RefTimeDimensionModes;
|
|
115
|
+
isClockVisible?: boolean;
|
|
113
116
|
}
|
|
114
117
|
export interface MapPresetInitialProps {
|
|
115
118
|
mapPreset: MapPreset;
|
|
@@ -274,3 +277,8 @@ export interface InitialTimeSliderProps {
|
|
|
274
277
|
};
|
|
275
278
|
syncGroupsIds: string[];
|
|
276
279
|
}
|
|
280
|
+
export interface ToggleClockPayload {
|
|
281
|
+
mapId: string;
|
|
282
|
+
isClockVisible: boolean;
|
|
283
|
+
origin?: MapActionOrigin;
|
|
284
|
+
}
|