@opengeoweb/store 9.0.0 → 9.2.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
@@ -1,5 +1,5 @@
1
1
  import { webmapUtils, LayerType, webmapTestSettings, WMLayer, getCapabilities } from '@opengeoweb/webmap';
2
- import { getGeoJson, moveFeature, createInterSections, defaultLayers, getFeatureCollection, emptyGeoJSON } from '@opengeoweb/webmap-react';
2
+ import { getGeoJson, moveFeature, createInterSections, defaultLayers, getFeatureCollection, emptyGeoJSON, defaultIntersectionStyleProperties } from '@opengeoweb/webmap-react';
3
3
  export { defaultLayers } from '@opengeoweb/webmap-react';
4
4
  import * as React from 'react';
5
5
  import React__default, { useContext, useRef, useCallback, useDebugValue, useEffect } from 'react';
@@ -9306,7 +9306,7 @@ var produceDraftStateSetMapDimensionFromLayerChangeDimension = function produceD
9306
9306
  */
9307
9307
  function moveArrayElements(array, oldIndex, newIndex) {
9308
9308
  var newArray = _toConsumableArray(array);
9309
- var indexNew = newIndex >= newArray.length ? newArray.length - 1 : newIndex;
9309
+ var indexNew = Math.min(newIndex, newArray.length - 1);
9310
9310
  newArray.splice(indexNew, 0, newArray.splice(oldIndex, 1)[0]);
9311
9311
  return newArray;
9312
9312
  }
@@ -10045,6 +10045,18 @@ var slice$7 = createSlice({
10045
10045
  });
10046
10046
  },
10047
10047
  // feature layer actions
10048
+ orderLayerToFront: function orderLayerToFront(draft, action) {
10049
+ var layerId = action.payload.layerId;
10050
+ var layerIdsWithoutNewId = draft.allIds.filter(function (existingLayerId) {
10051
+ return existingLayerId !== layerId;
10052
+ });
10053
+ if (!layerId || layerIdsWithoutNewId.length === draft.allIds.length) {
10054
+ return;
10055
+ }
10056
+ var newLayerIds = [layerId].concat(_toConsumableArray(layerIdsWithoutNewId));
10057
+ draft.allIds = newLayerIds;
10058
+ },
10059
+ // feature layer actions
10048
10060
  setSelectedFeature: function setSelectedFeature(draft, action) {
10049
10061
  var _action$payload16 = action.payload,
10050
10062
  layerId = _action$payload16.layerId,
@@ -10088,8 +10100,8 @@ var slice$7 = createSlice({
10088
10100
  return;
10089
10101
  }
10090
10102
  var bounds = R$1(intersectionBoundsLayer).geojson;
10091
- var properties = (_b = (_a = R$1(currentLayer).geojson) === null || _a === void 0 ? void 0 : _a.features[0]) === null || _b === void 0 ? void 0 : _b.properties;
10092
- intersectionLayer.geojson = createInterSections(updatedGeoJSON, bounds, properties);
10103
+ var geoJSONProperties = R$1(intersectionLayer).defaultGeoJSONProperties || ((_b = (_a = R$1(currentLayer).geojson) === null || _a === void 0 ? void 0 : _a.features[0]) === null || _b === void 0 ? void 0 : _b.properties);
10104
+ intersectionLayer.geojson = createInterSections(updatedGeoJSON, bounds, geoJSONProperties);
10093
10105
  }
10094
10106
  },
