@opengeoweb/store 14.2.2 → 14.4.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
@@ -5744,23 +5744,32 @@ var getLegendId = createSelector(getMapById, function (store) {
5744
5744
  * Example getMapPreset(store, mapId);
5745
5745
  * @param {object} store store: object - store object
5746
5746
  * @param {string} mapId mapId: string - Id of the map
5747
+ * @param {boolean} keepAllDims? keepAllDims: boolean - default false: whether or not to leave the time and reference_time dimentions
5747
5748
  * @returns {MapPreset} returnType: MapPreset
5748
5749
  */
5749
- var getMapPreset = createSelector(getMapLayers, getMapBaseLayers, getMapOverLayers, getBbox, getSrs, getActiveLayerId, getAutoTimeStepLayerId, getAutoUpdateLayerId, isAnimating, isAutoUpdating, isTimeSliderVisible, getDisplayMapPin, isZoomControlsVisible, getMapTimeStep, getMapAnimationDelay, getAnimationStartTime, getAnimationEndTime, getMapTimeSliderSpan, isTimestepAuto, isTimeSpanAuto, getLegendId, getUiStore, function (_store, mapId) {
5750
+ 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) {
5750
5751
  return mapId;
5751
- }, function (mapLayers, baseLayers, overLayers, bbox, srs, activeLayerId, autoTimeStepLayerId, autoUpdateLayerId, isAnimating, isAutoUpdating, isTimeSliderVisible, displayMapPin, isZoomControlsVisible, mapTimeStep, mapAnimationDelay, animationStartTime, animationEndTime, timeSliderSpan, isTimestepAuto, isTimeSpanAuto, legendId, uiStore, mapId) {
5752
+ }, function (_store, _mapId) {
5753
+ var keepAllDims = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
5754
+ return keepAllDims;
5755
+ }, 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) {
5752
5756
  var _overLayers$, _uiStore$dialogs$lege;
5753
- var defaultOverlayer = arguments.length > 23 && arguments[23] !== undefined ? arguments[23] : ((_overLayers$ = overLayers[0]) === null || _overLayers$ === void 0 ? void 0 : _overLayers$.name) || 'none';
5757
+ var defaultOverlayer = arguments.length > 25 && arguments[25] !== undefined ? arguments[25] : ((_overLayers$ = overLayers[0]) === null || _overLayers$ === void 0 ? void 0 : _overLayers$.name) || 'none';
5754
5758
  var allLayers = [].concat(_toConsumableArray(baseLayers), _toConsumableArray(overLayers), _toConsumableArray(mapLayers)).map(function (_ref3) {
5755
5759
  _ref3.mapId;
5756
5760
  var layer = _objectWithoutProperties(_ref3, _excluded$2);
5757
5761
  if (layer.dimensions !== undefined) {
5758
- // Filter out time dimension as this should not be part of the preset for now
5759
- var dimensions = layer.dimensions.filter(function (dimension) {
5760
- return dimension.name !== 'time';
5761
- });
5762
+ if (!keepAllDims) {
5763
+ // Filter out time dimension as this should not be part of the preset for now
5764
+ var dimensions = layer.dimensions.filter(function (dimension) {
5765
+ return dimension.name !== 'time';
5766
+ });
5767
+ return _objectSpread2(_objectSpread2({}, layer), {}, {
5768
+ dimensions: dimensions
5769
+ });
5770
+ }
5762
5771
  return _objectSpread2(_objectSpread2({}, layer), {}, {
5763
- dimensions: dimensions
5772
+ dimensions: layer.dimensions
5764
5773
  });
5765
5774
  }
5766
5775
  return layer;
@@ -5798,8 +5807,76 @@ var getMapPreset = createSelector(getMapLayers, getMapBaseLayers, getMapOverLaye
5798
5807
  timeSliderSpan: timeSliderSpan,
5799
5808
  shouldShowDataExplorer: shouldShowDataExplorer,
5800
5809
  defaultOverlayer: defaultOverlayer
5810
+ }, keepAllDims && {
5811
+ dimensions: mapDimensions
5801
5812
  });
5802
5813
  }, selectorMemoizationOptions);
5814
+ var getMultiMapInitialProps = function getMultiMapInitialProps(store, panelId) {
5815
+ var _syncGroupsSelectors$;
5816
+ var allIds = getAllMapIds(store);
5817
+ var prefix = "".concat(panelId, "_");
5818
+ var childMapIds = allIds.filter(function (id) {
5819
+ return id.startsWith(prefix);
5820
+ }).sort(function (first, last) {
5821
+ var ai = Number(first.split('_').pop());
5822
+ var bi = Number(last.split('_').pop());
5823
+ return ai - bi;
5824
+ });
5825
+ var childPresets = childMapIds.map(function (id) {
5826
+ return getMapPreset(store, id);
5827
+ });
5828
+ var shouldShowZoomControls = childMapIds.length > 0 ? isZoomControlsVisible(store, childMapIds[0]) : undefined;
5829
+ var syncGroupsIds = (_syncGroupsSelectors$ = getAllTargetGroupsForSource(store, panelId)) !== null && _syncGroupsSelectors$ !== void 0 ? _syncGroupsSelectors$ : [];
5830
+ return {
5831
+ mapPreset: childPresets,
5832
+ syncGroupsIds: syncGroupsIds,
5833
+ shouldShowZoomControls: shouldShowZoomControls
5834
+ };
5835
+ };
5836
+ var getHarmonieInitialProps = function getHarmonieInitialProps(store, panelId, viewInitialProps) {
5837
+ var _mapPreset$layers, _contentLayers$;
5838
+ var relatedSyncGroupIds = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
5839
+ var fromView = viewInitialProps === null || viewInitialProps === void 0 ? void 0 : viewInitialProps.layers;
5840
+ if (fromView !== null && fromView !== void 0 && fromView.topRow && fromView !== null && fromView !== void 0 && fromView.bottomRow) {
5841
+ var _fromView$topRowSyncG, _fromView$bottomRowSy;
5842
+ return {
5843
+ layers: _objectSpread2(_objectSpread2({}, fromView), {}, {
5844
+ topRowSyncGroups: (_fromView$topRowSyncG = fromView.topRowSyncGroups) !== null && _fromView$topRowSyncG !== void 0 ? _fromView$topRowSyncG : relatedSyncGroupIds,
5845
+ bottomRowSyncGroups: (_fromView$bottomRowSy = fromView.bottomRowSyncGroups) !== null && _fromView$bottomRowSy !== void 0 ? _fromView$bottomRowSy : relatedSyncGroupIds
5846
+ })
5847
+ };
5848
+ }
5849
+ var mapPreset = getMapPreset(store, panelId);
5850
+ var layers = (_mapPreset$layers = mapPreset === null || mapPreset === void 0 ? void 0 : mapPreset.layers) !== null && _mapPreset$layers !== void 0 ? _mapPreset$layers : [];
5851
+ var contentLayers = layers.filter(function (la) {
5852
+ return !!la && la.name;
5853
+ });
5854
+ var topRow = contentLayers[0];
5855
+ var bottomRow = (_contentLayers$ = contentLayers[1]) !== null && _contentLayers$ !== void 0 ? _contentLayers$ : contentLayers[0];
5856
+ if (!topRow) {
5857
+ return {};
5858
+ }
5859
+ return {
5860
+ layers: {
5861
+ topRow: topRow,
5862
+ bottomRow: bottomRow,
5863
+ topRowSyncGroups: relatedSyncGroupIds,
5864
+ bottomRowSyncGroups: relatedSyncGroupIds
5865
+ }
5866
+ };
5867
+ };
5868
+ var getTimeSliderInitialProps = function getTimeSliderInitialProps(store, panelId, viewInitialProps) {
5869
+ var _viewInitialProps$sli, _syncGroupsSelectors$2;
5870
+ var fromView = viewInitialProps === null || viewInitialProps === void 0 || (_viewInitialProps$sli = viewInitialProps.sliderPreset) === null || _viewInitialProps$sli === void 0 ? void 0 : _viewInitialProps$sli.mapId;
5871
+ var mapId = fromView !== null && fromView !== void 0 ? fromView : panelId;
5872
+ var syncGroupsIds = (_syncGroupsSelectors$2 = getAllTargetGroupsForSource(store, panelId)) !== null && _syncGroupsSelectors$2 !== void 0 ? _syncGroupsSelectors$2 : [];
5873
+ return {
5874
+ sliderPreset: {
5875
+ mapId: mapId
5876
+ },
5877
+ syncGroupsIds: syncGroupsIds
5878
+ };
5879
+ };
5803
5880
  /**
5804
5881
  * Gets all enabled layerIds for map
5805
5882
  *
@@ -5955,6 +6032,7 @@ var selectors$1 = /*#__PURE__*/Object.freeze({
5955
6032
  getDockedLayerManagerSize: getDockedLayerManagerSize,
5956
6033
  getFirstMap: getFirstMap,
5957
6034
  getFirstMapId: getFirstMapId,
6035
+ getHarmonieInitialProps: getHarmonieInitialProps,
5958
6036
  getIsEnabledLayersForMapDimension: getIsEnabledLayersForMapDimension,
5959
6037
  getIsLayerActiveLayer: getIsLayerActiveLayer,
5960
6038
  getIsMapPresent: getIsMapPresent,
@@ -5984,10 +6062,12 @@ var selectors$1 = /*#__PURE__*/Object.freeze({
5984
6062
  getMapTimeSliderWidth: getMapTimeSliderWidth,
5985
6063
  getMapTimeStep: getMapTimeStep,
5986
6064
  getMapTimeStepWithoutDefault: getMapTimeStepWithoutDefault,
6065
+ getMultiMapInitialProps: getMultiMapInitialProps,
5987
6066
  getPinLocation: getPinLocation,
5988
6067
  getSelectedOverlayerByMapId: getSelectedOverlayerByMapId,
5989
6068
  getSelectedTime: getSelectedTime,
5990
6069
  getSrs: getSrs,
6070
+ getTimeSliderInitialProps: getTimeSliderInitialProps,
5991
6071
  getdefaultMapSettings: getdefaultMapSettings,
5992
6072
  getdefaultMapSettingsLayers: getdefaultMapSettingsLayers,
5993
6073
  isAnimating: isAnimating,
@@ -7246,7 +7326,7 @@ mapListener.startListening({
7246
7326
  actionCreator: mapActions.setMapPreset,
7247
7327
  effect: function () {
7248
7328
  var _effect2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref6, listenerApi) {
7249
- var payload, mapId, initialProps, mapPreset, 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, endTime, startTime, centerTimeInSeconds, animationEnd, _startTime, duration, _animationEnd, animationStart, shouldOpenLegend, legendId, fiveMinuteDelayForAnimation, _animationEnd2, _animationStart;
7329
+ 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;
7250
7330
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7251
7331
  while (1) switch (_context2.prev = _context2.next) {
7252
7332
  case 0:
@@ -7255,7 +7335,7 @@ mapListener.startListening({
7255
7335
  mapId = payload.mapId, initialProps = payload.initialProps;
7256
7336
  mapPreset = initialProps.mapPreset;
7257
7337
  if (!mapPreset) {
7258
- _context2.next = 52;
7338
+ _context2.next = 53;
7259
7339
  break;
7260
7340
  }
7261
7341
  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;
@@ -7392,7 +7472,11 @@ mapListener.startListening({
7392
7472
  timeStep: interval
7393
7473
  }));
7394
7474
  }
7395
- // sets animationEndTime by endTime of animationPayload
7475
+ // Check if time dim already set (this is the case when duplicating view via Shift + split window)
7476
+ // If set, don't dispatch setTime action
7477
+ timeAlreadySet = (_mapPreset$dimensions = mapPreset.dimensions) === null || _mapPreset$dimensions === void 0 ? void 0 : _mapPreset$dimensions.find(function (dimension) {
7478
+ return dimension.name === 'time';
7479
+ }); // sets animationEndTime by endTime of animationPayload
7396
7480
  if (animationEndTime) {
7397
7481
  endTime = animationEndTime.includes('NOW') || animationEndTime.includes('TODAY') ? dateUtils.convertNOWandTODAYFormatsToUTC(animationEndTime) : animationEndTime;
7398
7482
  listenerApi.dispatch(mapActions.setAnimationEndTime({
@@ -7406,13 +7490,15 @@ mapListener.startListening({
7406
7490
  mapId: mapId,
7407
7491
  animationStartTime: startTime
7408
7492
  }));
7409
- listenerApi.dispatch(genericActions.setTime({
7410
- origin: 'map/listener.ts, setMapPreset',
7411
- sourceId: mapId,
7412
- value: {
7413
- currentTime: startTime
7414
- }
7415
- }));
7493
+ if (timeAlreadySet === undefined) {
7494
+ listenerApi.dispatch(genericActions.setTime({
7495
+ origin: 'map/listener.ts, setMapPreset',
7496
+ sourceId: mapId,
7497
+ value: {
7498
+ currentTime: startTime
7499
+ }
7500
+ }));
7501
+ }
7416
7502
  centerTimeInSeconds = new Date(handleDateUtilsISOString(endTime)).getTime();
7417
7503
  listenerApi.dispatch(mapActions.setTimeSliderCenterTime({
7418
7504
  mapId: mapId,
@@ -7429,13 +7515,15 @@ mapListener.startListening({
7429
7515
  mapId: mapId,
7430
7516
  animationStartTime: _startTime
7431
7517
  }));
7432
- listenerApi.dispatch(genericActions.setTime({
7433
- origin: 'map/listener.ts, setAnimationStartTime',
7434
- sourceId: mapId,
7435
- value: {
7436
- currentTime: _startTime
7437
- }
7438
- }));
7518
+ if (timeAlreadySet === undefined) {
7519
+ listenerApi.dispatch(genericActions.setTime({
7520
+ origin: 'map/listener.ts, setAnimationStartTime',
7521
+ sourceId: mapId,
7522
+ value: {
7523
+ currentTime: _startTime
7524
+ }
7525
+ }));
7526
+ }
7439
7527
  }
7440
7528
  // sets animationDelay by speed of animationPayload
7441
7529
  if (animationPayload && animationPayload.speed) {
@@ -7495,15 +7583,15 @@ mapListener.startListening({
7495
7583
  dockedLayerManagerSize: dockedLayerManagerSize
7496
7584
  }));
7497
7585
  }
7498
- case 42:
7586
+ case 43:
7499
7587
  if (!(animationEndTime && (shouldEndtimeOverride || !(shouldAutoUpdate || shouldAnimate)))) {
7500
- _context2.next = 52;
7588
+ _context2.next = 53;
7501
7589
  break;
7502
7590
  }
7503
7591
  fiveMinuteDelayForAnimation = 1000 * 60 * 5; // eslint-disable-next-line no-await-in-loop
7504
- _context2.next = 46;
7592
+ _context2.next = 47;
7505
7593
  return listenerApi.delay(fiveMinuteDelayForAnimation);
7506
- case 46:
7594
+ case 47:
7507
7595
  _animationEnd2 = getAnimationEndTime(listenerApi.getState(), mapId);
7508
7596
  listenerApi.dispatch(mapActions.setAnimationEndTime({
7509
7597
  mapId: mapId,
@@ -7518,13 +7606,13 @@ mapListener.startListening({
7518
7606
  minutes: 5
7519
7607
  }).toISOString()
7520
7608
  }));
7521
- _context2.next = 42;
7609
+ _context2.next = 43;
7522
7610
  break;
7523
- case 52:
7524
- _context2.next = 57;
7611
+ case 53:
7612
+ _context2.next = 58;
7525
7613
  break;
7526
- case 54:
7527
- _context2.prev = 54;
7614
+ case 55:
7615
+ _context2.prev = 55;
7528
7616
  _context2.t0 = _context2["catch"](1);
7529
7617
  if (_context2.t0 instanceof Error) {
7530
7618
  listenerApi.dispatch(mapActions.setMapPresetError({
@@ -7532,11 +7620,11 @@ mapListener.startListening({
7532
7620
  error: _context2.t0.message
7533
7621
  }));
7534
7622
  }
7535
- case 57:
7623
+ case 58:
7536
7624
  case "end":
7537
7625
  return _context2.stop();
7538
7626
  }
7539
- }, _callee2, null, [[1, 54]]);
7627
+ }, _callee2, null, [[1, 55]]);
7540
7628
  }));
7541
7629
  function effect(_x3, _x4) {
7542
7630
  return _effect2.apply(this, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/store",
3
- "version": "14.2.2",
3
+ "version": "14.4.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": "14.2.2",
11
+ "@opengeoweb/shared": "14.4.0",
12
12
  "react-redux": "^9.2.0",
13
13
  "@reduxjs/toolkit": "^2.6.1",
14
- "@opengeoweb/webmap-react": "14.2.2",
15
- "@opengeoweb/webmap": "14.2.2",
14
+ "@opengeoweb/webmap-react": "14.4.0",
15
+ "@opengeoweb/webmap": "14.4.0",
16
16
  "immer": "^10.0.3",
17
17
  "lodash": "^4.17.21",
18
- "@opengeoweb/metronome": "14.2.2",
19
- "@opengeoweb/time-slider": "14.2.2",
18
+ "@opengeoweb/metronome": "14.4.0",
19
+ "@opengeoweb/time-slider": "14.4.0",
20
20
  "react-router-dom": "^6.23.1",
21
21
  "ol": "^10.4.0",
22
22
  "@turf/turf": "^7.2.0",
@@ -1,7 +1,7 @@
1
1
  import type { Bbox, MapPreset, WebMap, WebMapState } from './types';
2
2
  import type { CoreAppStore } from '../../types';
3
3
  import { uiTypes } from '../../ui';
4
- import type { Dimension, Layer, ReduxLayer, TimeSliderStartCenterEndTime, WebMapAnimationList } from '../types';
4
+ import type { Dimension, HarmonieInitialPropsResult, InitialTimeSliderProps, Layer, MultiMapInitialProps, ReduxLayer, TimeSliderStartCenterEndTime, WebMapAnimationList } from '../types';
5
5
  /**
6
6
  * Gets the map state by mapId
7
7
  *
@@ -2073,15 +2073,16 @@ export declare const getLegendId: ((state: CoreAppStore, mapId: string) => strin
2073
2073
  * Example getMapPreset(store, mapId);
2074
2074
  * @param {object} store store: object - store object
2075
2075
  * @param {string} mapId mapId: string - Id of the map
2076
+ * @param {boolean} keepAllDims? keepAllDims: boolean - default false: whether or not to leave the time and reference_time dimentions
2076
2077
  * @returns {MapPreset} returnType: MapPreset
2077
2078
  */
2078
- export declare const getMapPreset: ((state: CoreAppStore & uiTypes.UIModuleState, mapId: string) => MapPreset) & {
2079
+ export declare const getMapPreset: ((state: CoreAppStore & uiTypes.UIModuleState, _mapId: string, keepAllDims?: any) => MapPreset) & {
2079
2080
  clearCache: () => void;
2080
2081
  resultsCount: () => number;
2081
2082
  resetResultsCount: () => void;
2082
2083
  } & {
2083
- 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: boolean | undefined, resultFuncArgs_19: boolean | undefined, resultFuncArgs_20: string | undefined, resultFuncArgs_21: uiTypes.UIStoreType, resultFuncArgs_22: string) => MapPreset;
2084
- 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: boolean | undefined, resultFuncArgs_19: boolean | undefined, resultFuncArgs_20: string | undefined, resultFuncArgs_21: uiTypes.UIStoreType, resultFuncArgs_22: string) => MapPreset) & {
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, resultFuncArgs_23: string, resultFuncArgs_24: any) => MapPreset;
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, resultFuncArgs_23: string, resultFuncArgs_24: any) => MapPreset) & {
2085
2086
  clearCache: () => void;
2086
2087
  resultsCount: () => number;
2087
2088
  resetResultsCount: () => void;
@@ -2547,6 +2548,26 @@ export declare const getMapPreset: ((state: CoreAppStore & uiTypes.UIModuleState
2547
2548
  } & {
2548
2549
  memoize: typeof import("reselect").weakMapMemoize;
2549
2550
  argsMemoize: typeof import("reselect").weakMapMemoize;
2551
+ }, ((state: CoreAppStore, mapId: string) => Dimension[] | undefined) & {
2552
+ clearCache: () => void;
2553
+ resultsCount: () => number;
2554
+ resetResultsCount: () => void;
2555
+ } & {
2556
+ resultFunc: (resultFuncArgs_0: WebMap | undefined) => Dimension[] | undefined;
2557
+ memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => Dimension[] | undefined) & {
2558
+ clearCache: () => void;
2559
+ resultsCount: () => number;
2560
+ resetResultsCount: () => void;
2561
+ };
2562
+ lastResult: () => Dimension[] | undefined;
2563
+ dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
2564
+ recomputations: () => number;
2565
+ resetRecomputations: () => void;
2566
+ dependencyRecomputations: () => number;
2567
+ resetDependencyRecomputations: () => void;
2568
+ } & {
2569
+ memoize: typeof import("reselect").weakMapMemoize;
2570
+ argsMemoize: typeof import("reselect").weakMapMemoize;
2550
2571
  }, ((state: CoreAppStore, mapId: string) => boolean | undefined) & {
2551
2572
  clearCache: () => void;
2552
2573
  resultsCount: () => number;
@@ -2607,7 +2628,7 @@ export declare const getMapPreset: ((state: CoreAppStore & uiTypes.UIModuleState
2607
2628
  } & {
2608
2629
  memoize: typeof import("reselect").weakMapMemoize;
2609
2630
  argsMemoize: typeof import("reselect").weakMapMemoize;
2610
- }, (store: uiTypes.UIModuleState) => uiTypes.UIStoreType, (_store: CoreAppStore, mapId: string) => string];
2631
+ }, (store: uiTypes.UIModuleState) => uiTypes.UIStoreType, (_store: CoreAppStore, mapId: string) => string, (_store: CoreAppStore, _mapId: string, keepAllDims?: any) => any];
2611
2632
  recomputations: () => number;
2612
2633
  resetRecomputations: () => void;
2613
2634
  dependencyRecomputations: () => number;
@@ -2616,6 +2637,9 @@ export declare const getMapPreset: ((state: CoreAppStore & uiTypes.UIModuleState
2616
2637
  memoize: typeof import("reselect").weakMapMemoize;
2617
2638
  argsMemoize: typeof import("reselect").weakMapMemoize;
2618
2639
  };
2640
+ export declare const getMultiMapInitialProps: (store: CoreAppStore, panelId: string) => MultiMapInitialProps;
2641
+ export declare const getHarmonieInitialProps: (store: CoreAppStore, panelId: string, viewInitialProps?: unknown, relatedSyncGroupIds?: string[]) => HarmonieInitialPropsResult;
2642
+ export declare const getTimeSliderInitialProps: (store: CoreAppStore, panelId: string, viewInitialProps?: unknown) => InitialTimeSliderProps;
2619
2643
  /**
2620
2644
  * Gets all enabled layerIds for map
2621
2645
  *
@@ -250,3 +250,27 @@ export interface TimeSliderStartCenterEndTime {
250
250
  end: number;
251
251
  step: number;
252
252
  }
253
+ export interface MultiMapInitialProps {
254
+ mapPreset: MapPreset[];
255
+ syncGroupsIds: string[];
256
+ shouldShowZoomControls?: boolean;
257
+ }
258
+ export interface InitialHarmTempAndPrecipProps {
259
+ layers: {
260
+ topRow: Layer;
261
+ bottomRow: Layer;
262
+ topRowSyncGroups?: string[];
263
+ bottomRowSyncGroups?: string[];
264
+ };
265
+ multiLegend?: boolean;
266
+ }
267
+ export interface HarmonieInitialPropsResult {
268
+ layers?: InitialHarmTempAndPrecipProps['layers'];
269
+ multiLegend?: boolean;
270
+ }
271
+ export interface InitialTimeSliderProps {
272
+ sliderPreset: {
273
+ mapId: string;
274
+ };
275
+ syncGroupsIds: string[];
276
+ }