@opengeoweb/core 2.8.0 → 2.12.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.
Files changed (109) hide show
  1. package/index.esm.js +5537 -6976
  2. package/index.umd.js +21136 -22477
  3. package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +1 -1
  4. package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +3 -4
  5. package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +2 -2
  6. package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +1 -0
  7. package/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.d.ts +1 -1
  8. package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +1 -0
  9. package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts +0 -1
  10. package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +1 -0
  11. package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +1 -0
  12. package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +0 -1
  13. package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +1 -0
  14. package/lib/components/LayerManager/LayerManager.d.ts +2 -0
  15. package/lib/components/LayerManager/LayerManager.stories.d.ts +9 -0
  16. package/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +3 -3
  17. package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +2 -2
  18. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +5 -4
  19. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -2
  20. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -2
  21. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +3 -2
  22. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +1 -3
  23. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +3 -2
  24. package/lib/components/Legend/LegendConnect.d.ts +2 -0
  25. package/lib/components/Legend/LegendMapButtonConnect.d.ts +1 -0
  26. package/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +2 -2
  27. package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +1 -0
  28. package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +2 -1
  29. package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +2 -2
  30. package/lib/components/Providers/Providers.d.ts +1 -1
  31. package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +0 -1
  32. package/lib/components/SyncGroups/selector.d.ts +0 -1
  33. package/lib/components/TimeSlider/TimeSlider.d.ts +2 -0
  34. package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +1 -1
  35. package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButtonConnect.d.ts +1 -1
  36. package/lib/index.d.ts +59 -10
  37. package/lib/store/generic/actions.d.ts +3 -4
  38. package/lib/store/generic/index.d.ts +14 -0
  39. package/lib/store/generic/sagas.d.ts +10 -9
  40. package/lib/store/generic/selectors.d.ts +0 -1
  41. package/lib/store/generic/synchronizationActions/actions.d.ts +6 -5
  42. package/lib/store/generic/synchronizationActions/types.d.ts +10 -23
  43. package/lib/store/generic/synchronizationGroups/constants.d.ts +0 -8
  44. package/lib/store/generic/synchronizationGroups/index.d.ts +1 -2
  45. package/lib/store/generic/synchronizationGroups/reducer.d.ts +25 -3
  46. package/lib/store/generic/synchronizationGroups/sagas.d.ts +3 -3
  47. package/lib/store/generic/synchronizationGroups/selectors.d.ts +0 -2
  48. package/lib/store/generic/synchronizationGroups/types.d.ts +8 -38
  49. package/lib/store/generic/synchronizationGroups/utils.d.ts +0 -5
  50. package/lib/store/generic/types.d.ts +3 -12
  51. package/lib/store/index.d.ts +4 -0
  52. package/lib/store/layerSelect/index.d.ts +2 -0
  53. package/lib/store/layerSelect/reducer.d.ts +12 -2
  54. package/lib/store/layerSelect/sagas.d.ts +3 -3
  55. package/lib/store/layerSelect/selectors.d.ts +0 -6
  56. package/lib/store/layerSelect/types.d.ts +7 -35
  57. package/lib/store/mapStore/index.d.ts +3 -0
  58. package/lib/store/mapStore/layers/index.d.ts +2 -0
  59. package/lib/store/mapStore/layers/reducer.d.ts +42 -4
  60. package/lib/store/mapStore/layers/selectors.d.ts +0 -17
  61. package/lib/store/mapStore/layers/types.d.ts +24 -72
  62. package/lib/store/mapStore/map/actions.d.ts +6 -170
  63. package/lib/store/mapStore/map/index.d.ts +2 -0
  64. package/lib/store/mapStore/map/reducer.d.ts +79 -4
  65. package/lib/store/mapStore/map/sagas.d.ts +13 -8
  66. package/lib/store/mapStore/map/selectors.d.ts +102 -39
  67. package/lib/store/mapStore/map/types.d.ts +35 -121
  68. package/lib/store/mapStore/map/utils.d.ts +3 -3
  69. package/lib/store/mapStore/service/index.d.ts +2 -0
  70. package/lib/store/mapStore/service/reducer.d.ts +9 -4
  71. package/lib/store/mapStore/service/selectors.d.ts +0 -7
  72. package/lib/store/mapStore/service/types.d.ts +2 -12
  73. package/lib/store/mapStore/utils/helpers.d.ts +0 -1
  74. package/lib/store/ui/index.d.ts +2 -0
  75. package/lib/store/ui/reducer.d.ts +19 -2
  76. package/lib/store/ui/selectors.d.ts +3 -8
  77. package/lib/store/ui/types.d.ts +3 -28
  78. package/lib/storybookUtils/defaultStorySettings.d.ts +2 -1
  79. package/lib/{store.d.ts → storybookUtils/store.d.ts} +0 -0
  80. package/lib/types/types.d.ts +1 -2
  81. package/lib/utils/jsonPresetFilter.d.ts +5 -0
  82. package/package.json +7 -9
  83. package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButton.d.ts +0 -9
  84. package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButton.spec.d.ts +0 -1
  85. package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.d.ts +0 -15
  86. package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.spec.d.ts +0 -1
  87. package/lib/store/advancedLayerStore/actions.d.ts +0 -15
  88. package/lib/store/advancedLayerStore/config.d.ts +0 -4
  89. package/lib/store/advancedLayerStore/constants.d.ts +0 -2
  90. package/lib/store/advancedLayerStore/reducer.d.ts +0 -14
  91. package/lib/store/advancedLayerStore/reducer.spec.d.ts +0 -1
  92. package/lib/store/advancedLayerStore/selectors.d.ts +0 -21
  93. package/lib/store/advancedLayerStore/selectors.spec.d.ts +0 -1
  94. package/lib/store/advancedLayerStore/types.d.ts +0 -30
  95. package/lib/store/generic/constants.d.ts +0 -2
  96. package/lib/store/generic/synchronizationActions/constants.d.ts +0 -3
  97. package/lib/store/generic/synchronizationGroups/actions.d.ts +0 -80
  98. package/lib/store/layerSelect/actions.d.ts +0 -26
  99. package/lib/store/layerSelect/constants.d.ts +0 -7
  100. package/lib/store/mapStore/actions.d.ts +0 -3
  101. package/lib/store/mapStore/constants.d.ts +0 -3
  102. package/lib/store/mapStore/layers/actions.d.ts +0 -134
  103. package/lib/store/mapStore/layers/constants.d.ts +0 -17
  104. package/lib/store/mapStore/map/constants.d.ts +0 -26
  105. package/lib/store/mapStore/selectors.d.ts +0 -3
  106. package/lib/store/mapStore/service/actions.d.ts +0 -15
  107. package/lib/store/mapStore/service/constants.d.ts +0 -2
  108. package/lib/store/ui/actions.d.ts +0 -43
  109. package/lib/store/ui/constants.d.ts +0 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "2.8.0",
