@opengeoweb/store 9.30.0 → 9.32.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/store",
3
- "version": "9.30.0",
3
+ "version": "9.32.0",
4
4
  "description": "GeoWeb Store library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -25,5 +25,6 @@
25
25
  },
26
26
  "module": "./index.esm.js",
27
27
  "type": "module",
28
- "main": "./index.esm.js"
28
+ "main": "./index.esm.js",
29
+ "types": "./index.esm.d.ts"
29
30
  }
@@ -1,3 +1,5 @@
1
+ import { syncGroupsListener } from './listener';
2
+ export { syncGroupsListener };
1
3
  export { actions as syncGroupsActions, initialState, reducer as syncGroupsReducer, } from './reducer';
2
4
  export * as syncConstants from './constants';
3
5
  export * as types from './types';
@@ -49,6 +49,7 @@ export declare const mapStoreActions: {
49
49
  mapId: string;
50
50
  error: string;
51
51
  }, "mapReducer/setMapPresetError">;
52
+ setDefaultMapSettings: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetDefaultMapSettingsPayload, "mapReducer/setDefaultMapSettings">;
52
53
  addLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").AddLayerPayload, "layerReducer/addLayer">;
53
54
  duplicateMapLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").DuplicateMapLayerPayload, "layerReducer/duplicateMapLayer">;
54
55
  layerChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayerDimensionPayload, "layerReducer/layerChangeDimension">;
@@ -1,6 +1,6 @@
1
1
  import { Draft } from '@reduxjs/toolkit';
2
2
  import { WMJSDimension } from '@opengeoweb/webmap';
3
- import type { Dimension } from '../types';
3
+ import type { Dimension, ReduxLayer } from '../types';
4
4
  import type { LayerState } from './types';
5
5
  export declare const isActionLayerSynced: (state: LayerState, layerIdFromAction: string, dimension: Dimension) => boolean;
6
6
  export declare const produceDimensionActionForMapLayer: (layerDim: Dimension, wmjsDimension: WMJSDimension, newDimension: Dimension) => Dimension;
@@ -21,3 +21,13 @@ export declare const filterNonTimeDimensions: (dimensions: Dimension[]) => Dimen
21
21
  * @param dimensions Dimension[]
22
22
  */
23
23
  export declare const filterCurrentValueFromDimensions: (dimensions: Dimension[]) => Dimension[];
24
+ /**
25
+ * The timeslider range is depending on values set via reference_time dimension.
26
+ * This code will update minValue and maxValue accordingly based on the value of the reference_time.
27
+ *
28
+ * @param draft
29
+ * @param layerId
30
+ * @param dimensionValueToUpdate
31
+ * @returns
32
+ */
33
+ export declare const updateMinMaxValueWhenReferenceTimeChanges: (draftLayer: Draft<ReduxLayer>, dimensionValueToUpdate: Dimension) => void;
@@ -1,6 +1,6 @@
1
1
  import { PayloadAction, Draft } from '@reduxjs/toolkit';
2
2
  import { 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, SetTimeSliderSecondsPerPxPayload, ToggleTimeSliderIsVisiblePayload, SetDockedLayerManagerSize, ToggleAnimationLengthAutoPayload } from './types';
3
+ import type { WebMapState, SetAutoLayerIdPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderSpanPayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderWidthPayload, SetTimeSliderCenterTimePayload, SetEndTimeOverriding, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSpanAutoPayload, ToggleTimeSliderHoverPayload, DisableMapPinPayload, SetTimeSliderSecondsPerPxPayload, ToggleTimeSliderIsVisiblePayload, SetDockedLayerManagerSize, ToggleAnimationLengthAutoPayload, SetDefaultMapSettingsPayload } from './types';
4
4
  import { ToggleMapPinIsVisiblePayload, ToggleZoomControlsPayload } from '../types';
5
5
  /**
6
6
  * Checks if the layer id is already taken in one of the maps.
@@ -56,6 +56,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
56
56
  mapId: string;
57
57
  error: string;
58
58
  }>) => void;
59
+ setDefaultMapSettings: (draft: Draft<WebMapState>, action: PayloadAction<SetDefaultMapSettingsPayload>) => void;
59
60
  }, "mapReducer">;
60
61
  export declare const mapActions: {
61
62
  setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetMapPresetPayload, string>;
@@ -105,5 +106,6 @@ export declare const mapActions: {
105
106
  mapId: string;
106
107
  error: string;
107
108
  }, "mapReducer/setMapPresetError">;
109
+ setDefaultMapSettings: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetDefaultMapSettingsPayload, "mapReducer/setDefaultMapSettings">;
108
110
  };
109
111
  export declare const reducer: import("redux").Reducer<WebMapState>;
@@ -731,3 +731,25 @@ export declare const getAnimationRange: ((state: any, mapId: any) => {
731
731
  }> & {
732
732
  clearCache: () => void;
733
733
  };
734
+ /**
735
+ * Gets intialViewMapPreset from webmap state
736
+ *
737
+ * @param {object} store store: object - Store object
738
+ * @returns {MapPreset | undefined} returnType: MapPreset
739
+ */
740
+ export declare const getdefaultMapSettings: ((state: CoreAppStore) => MapPreset | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMapState | undefined) => MapPreset | undefined, {
741
+ clearCache: () => void;
742
+ }> & {
743
+ clearCache: () => void;
744
+ };
745
+ /**
746
+ * Gets the layers of intialViewMapPreset from webmap state
747
+ *
748
+ * @param {object} store store: object - Store object
749
+ * @returns {Layer[] | undefined} returnType: Layer[]
750
+ */
751
+ export declare const getdefaultMapSettingsLayers: ((state: CoreAppStore) => Layer[] | undefined) & import("reselect").OutputSelectorFields<(args_0: MapPreset | undefined) => Layer[] | undefined, {
752
+ clearCache: () => void;
753
+ }> & {
754
+ clearCache: () => void;
755
+ };
@@ -57,6 +57,7 @@ export type DockedLayerManagerSize = 'sizeSmall' | 'sizeMedium' | 'sizeLarge' |
57
57
  export interface WebMapState {
58
58
  byId: Record<string, WebMap>;
59
59
  allIds: string[];
60
+ defaultMapSettings?: MapPreset;
60
61
  }
61
62
  export interface Bbox {
62
63
  left: number;
@@ -231,3 +232,6 @@ export interface ISO8601Interval {
231
232
  endTime: string;
232
233
  duration: string;
233
234
  }
235
+ export interface SetDefaultMapSettingsPayload {
236
+ preset: MapPreset;
237
+ }