10095
10107
  updateFeatureProperties: function updateFeatureProperties(draft, action) {
@@ -28880,6 +28892,7 @@ var DialogTypes;
28880
28892
  DialogTypes["SyncGroups"] = "syncGroups";
28881
28893
  DialogTypes["TimeSeriesSelect"] = "timeSeriesSelect";
28882
28894
  DialogTypes["TimeSeriesManager"] = "timeSeriesManager";
28895
+ DialogTypes["TimeseriesInfo"] = "timeseriesInfo";
28883
28896
  DialogTypes["KeywordFilter"] = "keywordFilter";
28884
28897
  DialogTypes["DimensionSelectEnsembleMember"] = "dimensionSelect-ensemble_member";
28885
28898
  DialogTypes["DimensionSelectElevation"] = "dimensionSelect-elevation";
@@ -29855,7 +29868,7 @@ var linkedMapAnimationInfo = createSelector(function (store, mapId) {
29855
29868
  * @returns {string} returnType: string
29856
29869
  */
29857
29870
  var getAnimationStartTime = createSelector(getMapById, function (store) {
29858
- return store ? store.animationStartTime : moment.utc().subtract(6, 'h').format(dateFormat);
29871
+ return (store === null || store === void 0 ? void 0 : store.animationStartTime) ? store.animationStartTime : moment.utc().subtract(6, 'h').format(dateFormat);
29859
29872
  });
29860
29873
  /**
29861
29874
  * Gets end time of animation
@@ -29866,7 +29879,7 @@ var getAnimationStartTime = createSelector(getMapById, function (store) {
29866
29879
  * @returns {string} returnType: string
29867
29880
  */
29868
29881
  var getAnimationEndTime$1 = createSelector(getMapById, function (store) {
29869
- return store ? store.animationEndTime : moment.utc().subtract(10, 'm').format(dateFormat);
29882
+ return (store === null || store === void 0 ? void 0 : store.animationEndTime) ? store.animationEndTime : moment.utc().subtract(10, 'm').format(dateFormat);
29870
29883
  });
29871
29884
  /**
29872
29885
  * Returns map is auto updating
@@ -34713,14 +34726,44 @@ var slice = createSlice({
34713
34726
  return;
34714
34727
  }
34715
34728
  drawTool.geoJSONLayerId = geoJSONLayerId;
34729
+ },
34730
+ // updates single tool mode with new values
34731
+ updateDrawToolMode: function updateDrawToolMode(draft, action) {
34732
+ var _action$payload4 = action.payload,
34733
+ drawModeId = _action$payload4.drawModeId,
34734
+ drawToolId = _action$payload4.drawToolId,
34735
+ shape = _action$payload4.shape,
34736
+ title = _action$payload4.title;
34737
+ var drawTool = draft.entities[drawToolId];
34738
+ if (!drawTool) {
34739
+ return;
34740
+ }
34741
+ var newModes = drawTool.drawModes.map(function (mode) {
34742
+ if (mode.drawModeId === drawModeId) {
34743
+ return Object.assign(Object.assign(Object.assign({}, mode), {
34744
+ shape: shape
34745
+ }), title && {
34746
+ title: title
34747
+ });
34748
+ }
34749
+ return mode;
34750
+ });
34751
+ drawTool.drawModes = newModes;
34752
+ },
34753
+ changeIntersectionBounds: function changeIntersectionBounds(
34754
+ // eslint-disable-next-line no-unused-vars
34755
+ draft,
34756
+ // eslint-disable-next-line no-unused-vars
34757
+ action) {
34758
+ // action caught in drawingTool/sagas
34716
34759
  }
34717
34760
  },
34718
34761
  extraReducers: function extraReducers(builder) {
34719
34762
  builder.addCase(layerActions.exitFeatureDrawMode, function (draft, action) {
34720
- var _action$payload4 = action.payload,
34721
- layerId = _action$payload4.layerId,
34722
- shouldAllowMultipleShapes = _action$payload4.shouldAllowMultipleShapes,
34723
- reason = _action$payload4.reason;
34763
+ var _action$payload5 = action.payload,
34764
+ layerId = _action$payload5.layerId,
34765
+ shouldAllowMultipleShapes = _action$payload5.shouldAllowMultipleShapes,
34766
+ reason = _action$payload5.reason;
34724
34767
  var drawToolId = getDrawToolByLayerId(draft, layerId);
34725
34768
  if (!drawToolId || drawToolId && !draft.entities[drawToolId]) {
34726
34769
  return;
@@ -34730,9 +34773,9 @@ var slice = createSlice({
34730
34773
  }
34731
34774
  }).addCase(layerActions.updateFeatureProperties, function (draft, action) {
34732
34775
  var _a;
34733
- var _action$payload5 = action.payload,
34734
- properties = _action$payload5.properties,
34735
- layerId = _action$payload5.layerId;
34776
+ var _action$payload6 = action.payload,
34777
+ properties = _action$payload6.properties,
34778
+ layerId = _action$payload6.layerId;
34736
34779
  var drawToolId = getDrawToolByLayerId(draft, layerId);
34737
34780
  var entity = draft.entities[drawToolId];
34738
34781
  if (drawToolId && entity !== undefined) {
@@ -34847,11 +34890,11 @@ var registerOrigin = 'drawings saga:registerDrawToolSaga';
34847
34890
  function registerDrawToolSaga(_ref) {
34848
34891
  var payload = _ref.payload;
34849
34892
  return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
34850
- var mapId, geoJSONLayerId, geoJSONIntersectionLayerId, geoJSONIntersectionBoundsLayerId, _payload$defaultGeoJS, defaultGeoJSON, _payload$defaultGeoJS2, defaultGeoJSONIntersection, defaultGeoJSONIntersectionBounds;
34893
+ var mapId, geoJSONLayerId, geoJSONIntersectionLayerId, geoJSONIntersectionBoundsLayerId, _payload$defaultGeoJS, defaultGeoJSON, _payload$defaultGeoJS2, defaultGeoJSONIntersection, defaultGeoJSONIntersectionBounds, _payload$defaultGeoJS3, defaultGeoJSONIntersectionProperties, existingBoundsLayer;
34851
34894
  return _regeneratorRuntime().wrap(function _callee$(_context) {
34852
34895
  while (1) switch (_context.prev = _context.next) {
34853
34896
  case 0:
34854
- mapId = payload.mapId, geoJSONLayerId = payload.geoJSONLayerId, geoJSONIntersectionLayerId = payload.geoJSONIntersectionLayerId, geoJSONIntersectionBoundsLayerId = payload.geoJSONIntersectionBoundsLayerId, _payload$defaultGeoJS = payload.defaultGeoJSON, defaultGeoJSON = _payload$defaultGeoJS === void 0 ? emptyGeoJSON : _payload$defaultGeoJS, _payload$defaultGeoJS2 = payload.defaultGeoJSONIntersection, defaultGeoJSONIntersection = _payload$defaultGeoJS2 === void 0 ? emptyGeoJSON : _payload$defaultGeoJS2, defaultGeoJSONIntersectionBounds = payload.defaultGeoJSONIntersectionBounds; // create for every drawTool a draw layer
34897
+ mapId = payload.mapId, geoJSONLayerId = payload.geoJSONLayerId, geoJSONIntersectionLayerId = payload.geoJSONIntersectionLayerId, geoJSONIntersectionBoundsLayerId = payload.geoJSONIntersectionBoundsLayerId, _payload$defaultGeoJS = payload.defaultGeoJSON, defaultGeoJSON = _payload$defaultGeoJS === void 0 ? emptyGeoJSON : _payload$defaultGeoJS, _payload$defaultGeoJS2 = payload.defaultGeoJSONIntersection, defaultGeoJSONIntersection = _payload$defaultGeoJS2 === void 0 ? emptyGeoJSON : _payload$defaultGeoJS2, defaultGeoJSONIntersectionBounds = payload.defaultGeoJSONIntersectionBounds, _payload$defaultGeoJS3 = payload.defaultGeoJSONIntersectionProperties, defaultGeoJSONIntersectionProperties = _payload$defaultGeoJS3 === void 0 ? defaultIntersectionStyleProperties : _payload$defaultGeoJS3; // create for every drawTool a draw layer
34855
34898
  if (!(geoJSONLayerId && mapId)) {
34856
34899
  _context.next = 4;
34857
34900
  break;
@@ -34877,17 +34920,26 @@ function registerDrawToolSaga(_ref) {
34877
34920
  mapId: mapId,
34878
34921
  layer: {
34879
34922
  geojson: defaultGeoJSONIntersection,
34880
- layerType: LayerType.featureLayer
34923
+ layerType: LayerType.featureLayer,
34924
+ defaultGeoJSONProperties: defaultGeoJSONIntersectionProperties
34881
34925
  },
34882
34926
  layerId: geoJSONIntersectionLayerId,
34883
34927
  origin: registerOrigin
34884
34928
  }));
34885
34929
  case 7:
34886
34930
  if (!(geoJSONIntersectionBoundsLayerId && mapId)) {
34887
- _context.next = 10;
34931
+ _context.next = 16;
34888
34932
  break;
34889
34933
  }
34890
34934
  _context.next = 10;
34935
+ return select(getLayerById, geoJSONIntersectionBoundsLayerId);
34936
+ case 10:
34937
+ existingBoundsLayer = _context.sent;
34938
+ if (existingBoundsLayer) {
34939
+ _context.next = 14;
34940
+ break;
34941
+ }
34942
+ _context.next = 14;
34891
34943
  return put(mapStoreActions.addLayer({
34892
34944
  mapId: mapId,
34893
34945
  layer: {
@@ -34897,7 +34949,12 @@ function registerDrawToolSaga(_ref) {
34897
34949
  layerId: geoJSONIntersectionBoundsLayerId,
34898
34950
  origin: registerOrigin
34899
34951
  }));
34900
- case 10:
34952
+ case 14:
34953
+ _context.next = 16;
34954
+ return put(layerActions.orderLayerToFront({
34955
+ layerId: geoJSONIntersectionBoundsLayerId
34956
+ }));
34957
+ case 16:
34901
34958
  case "end":
34902
34959
  return _context.stop();
34903
34960
  }
@@ -34922,39 +34979,39 @@ function changeDrawToolSaga(_ref2) {
34922
34979
  return select(getDrawModeById, drawToolId, drawModeId);
34923
34980
  case 8:
34924
34981
  newDrawMode = _context2.sent;
34925
- if (!(newDrawMode.value === 'DELETE')) {
34926
- _context2.next = 18;
34982
+ if (!(!newDrawMode || !drawingTool.activeDrawModeId && newDrawMode.isSelectable)) {
34983
+ _context2.next = 13;
34927
34984
  break;
34928
34985
  }
34929
34986
  _context2.next = 12;
34987
+ return put(layerActions.toggleFeatureMode({
34988
+ layerId: drawingTool.geoJSONLayerId,
34989
+ isInEditMode: false,
34990
+ drawMode: ''
34991
+ }));
34992
+ case 12:
34993
+ return _context2.abrupt("return");
34994
+ case 13:
34995
+ if (!(newDrawMode.value === 'DELETE')) {
34996
+ _context2.next = 22;
34997
+ break;
34998
+ }
34999
+ _context2.next = 16;
34930
35000
  return put(layerActions.layerChangeGeojson({
34931
35001
  layerId: drawingTool.geoJSONLayerId,
34932
35002
  geojson: emptyGeoJSON
34933
35003
  }));
34934
- case 12:
35004
+ case 16:
34935
35005
  if (!geoJSONIntersectionLayerId) {
34936
- _context2.next = 15;
35006
+ _context2.next = 19;
34937
35007
  break;
34938
35008
  }
34939
- _context2.next = 15;
35009
+ _context2.next = 19;
34940
35010
  return put(layerActions.layerChangeGeojson({
34941
35011
  layerId: geoJSONIntersectionLayerId,
34942
35012
  geojson: emptyGeoJSON
34943
35013
  }));
34944
- case 15:
34945
- _context2.next = 17;
34946
- return put(layerActions.toggleFeatureMode({
34947
- layerId: drawingTool.geoJSONLayerId,
34948
- isInEditMode: false,
34949
- drawMode: ''
34950
- }));
34951
- case 17:
34952
- return _context2.abrupt("return");
34953
- case 18:
34954
- if (!(!drawingTool.activeDrawModeId && newDrawMode.isSelectable)) {
34955
- _context2.next = 22;
34956
- break;
34957
- }
35014
+ case 19:
34958
35015
  _context2.next = 21;
34959
35016
  return put(layerActions.toggleFeatureMode({
34960
35017
  layerId: drawingTool.geoJSONLayerId,
@@ -35019,18 +35076,57 @@ function changeDrawToolSaga(_ref2) {
35019
35076
  }, _callee2, null, [[0, 42]]);
35020
35077
  })();
35021
35078
  }
35079
+ function changeIntersectionSaga(_ref4) {
35080
+ var payload = _ref4.payload;
35081
+ return /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
35082
+ var drawToolId, geoJSON, drawtool;
35083
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
35084
+ while (1) switch (_context3.prev = _context3.next) {
35085
+ case 0:
35086
+ drawToolId = payload.drawToolId, geoJSON = payload.geoJSON;
35087
+ _context3.next = 3;
35088
+ return select(selectDrawToolById, drawToolId);
35089
+ case 3:
35090
+ drawtool = _context3.sent;
35091
+ _context3.next = 6;
35092
+ return put(layerActions.layerChangeGeojson({
35093
+ layerId: drawtool.geoJSONIntersectionBoundsLayerId,
35094
+ geojson: geoJSON
35095
+ }));
35096
+ case 6:
35097
+ _context3.next = 8;
35098
+ return put(layerActions.layerChangeGeojson({
35099
+ layerId: drawtool.geoJSONLayerId,
35100
+ geojson: emptyGeoJSON
35101
+ }));
35102
+ case 8:
35103
+ _context3.next = 10;
35104
+ return put(layerActions.layerChangeGeojson({
35105
+ layerId: drawtool.geoJSONIntersectionLayerId,
35106
+ geojson: emptyGeoJSON
35107
+ }));
35108
+ case 10:
35109
+ case "end":
35110
+ return _context3.stop();
35111
+ }
35112
+ }, _callee3);
35113
+ })();
35114
+ }
35022
35115
  function drawingSaga() {
35023
- return _regeneratorRuntime().wrap(function drawingSaga$(_context3) {
35024
- while (1) switch (_context3.prev = _context3.next) {
35116
+ return _regeneratorRuntime().wrap(function drawingSaga$(_context4) {
35117
+ while (1) switch (_context4.prev = _context4.next) {
35025
35118
  case 0:
35026
- _context3.next = 2;
35119
+ _context4.next = 2;
35027
35120
  return takeLatest$1(drawtoolActions.registerDrawTool, registerDrawToolSaga);
35028
35121
  case 2:
35029
- _context3.next = 4;
35122
+ _context4.next = 4;
35030
35123
  return takeLatest$1(drawtoolActions.changeDrawToolMode, changeDrawToolSaga);
35031
35124
  case 4:
35125
+ _context4.next = 6;
35126
+ return takeLatest$1(drawtoolActions.changeIntersectionBounds, changeIntersectionSaga);
35127
+ case 6:
35032
35128
  case "end":
35033
- return _context3.stop();
35129
+ return _context4.stop();
35034
35130
  }
35035
35131
  }, _marked$2);
35036
35132
  }
@@ -68022,11 +68118,12 @@ var useSetupDialog = function useSetupDialog(dialogType) {
68022
68118
  return getIsMapPresent(store, mapId);
68023
68119
  });
68024
68120
  // Check to ensure the currently active map is still present on screen - if not, close the dialog
68121
+ // exception for timeseries, since we dont need a map to show the timeseries view.
68025
68122
  useEffect(function () {
68026
- if (mapId !== '' && !isMapPresent) {
68123
+ if (mapId !== '' && !isMapPresent && !(dialogType === DialogTypes.TimeSeriesManager || dialogType === DialogTypes.TimeSeriesSelect)) {
68027
68124
  onCloseDialog();
68028
68125
  }
68029
- }, [mapId, isMapPresent, onCloseDialog]);
68126
+ }, [mapId, isMapPresent, onCloseDialog, dialogType]);
68030
68127
  var registerDialog = useCallback(function () {
68031
68128
  dispatch(uiActions.registerDialog({
68032
68129
  type: dialogType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/store",
3
- "version": "9.0.0",
3
+ "version": "9.2.0",
4
4
  "description": "GeoWeb Store library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -33,4 +33,14 @@ export declare const drawtoolActions: import("@reduxjs/toolkit").CaseReducerActi
33
33
  drawToolId: string;
34
34
  geoJSONLayerId: string;
35
35
  }>) => void;
36
+ updateDrawToolMode: (draft: Draft<DrawingToolState>, action: PayloadAction<{
37
+ drawToolId: string;
38
+ drawModeId: string;
39
+ shape: GeoJSON.FeatureCollection;
40
+ title?: string;
41
+ }>) => void;
42
+ changeIntersectionBounds: (draft: Draft<DrawingToolState>, action: PayloadAction<{
43
+ drawToolId: string;
44
+ geoJSON: GeoJSON.FeatureCollection;
45
+ }>) => void;
36
46
  }, "draw">;
@@ -2,5 +2,6 @@ import { SagaIterator } from 'redux-saga';
2
2
  import { drawtoolActions } from './reducer';
3
3
  export declare function registerDrawToolSaga({ payload, }: ReturnType<typeof drawtoolActions.registerDrawTool>): SagaIterator;
4
4
  export declare function changeDrawToolSaga({ payload, }: ReturnType<typeof drawtoolActions.changeDrawToolMode>): SagaIterator;
5
+ export declare function changeIntersectionSaga({ payload, }: ReturnType<typeof drawtoolActions.changeIntersectionBounds>): SagaIterator;
5
6
  declare function drawingSaga(): SagaIterator;
6
7
  export default drawingSaga;
@@ -71,6 +71,9 @@ export declare const mapStoreActions: {
71
71
  useLatestReferenceTime: boolean;
72
72
  }, "layerReducer/setUseLatestReferenceTime">;
73
73
  onUpdateLayerInformation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").UpdateLayerInfoPayload, "layerReducer/onUpdateLayerInformation">;
74
+ orderLayerToFront: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
75
+ layerId: string;
76
+ }, "layerReducer/orderLayerToFront">;
74
77
  setSelectedFeature: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetSelectedFeaturePayload, "layerReducer/setSelectedFeature">;
75
78
  updateFeature: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").UpdateFeaturePayload, "layerReducer/updateFeature">;
76
79
  updateFeatureProperties: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").UpdateFeaturePropertiesPayload, "layerReducer/updateFeatureProperties">;
@@ -31,6 +31,9 @@ export declare const slice: import("@reduxjs/toolkit").Slice<import("immer/dist/
31
31
  useLatestReferenceTime: boolean;
32
32
  }>) => void;
33
33
  onUpdateLayerInformation: (draft: Draft<LayerState>, action: PayloadAction<UpdateLayerInfoPayload>) => void;
34
+ orderLayerToFront: (draft: Draft<LayerState>, action: PayloadAction<{
35
+ layerId: string;
36
+ }>) => void;
34
37
  setSelectedFeature: (draft: Draft<LayerState>, action: PayloadAction<SetSelectedFeaturePayload>) => void;
35
38
  updateFeature: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePayload>) => void;
36
39
  updateFeatureProperties: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePropertiesPayload>) => void;
@@ -66,6 +69,9 @@ export declare const layerActions: import("@reduxjs/toolkit").CaseReducerActions
66
69
  useLatestReferenceTime: boolean;
67
70
  }>) => void;
68
71
  onUpdateLayerInformation: (draft: Draft<LayerState>, action: PayloadAction<UpdateLayerInfoPayload>) => void;
72
+ orderLayerToFront: (draft: Draft<LayerState>, action: PayloadAction<{
73
+ layerId: string;
74
+ }>) => void;
69
75
  setSelectedFeature: (draft: Draft<LayerState>, action: PayloadAction<SetSelectedFeaturePayload>) => void;
70
76
  updateFeature: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePayload>) => void;
71
77
  updateFeatureProperties: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePropertiesPayload>) => void;
@@ -18,6 +18,7 @@ export declare enum LayerActionOrigin {
18
18
  }
19
19
  export interface FeatureLayer {
20
20
  geojson?: FeatureCollection;
21
+ defaultGeoJSONProperties?: GeoJSON.GeoJsonProperties;
21
22
  selectedFeatureIndex?: number;
22
23
  isInEditMode?: boolean;
23
24
  drawMode?: string;
@@ -2,7 +2,7 @@ import * as mapTypes from './types';
2
2
  import * as utils from './utils';
3
3
  export declare const mapUtils: {
4
4
  replaceLayerIdsToEnsureUniqueLayerIdsInStore: (layerIds: import("./replaceLayerIdsToEnsureUniqueLayerIdsInStore").LayersAndAutoLayerIds) => import("./replaceLayerIdsToEnsureUniqueLayerIdsInStore").LayersAndAutoLayerIds;
5
- moveArrayElements(array: string[], oldIndex: number, newIndex: number): string[];
5
+ moveArrayElements<T>(array: T[], oldIndex: number, newIndex: number): T[];
6
6
  dateFormat: "YYYY-MM-DDTHH:mm:ss[Z]";
7
7
  createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, isEndTimeOverriding, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, autoUpdateLayerId, autoTimeStepLayerId, timeSliderSpan, timeStep, animationDelay, timeSliderWidth, timeSliderCenterTime, timeSliderSecondsPerPx, isTimestepAuto, isTimeSpanAuto, isTimeSliderHoverOn, isTimeSliderVisible, displayMapPin, disableMapPin, shouldShowZoomControls, }: utils.CreateMapProps) => mapTypes.WebMap;
8
8
  checkValidLayersPayload: (layers: import("../types").Layer[], mapId: string) => boolean;
@@ -244,7 +244,7 @@ export declare const linkedMapAnimationInfo: ((state: CoreAppStore, mapId: strin
244
244
  * @param {string} mapId mapId: string - Id of the map
245
245
  * @returns {string} returnType: string
246
246
  */
247
- export declare const getAnimationStartTime: ((state: CoreAppStore | undefined, mapId: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string | undefined, {
247
+ export declare const getAnimationStartTime: ((state: CoreAppStore | undefined, mapId: string) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string, {
248
248
  clearCache: () => void;
249
249
  }> & {
250
250
  clearCache: () => void;
@@ -257,7 +257,7 @@ export declare const getAnimationStartTime: ((state: CoreAppStore | undefined, m
257
257
  * @param {string} mapId mapId: string - Id of the map
258
258
  * @returns {string} returnType: string
259
259
  */
260
- export declare const getAnimationEndTime: ((state: CoreAppStore | undefined, mapId: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string | undefined, {
260
+ export declare const getAnimationEndTime: ((state: CoreAppStore | undefined, mapId: string) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string, {
261
261
  clearCache: () => void;
262
262
  }> & {
263
263
  clearCache: () => void;
@@ -627,7 +627,7 @@ export declare const getLegendId: ((state: CoreAppStore | undefined, mapId: stri
627
627
  * @param {string} mapId mapId: string - Id of the map
628
628
  * @returns {MapPreset} returnType: MapPreset
629
629
  */
630
- export declare const getMapPreset: ((state: CoreAppStore, mapId: string) => MapPreset) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").ReduxLayer[], args_3: Bbox, args_4: string, args_5: string | undefined, args_6: string | undefined, args_7: string | undefined, args_8: boolean, args_9: boolean, args_10: boolean | undefined, args_11: boolean | undefined, args_12: boolean | undefined, args_13: number, args_14: number | undefined, args_15: string | undefined, args_16: string | undefined, args_17: boolean | undefined, args_18: string | undefined, args_19: uiTypes.UIStoreType) => MapPreset, {
630
+ export declare const getMapPreset: ((state: CoreAppStore, mapId: string) => MapPreset) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").ReduxLayer[], args_3: Bbox, args_4: string, args_5: string | undefined, args_6: string | undefined, args_7: string | undefined, args_8: boolean, args_9: boolean, args_10: boolean | undefined, args_11: boolean | undefined, args_12: boolean | undefined, args_13: number, args_14: number | undefined, args_15: string, args_16: string, args_17: boolean | undefined, args_18: string | undefined, args_19: uiTypes.UIStoreType) => MapPreset, {
631
631
  clearCache: () => void;
632
632
  }> & {
633
633
  clearCache: () => void;
@@ -66,7 +66,7 @@ export declare const produceDraftStateSetMapDimensionFromLayerChangeDimension: (
66
66
  * @param oldIndex Old index of element in array
67
67
  * @param newIndex New index of element in array
68
68
  */
69
- export declare function moveArrayElements(array: string[], oldIndex: number, newIndex: number): string[];
69
+ export declare function moveArrayElements<T>(array: T[], oldIndex: number, newIndex: number): T[];
70
70
  export declare const getTimeStepFromDataInterval: (timeInterval: TimeInterval) => number;
71
71
  export declare const getActiveLayerTimeStep: (timeDimension: Dimension | undefined) => number | undefined;
72
72
  export declare const getSpeedFactor: (speedDelay: number) => SpeedFactorType;
@@ -7,6 +7,7 @@ export declare enum DialogTypes {
7
7
  SyncGroups = "syncGroups",
8
8
  TimeSeriesSelect = "timeSeriesSelect",
9
9
  TimeSeriesManager = "timeSeriesManager",
10
+ TimeseriesInfo = "timeseriesInfo",
10
11
  KeywordFilter = "keywordFilter",
11
12
  DimensionSelectEnsembleMember = "dimensionSelect-ensemble_member",
12
13
  DimensionSelectElevation = "dimensionSelect-elevation",