3
+ "version": "2.12.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,32 +13,30 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "react": "^17.0.2",
16
- "@opengeoweb/theme": "2.8.0",
16
+ "@opengeoweb/theme": "2.12.0",
17
17
  "@mui/material": "^5.2.8",
18
18
  "@mui/styles": "^5.2.3",
19
- "@mui/icons-material": "^5.2.5",
20
19
  "moment": "^2.29.0",
21
20
  "react-redux": "7.2.2",
22
21
  "react-intl": "^5.17.5",
23
- "@opengeoweb/shared": "2.8.0",
22
+ "@opengeoweb/shared": "2.12.0",
24
23
  "react-draggable": "^4.4.3",
25
24
  "re-resizable": "^6.9.0",
26
25
  "lodash": "^4.17.20",
27
- "@opengeoweb/form-fields": "2.8.0",
26
+ "@opengeoweb/form-fields": "2.12.0",
28
27
  "react-hook-form": "^6.12.1",
29
28
  "moment-timezone": "^0.5.31",
30
29
  "@mui/lab": "^5.0.0-alpha.64",
31
30
  "axios": "^0.25.0",
32
- "@opengeoweb/webmap": "2.8.0",
31
+ "@opengeoweb/webmap": "2.12.0",
33
32
  "throttle-debounce": "^3.0.1",
34
33
  "proj4": "^2.6.2",
35
34
  "react-sortablejs": "^6.0.0",
35
+ "immer": "^9.0.15",
36
36
  "redux-dynamic-modules": "^5.2.0",
37
- "redux": "^4.0.4",
38
- "immer": "^9.0.6",
37
+ "@reduxjs/toolkit": "^1.8.3",
39
38
  "lodash.clonedeep": "^4.5.0",
40
39
  "@turf/turf": "^5.1.6",
41
- "reselect": "^4.1.5",
42
40
  "redux-dynamic-modules-saga": "^5.2.0",
43
41
  "redux-saga": "^1.1.3"
44
42
  }
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- export interface ResetButtonProps {
3
- isDisabled?: boolean;
4
- textAnnotation?: string;
5
- onToggleReset?: () => void;
6
- }
7
- export declare const defaultTextAnnotation = "RESET";
8
- declare const ResetButton: React.FC<ResetButtonProps>;
9
- export default ResetButton;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { mapActions } from '../../../..';
3
- import { Dimension } from '../../../../store/mapStore/types';
4
- export declare const defaultAnimationDuration = 6;
5
- export interface ResetButtonConnectProps {
6
- mapId: string;
7
- isDisabled?: boolean;
8
- textAnnotation?: string;
9
- dimensions?: Dimension[];
10
- mapStopAnimation?: typeof mapActions.mapStopAnimation;
11
- setAnimationStartTime?: typeof mapActions.setAnimationStartTime;
12
- setAnimationEndTime?: typeof mapActions.setAnimationEndTime;
13
- }
14
- declare const ResetButtonConnect: React.FC<ResetButtonConnectProps>;
15
- export default ResetButtonConnect;
@@ -1,15 +0,0 @@
1
- import { AdvancedLayerStoreActions, SetTimeResolutionPayload, SetTimeValuePayload } from './types';
2
- /**
3
- * Sets time start, end, value and resolution if passed in (timeResolution must be in seconds)
4
- *
5
- * Example: setTimeResolution ({ timeStart: momentValue, timeEnd: momentValue, timeValue: momentValue, timeResolution: 300 });
6
- * @param {object} payload object with: timeStart?: Moment, timeEnd?: Moment, timeValue?: Moment, timeResolution?: number->(in seconds);
7
- */
8
- export declare const setTimeResolution: (payload: SetTimeResolutionPayload) => AdvancedLayerStoreActions;
9
- /**
10
- * Sets time value
11
- *
12
- * Example: setTimeValue ({ timeValue: value });
13
- * @param {object} payload Object with timeValue: Moment;
14
- */
15
- export declare const setTimeValue: (payload: SetTimeValuePayload) => AdvancedLayerStoreActions;
@@ -1,4 +0,0 @@
1
- import { IModule } from 'redux-dynamic-modules';
2
- import { AdvancedLayerStoreModuleState } from './types';
3
- declare const moduleConfig: IModule<AdvancedLayerStoreModuleState>;
4
- export default moduleConfig;
@@ -1,2 +0,0 @@
1
- export declare const ADVANCED_LAYER_STORE_SET_TIMERESOLUTION = "ADVANCED_LAYER_STORE_SET_TIMERESOLUTION";
2
- export declare const ADVANCED_LAYER_STORE_SET_TIMEVALUE = "ADVANCED_LAYER_STORE_SET_TIMEVALUE";
@@ -1,14 +0,0 @@
1
- import { AdvancedLayerStoreState, AdvancedLayerStoreActions } from './types';
2
- import { LayerActions, MapActions } from '../mapStore/types';
3
- export declare const initialState: {
4
- timeResolution: number;
5
- timeStart: any;
6
- timeEnd: any;
7
- timeValue: any;
8
- };
9
- export declare const reducer: (state: {
10
- timeResolution: number;
11
- timeStart: any;
12
- timeEnd: any;
13
- timeValue: any;
14
- }, action: AdvancedLayerStoreActions | LayerActions | MapActions) => AdvancedLayerStoreState;
@@ -1 +0,0 @@
1
- export {};
@@ -1,21 +0,0 @@
1
- import { AdvancedLayerStoreState } from './types';
2
- /**
3
- * Extracts the state of the advancedLayerStore from the store
4
- *
5
- * Example: advancedLayerStore = getAdvancedLayerStore(store);
6
- * @param {object} store store: object - object from which the advancedLayerStore state will be extracted
7
- * @returns {object} returnType: object - advancedLayerStore state part of the store
8
- */
9
- export declare const getAdvancedLayerStore: ((state: {
10
- advancedLayerStore?: AdvancedLayerStoreState;
11
- syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
12
- ui?: import("../ui/types").UIStoreType;
13
- webmap?: import("../mapStore/types").WebMapState;
14
- services?: import("../mapStore/types").ServiceState;
15
- layers?: import("../mapStore/types").LayerState;
16
- layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
17
- }) => AdvancedLayerStoreState) & import("reselect").OutputSelectorFields<(args_0: AdvancedLayerStoreState) => AdvancedLayerStoreState & {
18
- clearCache: () => void;
19
- }> & {
20
- clearCache: () => void;
21
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,30 +0,0 @@
1
- import { Moment } from 'moment';
2
- import { Action } from 'redux';
3
- import { ADVANCED_LAYER_STORE_SET_TIMERESOLUTION, ADVANCED_LAYER_STORE_SET_TIMEVALUE } from './constants';
4
- export interface AdvancedLayerStoreState {
5
- timeResolution: number;
6
- timeStart: string;
7
- timeEnd: string;
8
- timeValue: string;
9
- }
10
- export interface AdvancedLayerStoreModuleState {
11
- advancedLayerStore?: AdvancedLayerStoreState;
12
- }
13
- export interface SetTimeResolutionPayload {
14
- timeStart?: Moment;
15
- timeEnd?: Moment;
16
- timeValue?: Moment;
17
- timeResolution?: number;
18
- }
19
- export interface SetTimeResolution extends Action {
20
- type: typeof ADVANCED_LAYER_STORE_SET_TIMERESOLUTION;
21
- payload: SetTimeResolutionPayload;
22
- }
23
- export interface SetTimeValuePayload {
24
- timeValue: Moment;
25
- }
26
- export interface SetTimeValue extends Action {
27
- type: typeof ADVANCED_LAYER_STORE_SET_TIMEVALUE;
28
- payload: SetTimeValuePayload;
29
- }
30
- export declare type AdvancedLayerStoreActions = SetTimeResolution | SetTimeValue;
@@ -1,2 +0,0 @@
1
- export declare const GENERIC_SETTIME = "GENERIC_SETTIME";
2
- export declare const GENERIC_SETBBOX = "GENERIC_SETBBOX";
@@ -1,3 +0,0 @@
1
- export declare const GENERIC_SYNC_SETTIME = "GENERIC_SYNC_SETTIME";
2
- export declare const GENERIC_SYNC_SETBBOX = "GENERIC_SYNC_SETBBOX";
3
- export declare const GENERIC_SYNC_SETLAYERACTIONS = "GENERIC_SYNC_SETLAYERACTIONS";
@@ -1,80 +0,0 @@
1
- import { SyncGroupAddGroupPayload, SyncGroupAddTargetPayload, SyncGroupLinkTargetPayload, SyncGroupRemoveGroupPayload, SyncGroupRemoveSourcePayload, SyncGroupRemoveTargetPayload, SyncGroupsAddSourcePayload, SynchronizationGroupActions, SyncGroupSetViewStatePayload } from './types';
2
- /**
3
- * Add a source component to the sources list.
4
- *
5
- * @param payload: SyncGroupsAddSourcePayload;
6
- * {
7
- * id: string; // The id of the source ;
8
- * type: SyncType[]; // The types of this source
9
- * defaultPayload?: GenericActionPayload; // Optional default value of this source
10
- * }
11
- */
12
- export declare const syncGroupAddSource: (payload: SyncGroupsAddSourcePayload) => SynchronizationGroupActions;
13
- /**
14
- * Remove a source from the sources list. Besides removing it from the sources list, the reducer will also remove the source from the synchronization groups.
15
- *
16
- * @param payload SyncGroupRemoveSourcePayload;
17
- * {
18
- * id: string; // The source id to remove
19
- * }
20
- */
21
- export declare const syncGroupRemoveSource: (payload: SyncGroupRemoveSourcePayload) => SynchronizationGroupActions;
22
- /**
23
- * Add a target (which should be in the sources list) to this synchronization group.
24
- * The source will get the value set according to the other targets in the group. T
25
- * The value is set via a secondary action (via saga's) to allow the other reducers (not part of SyncGroups) to process the new value
26
- *
27
- * @param payload: SyncGroupAddTargetPayload;
28
- * {
29
- * id: string; // SyncGroup Id to add the target to.
30
- * targetId: string; // TargetId of the target
31
- * linked?: boolean; // Whether it should be linked to the group or not, if not set it is always linked (true)
32
- * }
33
- */
34
- export declare const syncGroupAddTarget: (payload: SyncGroupAddTargetPayload) => SynchronizationGroupActions;
35
- /**
36
- * Remove a target from the group
37
- * @param payload: SyncGroupRemoveTargetPayload;
38
- * {
39
- * id: string; // SyncGroup Id to remove target from;
40
- * targetId: string; // Target id to remove
41
- * }
42
- */
43
- export declare const syncGroupRemoveTarget: (payload: SyncGroupRemoveTargetPayload) => SynchronizationGroupActions;
44
- /**
45
- * Toggle linking of a target in this group.
46
- * When linking is set to enabled, the value of the group is given to this target via an extra action (via saga's)
47
- *
48
- * @param payload: SyncGroupLinkTargetPayload;
49
- * {
50
- * linked: boolean; // Target is linked or not in this group
51
- * id: string; // SyncGroup Id
52
- * targetId: string; // The targetId to set linked for
53
- * }
54
- */
55
- export declare const syncGroupLinkTarget: (payload: SyncGroupLinkTargetPayload) => SynchronizationGroupActions;
56
- /**
57
- * Add a synchronization group
58
- *
59
- * @param payload: syncGroupAddGroupPayload;
60
- * {
61
- * id: string; // Syncgroup id
62
- * title: string; // Title for sync group
63
- * type: SyncType[]; // SyncGroup type
64
- * }
65
- */
66
- export declare const syncGroupAddGroup: (payload: SyncGroupAddGroupPayload) => SynchronizationGroupActions;
67
- /**
68
- * Remove a synchronization group
69
- *
70
- * @param payload: syncGroupRemoveGroupPayload;
71
- * {
72
- * id: string; // Syncgroup id
73
- * }
74
- */
75
- export declare const syncGroupRemoveGroup: (payload: SyncGroupRemoveGroupPayload) => SynchronizationGroupActions;
76
- /**
77
- * Clear syncGroups
78
- */
79
- export declare const syncGroupClear: () => SynchronizationGroupActions;
80
- export declare const syncGroupSetViewState: (payload: SyncGroupSetViewStatePayload) => SynchronizationGroupActions;
@@ -1,26 +0,0 @@
1
- import { LayerSelectActions, SetSearchFilterPayload, DisableActiveServicePayload, EnableActiveServicePayload, AddKeywordsAndActiveServicesPayload, LayerSelectServiceRemovedPayload, ToggleKeywordsPayload, EnableOnlyOneKeywordPayload } from './types';
2
- /**
3
- * Sets the given text to the searchFilter
4
- *
5
- * Example: setSearchFilter({ filterText: 'hello world' })
6
- * @param {string} payload { filterText: string }
7
- */
8
- export declare const setSearchFilter: (payload: SetSearchFilterPayload) => LayerSelectActions;
9
- /**
10
- * Activates given service in the activeServices array
11
- *
12
- * Example: enableActiveService({ serviceId: 'service-1' })
13
- * @param {string} payload { serviceId: string }
14
- */
15
- export declare const enableActiveService: (payload: EnableActiveServicePayload) => LayerSelectActions;
16
- /**
17
- * Disables given service in the activeServices array
18
- *
19
- * Example: disableActiveService({ serviceId: 'service-1' })
20
- * @param {string} payload { serviceId: string }
21
- */
22
- export declare const disableActiveService: (payload: DisableActiveServicePayload) => LayerSelectActions;
23
- export declare const addKeywordsAndActiveServices: (payload: AddKeywordsAndActiveServicesPayload) => LayerSelectActions;
24
- export declare const layerSelectServiceRemoved: (payload: LayerSelectServiceRemovedPayload) => LayerSelectActions;
25
- export declare const toggleKeywords: (payload: ToggleKeywordsPayload) => LayerSelectActions;
26
- export declare const enableOnlyOneKeyword: (payload: EnableOnlyOneKeywordPayload) => LayerSelectActions;
@@ -1,7 +0,0 @@
1
- export declare const LAYER_SELECT_SET_SEARCH_FILTER = "LAYER_SELECT_SET_SEARCH_FILTER";
2
- export declare const LAYER_SELECT_DISABLE_ACTIVE_SERVICE = "LAYER_SELECT_DISABLE_ACTIVE_SERVICE";
3
- export declare const LAYER_SELECT_ENABLE_ACTIVE_SERVICE = "LAYER_SELECT_ENABLE_ACTIVE_SERVICE";
4
- export declare const LAYER_SELECT_ADD_KEYWORDS_AND_ACTIVE_SERVICES = "LAYER_SELECT_ADD_KEYWORDS_AND_ACTIVE_SERVICES";
5
- export declare const LAYER_SELECT_SERVICE_REMOVED = "LAYER_SELECT_SERVICE_REMOVED";
6
- export declare const LAYER_SELECT_TOGGLE_KEYWORDS = "LAYER_SELECT_TOGGLE_KEYWORDS";
7
- export declare const LAYER_SELECT_ENABLE_ONLY_ONE_KEYWORD = "LAYER_SELECT_ENABLE_ONLY_ONE_KEYWORD";
@@ -1,3 +0,0 @@
1
- export * from './map/actions';
2
- export * from './layers/actions';
3
- export * from './service/actions';
@@ -1,3 +0,0 @@
1
- export * from './map/constants';
2
- export * from './layers/constants';
3
- export * from './service/constants';
@@ -1,134 +0,0 @@
1
- import { SetLayerOpacityPayload, SetLayerEnabledPayload, SetLayerDimensionPayload, SetLayerNamePayload, SetLayerStylePayload, LayerActions, AddLayerPayload, DeleteLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, ErrorLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetLayerDimensionsPayload, UpdateLayerInfoPayload, SetLayerGeojsonPayload } from './types';
2
- /**
3
- * Set the layers for a map. Erases all previous layers.
4
- * The following action types are triggered after the getCapabilities are parsed:
5
- * - serviceSetLayers
6
- * - layerSetStyles
7
- * - layerChangeStyle
8
- * - layerChangeDimension
9
- *
10
- * Example: setLayers ({layers: someLayerObjectArray, mapId: 'mapId1'});
11
- * @param {object} payload Object containing the mapId: string and layers: Layer[] properties
12
- */
13
- export declare const setLayers: (payload: SetLayersPayload) => LayerActions;
14
- /**
15
- * Set the baselayers and overlayers for a map. Erases all previous baselayers and overlayers if one of these types is passed.
16
- * Ensure the passed layers have a layertype baseLayer or overLayer otherwise they'll be ignored
17
- * The following action types are triggered after the getCapabilities are parsed:
18
- * - serviceSetLayers
19
- * - layerSetStyles
20
- * - layerChangeStyle
21
- * - layerChangeDimension
22
- *
23
- * Example: setBaseLayers({layers: someLayerObjectArray, mapId:'mapId1'})
24
- * @param {object} payload Object with layers: Layer[] and mapId: string.
25
- */
26
- export declare const setBaseLayers: (payload: SetBaseLayersPayload) => LayerActions;
27
- /**
28
- * Add a single baselayer or overlayer to a map. Keeps all previous baselayers or overlayers.
29
- * Ensure the passed layers have a layertype baseLayer or overLayer otherwise nothing will be added
30
- *
31
- * Example: setBaseLayers({layerId: 'layerId', layer: someLayerObject, mapId:'mapId1'})
32
- * @param {object} payload Object with a layer, layerId and mapId
33
- */
34
- export declare const addBaseLayer: (payload: AddBaseLayerPayload) => LayerActions;
35
- /**
36
- * Add a single layer to a map. Keeps all previous layers.
37
- * The following action types are triggered after the getCapabilities are parsed:
38
- * - serviceSetLayers
39
- * - layerSetStyles
40
- * - layerChangeStyle
41
- * - layerChangeDimension
42
- *
43
- * Example: addLayer ({layerId: 'someLayerId', layer: someLayerObject, mapId:'mapId1'});
44
- * @param {object} payload Object with a layer, layerId and mapId
45
- */
46
- export declare const addLayer: (payload: AddLayerPayload) => LayerActions;
47
- /**
48
- * Sets opacity for a layer in the map
49
- *
50
- * Example: layerChangeOpacity ({layerId: 'layerid1', opacity: 0.5});
51
- * @param {object} payload Object with a layerId and opacity (between 0.0 and 1.0) property.
52
- */
53
- export declare const layerChangeOpacity: (payload: SetLayerOpacityPayload) => LayerActions;
54
- /**
55
- * Shows or hide a layer in the map.
56
- *
57
- * Example: layerChangeEnabled ({layerId: 'layerid1', enabled: false});
58
- * @param {object} payload Object with a layerId and enabled property.
59
- */
60
- export declare const layerChangeEnabled: (payload: SetLayerEnabledPayload) => LayerActions;
61
- /**
62
- * Changes the dimension of a layer. Can be used to change the time. The map will follow (if linking is set) accordingly.
63
- *
64
- * Example: layerChangeDimension( {layerId: 'layerId1', dimension: dimensionObject } )
65
- * @param {object} payload Object with layerId: string, dimension: Dimension, origin?: string, service?: string
66
- */
67
- export declare const layerChangeDimension: (payload: SetLayerDimensionPayload) => LayerActions;
68
- /**
69
- * Changes the dimensions of a layer. Can be used to change the time.
70
- *
71
- * Example: layerSetDimensions( {layerId: 'layerId1', dimensions: [dimensionObject] } )
72
- * @param {object} payload Object with layerId: string, dimensions: [Dimension], origin?: string
73
- */
74
- export declare const layerSetDimensions: (payload: SetLayerDimensionsPayload) => LayerActions;
75
- /**
76
- * Changes the name of the layer
77
- *
78
- * Example: layerChangeName( { layerId: 'layerId1', name: 'NewLayerName' } )
79
- * @param {object} payload Object with a layerId: string, name: string, origin?: string
80
- */
81
- export declare const layerChangeName: (payload: SetLayerNamePayload) => LayerActions;
82
- /**
83
- * Changes the style of a layer
84
- *
85
- * Example: layerChangeStyle({ layerId: 'layerId1', style: 'SomeStyle' })
86
- * @param {object} payload Object with a layerId: string, style: string, origin?: string, service?: string;
87
- */
88
- export declare const layerChangeStyle: (payload: SetLayerStylePayload) => LayerActions;
89
- /**
90
- * Changes the geojson of a layer
91
- *
92
- * Example: layerChangeGeojson({ layerId: 'layerId1', geojson: geojson })
93
- * @param {object} payload Object with a layerId: string, geojson: FeatureCollection;
94
- */
95
- export declare const layerChangeGeojson: (payload: SetLayerGeojsonPayload) => LayerActions;
96
- /**
97
- * Deletes a layer
98
- *
99
- * Example: layerDelete({ mapId: 'mapI1', layerId: 'layerId1' })
100
- * @param {object} payload Object with a mapId: string, layerId: string, origin?: string
101
- */
102
- export declare const layerDelete: (payload: DeleteLayerPayload) => LayerActions;
103
- /**
104
- * Deletes a baselayer or an overlayer
105
- * Ensure the passed in layer type is an overLayer or a baseLayer otherwise nothing gets deleted
106
- *
107
- * Example: baseLayerDelete({ mapId: 'mapI1', layerId: 'layerId1' })
108
- * @param {object} payload Object with a mapId: string, layerId: string, origin?: string
109
- */
110
- export declare const baseLayerDelete: (payload: DeleteLayerPayload) => LayerActions;
111
- /**
112
- * Handles layer error
113
- *
114
- * Example: layerError({ layerId: 'layer-1', error: new Error() })
115
- * @param {object} payload Object with a layerId: string, error: Error
116
- */
117
- export declare const layerError: (payload: ErrorLayerPayload) => LayerActions;
118
- /**
119
- * Add a single baselayer available to be selected
120
- * Ensure the passed layers have a layertype baseLayer and a mapId otherwise nothing will be added
121
- *
122
- * Example: addAvailableBaseLayer({layer: someLayerObject})
123
- * @param {object} payload Object with a layer
124
- */
125
- export declare const addAvailableBaseLayer: (payload: AddAvailableBaseLayerPayload) => LayerActions;
126
- /**
127
- * Add multiple baselayers available to be selected
128
- * Ensure the passed layers have a layertype baseLayer and a mapId otherwise nothing will be added
129
- *
130
- * Example: addAvailableBaseLayers({layers: [someLayerObject, secondLayerObject]})
131
- * @param {object} payload Object with a layer
132
- */
133
- export declare const addAvailableBaseLayers: (payload: AddAvailableBaseLayersPayload) => LayerActions;
134
- export declare const onUpdateLayerInformation: (payload: UpdateLayerInfoPayload) => LayerActions;
@@ -1,17 +0,0 @@
1
- export declare const WEBMAP_LAYER_CHANGE_OPACITY = "WEBMAP_LAYER_CHANGE_OPACITY";
2
- export declare const WEBMAP_LAYER_CHANGE_NAME = "WEBMAP_LAYER_CHANGE_NAME";
3
- export declare const WEBMAP_LAYER_CHANGE_STYLE = "WEBMAP_LAYER_CHANGE_STYLE";
4
- export declare const WEBMAP_LAYER_CHANGE_DIMENSION = "WEBMAP_LAYER_CHANGE_DIMENSION";
5
- export declare const WEBMAP_LAYER_CHANGE_GEOJSON = "WEBMAP_LAYER_CHANGE_GEOJSON";
6
- export declare const WEBMAP_LAYER_SET_DIMENSIONS = "WEBMAP_LAYER_SET_DIMENSIONS";
7
- export declare const WEBMAP_LAYER_CHANGE_ENABLED = "WEBMAP_LAYER_CHANGE_ENABLED";
8
- export declare const WEBMAP_LAYER_DELETE = "WEBMAP_LAYER_DELETE";
9
- export declare const WEBMAP_LAYER_ERROR = "WEBMAP_LAYER_ERROR";
10
- export declare const WEBMAP_BASELAYER_DELETE = "WEBMAP_BASELAYER_DELETE";
11
- export declare const WEBMAP_ADD_LAYER = "WEBMAP_ADD_LAYER";
12
- export declare const WEBMAP_SET_LAYERS = "WEBMAP_SET_LAYERS";
13
- export declare const WEBMAP_SET_BASELAYERS = "WEBMAP_SET_BASELAYERS";
14
- export declare const WEBMAP_ADD_BASELAYER = "WEBMAP_ADD_BASELAYER";
15
- export declare const WEBMAP_ADD_AVAILABLE_BASELAYER = "WEBMAP_ADD_AVAILABLE_BASELAYER";
16
- export declare const WEBMAP_ADD_AVAILABLE_BASELAYERS = "WEBMAP_ADD_AVAILABLE_BASELAYERS";
17
- export declare const WEBMAP_UPDATE_LAYER_INFO = "WEBMAP_UPDATE_LAYER_INFO";
@@ -1,26 +0,0 @@
1
- export declare const WEBMAP_REGISTER_MAP = "WEBMAP_REGISTER_MAP";
2
- export declare const WEBMAP_UNREGISTER_MAP = "WEBMAP_UNREGISTER_MAP";
3
- export declare const WEBMAP_LAYER_MOVE = "WEBMAP_LAYER_MOVE";
4
- export declare const WEBMAP_MAP_UPDATE_ALL_DIMENSIONS = "WEBMAP_MAP_UPDATE_ALL_DIMENSIONS";
5
- export declare const WEBMAP_MAP_CHANGE_DIMENSION = "WEBMAP_MAP_CHANGE_DIMENSION";
6
- export declare const WEBMAP_START_ANIMATION = "WEBMAP_START_ANIMATION";
7
- export declare const WEBMAP_STOP_ANIMATION = "WEBMAP_STOP_ANIMATION";
8
- export declare const WEBMAP_SET_BBOX = "WEBMAP_SET_BBOX";
9
- export declare const WEBMAP_SET_ACTIVELAYERID = "WEBMAP_SET_ACTIVELAYERID";
10
- export declare const WEBMAP_TOGGLE_AUTO_UPDATE = "WEBMAP_TOGGLE_AUTO_UPDATE";
11
- export declare const WEBMAP_TOGGLE_LOOP = "WEBMAP_TOGGLE_LOOP";
12
- export declare const WEBMAP_SET_TIME_SLIDER_SCALE = "WEBMAP_SET_TIME_SLIDER_SCALE";
13
- export declare const WEBMAP_SET_TIME_STEP = "WEBMAP_SET_TIME_STEP";
14
- export declare const WEBMAP_SET_ANIMATION_DELAY = "WEBMAP_SET_ANIMATION_DELAY";
15
- export declare const WEBMAP_SET_ANIMATION_START_TIME = "WEBMAP_SET_ANIMATION_START_TIME";
16
- export declare const WEBMAP_SET_ANIMATION_END_TIME = "WEBMAP_SET_ANIMATION_END_TIME";
17
- export declare const WEBMAP_TOGGLE_TIMESTEP_AUTO = "WEBMAP_TOGGLE_TIMESTEP_AUTO";
18
- export declare const WEBMAP_TOGGLE_TIME_SLIDER_HOVER = "WEBMAP_TOGGLE_TIME_SLIDER_HOVER";
19
- export declare const WEBMAP_SET_TIME_SLIDER_CENTER_TIME = "WEBMAP_SET_TIME_SLIDER_CENTER_TIME";
20
- export declare const WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX = "WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX";
21
- export declare const WEBMAP_SET_TIME_SLIDER_DATA_SCALE_TO_SECONDS_PER_PX = "WEBMAP_SET_TIME_SLIDER_DATA_SCALE_TO_SECONDS_PER_PX";
22
- export declare const WEBMAP_SET_PIN = "WEBMAP_SET_PIN";
23
- export declare const WEBMAP_DISABLE_PIN = "WEBMAP_DISABLE_PIN";
24
- export declare const WEBMAP_SET_SELECTED_FEATURE_INDEX = "WEBMAP_SET_SELECTED_FEATURE_INDEX";
25
- export declare const WEBMAP_SET_MAPPRESET = "WEBMAP_SET_MAPPRESET";
26
- export declare const WEBMAP_SET_ACTIVE_MAPPRESET_ID = "WEBMAP_SET_ACTIVE_MAPPRESET_ID";
@@ -1,3 +0,0 @@
1
- export * from './map/selectors';
2
- export * from './layers/selectors';
3
- export * from './service/selectors';
@@ -1,15 +0,0 @@
1
- import { ServiceActions, SetLayersForServicePayload, MapStoreRemoveServicePayload } from './types';
2
- /**
3
- * Action serviceSetLayers is used automatically after calling the setLayers action. Contents is based on WMS GetCapabilities
4
- *
5
- * Example: serviceSetLayers({service: someService, layers: serviceLayerArray})
6
- * @param {object} payload consisting of service: string, layers: ServiceLayer[]
7
- */
8
- export declare const serviceSetLayers: (payload: SetLayersForServicePayload) => ServiceActions;
9
- /**
10
- * Action mapStoreRemoveService is used in ServiceOptionsDialogConnect after clicking the remove button. Action layerSelectServiceRemoved is used automatically after calling the mapStoreRemoveService action
11
- *
12
- * Example: mapStoreRemoveService({serviceUrl: someService})
13
- * @param {object} payload consisting of serviceUrl: string
14
- */
15
- export declare const mapStoreRemoveService: (payload: MapStoreRemoveServicePayload) => ServiceActions;
@@ -1,2 +0,0 @@
1
- export declare const MAP_SERVICES_SET_LAYERS = "MAP_SERVICES_SET_LAYERS";
2
- export declare const MAP_SERVICES_REMOVE_SERVICE = "MAP_SERVICES_REMOVE_SERVICE";
@@ -1,43 +0,0 @@
1
- import { SetActiveMapIdForDialogPayload, SetActiveWindowIdPayload, UIActions, UIOrderDialogPayload, UIRegisterDialogPayload, UIToggleDialogPayload, UIUnRegisterDialogPayload } from './types';
2
- /**
3
- * Registers the dialog in the store and creates the dialog state
4
- *
5
- * Example: registerDialog({'dialogId1', type: 'legend}) you can optionally specify the activeMapId, whether the dialog is open and the souce ('app' or 'module', default is 'app')
6
- * @param {string} payload {type: 'legend' | 'layerManager' | 'dimensionSelect-elevation', activeMapId?: string, setOpen?: boolean, source?: Source}
7
- */
8
- export declare const registerDialog: (payload: UIRegisterDialogPayload) => UIActions;
9
- /**
10
- * Deletes the dialog from the store (from both allIds and byId)
11
- *
12
- * Example: unregisterDialog({type: 'legend'})
13
- * @param {string} payload {type: 'legend' | 'layerManager' | 'dimensionSelect-elevation'}
14
- */
15
- export declare const unregisterDialog: (payload: UIUnRegisterDialogPayload) => UIActions;
16
- /**
17
- * Sets the active map id for a dialogtype
18
- *
19
- * Example: setActiveMapIdForDialog({ activeMapId: 'mapId1', type: 'legend'})
20
- * @param {object} payload object with activeMapId: string, type: 'legend' | 'layerManager' | 'dimensionSelect-elevation'
21
- */
22
- export declare const setActiveMapIdForDialog: (payload: SetActiveMapIdForDialogPayload) => UIActions;
23
- /**
24
- * Toggles the open state to the boolean you pass in
25
- *
26
- * Example: setToggleOpenDialog({ type: 'legend', setOpen: true})
27
- * @param {object} payload object with type: 'legend' | 'layerManager' | 'dimensionSelect-elevation', setOpen: boolean (new state of dialog)
28
- */
29
- export declare const setToggleOpenDialog: (payload: UIToggleDialogPayload) => UIActions;
30
- /**
31
- * Orders UI element to top
32
- *
33
- * Example: orderDialog({ type: 'legend'})
34
- * @param {object} payload object with type: 'legend' | 'layerManager' | 'dimensionSelect-elevation'
35
- */
36
- export declare const orderDialog: (payload: UIOrderDialogPayload) => UIActions;
37
- /**
38
- * Sets which window should receive keyboard shortcuts
39
- *
40
- * Example: setActiveWindowId({ activeMapId: 'activeWindowId'})
41
- * @param {string} activeWindowId the windowId to receive keyboard shortcuts
42
- */
43
- export declare const setActiveWindowId: (payload: SetActiveWindowIdPayload) => UIActions;
@@ -1,6 +0,0 @@
1
- export declare const UI_SET_ACTIVE_MAPID_FOR_DIALOG = "UI_SET_ACTIVE_MAPID_FOR_DIALOG";
2
- export declare const UI_REGISTER_DIALOG = "UI_REGISTER_DIALOG";
3
- export declare const UI_UNREGISTER_DIALOG = "UI_UNREGISTER_DIALOG";
4
- export declare const UI_TOGGLE_DIALOG = "UI_TOGGLE_DIALOG";
5
- export declare const UI_ORDER_DIALOG = "UI_ORDER_DIALOG";
6
- export declare const UI_SET_ACTIVE_WINDOW_ID = "UI_SET_ACTIVE_WINDOW_ID";