@opengeoweb/core 2.9.0 → 2.13.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 (77) hide show
  1. package/index.esm.js +11079 -11693
  2. package/index.umd.js +8694 -9271
  3. package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +1 -1
  4. package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +1 -2
  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/LayerListRow.d.ts +2 -1
  17. package/lib/components/Legend/LegendConnect.d.ts +1 -0
  18. package/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +2 -2
  19. package/lib/components/MapView/MapViewConnect.MapPin.stories.d.ts +1 -0
  20. package/lib/components/MapView/MapViewConnect.d.ts +0 -2
  21. package/lib/components/Providers/Providers.d.ts +1 -1
  22. package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +1 -1
  23. package/lib/components/ReactMapView/ReactMapViewParseLayer.spec.d.ts +1 -0
  24. package/lib/components/TimeSlider/TimeSlider.d.ts +2 -0
  25. package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +1 -1
  26. package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButtonConnect.d.ts +1 -1
  27. package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +2 -2
  28. package/lib/components/TimeSlider/TimeSliderUtils.d.ts +2 -0
  29. package/lib/index.d.ts +61 -10
  30. package/lib/store/generic/index.d.ts +14 -2
  31. package/lib/store/generic/sagas.d.ts +7 -7
  32. package/lib/store/generic/synchronizationGroups/types.d.ts +7 -0
  33. package/lib/store/generic/synchronizationGroups/utils.d.ts +0 -5
  34. package/lib/store/generic/types.d.ts +3 -1
  35. package/lib/store/index.d.ts +4 -0
  36. package/lib/store/layerSelect/index.d.ts +2 -0
  37. package/lib/store/layerSelect/reducer.d.ts +12 -2
  38. package/lib/store/layerSelect/sagas.d.ts +3 -3
  39. package/lib/store/layerSelect/types.d.ts +0 -31
  40. package/lib/store/mapStore/index.d.ts +3 -0
  41. package/lib/store/mapStore/layers/index.d.ts +2 -0
  42. package/lib/store/mapStore/layers/reducer.d.ts +42 -4
  43. package/lib/store/mapStore/layers/types.d.ts +24 -72
  44. package/lib/store/mapStore/map/actions.d.ts +8 -0
  45. package/lib/store/mapStore/map/index.d.ts +2 -0
  46. package/lib/store/mapStore/map/reducer.d.ts +84 -12
  47. package/lib/store/mapStore/map/sagas.d.ts +10 -4
  48. package/lib/store/mapStore/map/selectors.d.ts +200 -39
  49. package/lib/store/mapStore/map/types.d.ts +51 -11
  50. package/lib/store/mapStore/map/utils.d.ts +5 -3
  51. package/lib/store/mapStore/service/index.d.ts +2 -0
  52. package/lib/store/mapStore/service/reducer.d.ts +9 -4
  53. package/lib/store/mapStore/service/types.d.ts +0 -12
  54. package/lib/store/mapStore/utils/helpers.d.ts +0 -1
  55. package/lib/store/ui/index.d.ts +2 -0
  56. package/lib/store/ui/reducer.d.ts +19 -2
  57. package/lib/store/ui/selectors.d.ts +7 -6
  58. package/lib/store/ui/types.d.ts +6 -29
  59. package/lib/storybookUtils/defaultStorySettings.d.ts +2 -1
  60. package/lib/{store.d.ts → storybookUtils/store.d.ts} +0 -0
  61. package/lib/utils/jsonPresetFilter.d.ts +1 -0
  62. package/package.json +6 -9
  63. package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButton.d.ts +0 -9
  64. package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButton.spec.d.ts +0 -1
  65. package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.d.ts +0 -15
  66. package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.spec.d.ts +0 -1
  67. package/lib/store/layerSelect/actions.d.ts +0 -26
  68. package/lib/store/layerSelect/constants.d.ts +0 -7
  69. package/lib/store/mapStore/actions.d.ts +0 -3
  70. package/lib/store/mapStore/constants.d.ts +0 -2
  71. package/lib/store/mapStore/layers/actions.d.ts +0 -134
  72. package/lib/store/mapStore/layers/constants.d.ts +0 -17
  73. package/lib/store/mapStore/selectors.d.ts +0 -3
  74. package/lib/store/mapStore/service/actions.d.ts +0 -15
  75. package/lib/store/mapStore/service/constants.d.ts +0 -2
  76. package/lib/store/ui/actions.d.ts +0 -43
  77. package/lib/store/ui/constants.d.ts +0 -6
@@ -0,0 +1,2 @@
1
+ export { serviceActions } from './reducer';
2
+ export * as serviceSelectors from './selectors';
@@ -1,5 +1,10 @@
1
- import { ServiceActions } from '../types';
2
- import { ServiceState } from './types';
1
+ import { PayloadAction } from '@reduxjs/toolkit';
2
+ import { MapStoreRemoveServicePayload, ServiceState, SetLayersForServicePayload } from './types';
3
+ import { layerActions } from '../layers/reducer';
3
4
  export declare const initialState: ServiceState;
4
- export declare const WEBMAPJS_REDUCERNAME = "react-webmapjs";
5
- export declare const reducer: (state: ServiceState, action: ServiceActions) => ServiceState;
5
+ export declare const reducer: import("@reduxjs/toolkit").Reducer<ServiceState, import("@reduxjs/toolkit").AnyAction>;
6
+ export declare const serviceActions: import("@reduxjs/toolkit").CaseReducerActions<{
7
+ serviceSetLayers: (draft: import("immer/dist/internal").WritableDraft<ServiceState>, action: PayloadAction<SetLayersForServicePayload>) => void;
8
+ mapStoreRemoveService: (draft: import("immer/dist/internal").WritableDraft<ServiceState>, action: PayloadAction<MapStoreRemoveServicePayload>) => void;
9
+ }>;
10
+ export declare type ServiceActions = ReturnType<typeof serviceActions.mapStoreRemoveService> | ReturnType<typeof serviceActions.serviceSetLayers> | ReturnType<typeof layerActions.onUpdateLayerInformation>;
@@ -1,7 +1,4 @@
1
1
  import { Style } from '@opengeoweb/webmap';
2
- import { Action } from 'redux';
3
- import type { UpdateLayerInfo } from '../types';
4
- import { MAP_SERVICES_SET_LAYERS, MAP_SERVICES_REMOVE_SERVICE } from './constants';
5
2
  export interface Services {
6
3
  [key: string]: ReduxService;
7
4
  }
@@ -34,16 +31,7 @@ export interface SetLayersForServicePayload {
34
31
  layers: ServiceLayer[];
35
32
  isUserAddedService: boolean;
36
33
  }
37
- export interface SetLayersForService extends Action {
38
- type: typeof MAP_SERVICES_SET_LAYERS;
39
- payload: SetLayersForServicePayload;
40
- }
41
34
  export interface MapStoreRemoveServicePayload {
42
35
  id: string;
43
36
  serviceUrl: string;
44
37
  }
45
- export interface MapStoreRemoveService extends Action {
46
- type: typeof MAP_SERVICES_REMOVE_SERVICE;
47
- payload: MapStoreRemoveServicePayload;
48
- }
49
- export declare type ServiceActions = SetLayersForService | UpdateLayerInfo | MapStoreRemoveService;
@@ -4,7 +4,6 @@ export declare const dateFormat = "YYYY-MM-DDTHH:mm:ss[Z]";
4
4
  export declare const generateLayerId: () => string;
5
5
  export declare const generateMapId: () => string;
6
6
  export declare const generateTimesliderId: () => string;
7
- export declare const generateTimeSeriesId: () => string;
8
7
  /**
9
8
  * Registers a WMJSLayer in a lookuptable with a layerId
10
9
  * @param {WMLayer} wmLayer
@@ -0,0 +1,2 @@
1
+ export { uiActions } from './reducer';
2
+ export * as uiSelectors from './selectors';
@@ -1,4 +1,5 @@
1
- import { DialogType, Source, UIActions, UIStoreType, UIType } from './types';
1
+ import { PayloadAction } from '@reduxjs/toolkit';
2
+ import { DialogType, SetActiveMapIdForDialogPayload, SetActiveWindowIdPayload, Source, UIOrderDialogPayload, UIRegisterDialogPayload, UIStoreType, UIToggleDialogPayload, UIType, UIUnRegisterDialogPayload } from './types';
2
3
  interface CreateUIDialogElementProps {
3
4
  activeMapId: string;
4
5
  type: DialogType;
@@ -8,5 +9,21 @@ interface CreateUIDialogElementProps {
8
9
  export declare const moveToTop: <Type>(list: Type[], element: Type) => Type[];
9
10
  export declare const createUIDialogElement: ({ activeMapId, type, setOpen, source, }: CreateUIDialogElementProps) => UIType;
10
11
  export declare const initialState: UIStoreType;
11
- export declare const reducer: (state: UIStoreType, action: UIActions) => UIStoreType;
12
+ export declare const slice: import("@reduxjs/toolkit").Slice<UIStoreType, {
13
+ registerDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
14
+ unregisterDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
15
+ setActiveMapIdForDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
16
+ setToggleOpenDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
17
+ orderDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
18
+ setActiveWindowId: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
19
+ }, "uiReducer">;
20
+ export declare const reducer: import("@reduxjs/toolkit").Reducer<UIStoreType, import("@reduxjs/toolkit").AnyAction>;
21
+ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
22
+ registerDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
23
+ unregisterDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
24
+ setActiveMapIdForDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
25
+ setToggleOpenDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
26
+ orderDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
27
+ setActiveWindowId: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
28
+ }>;
12
29
  export {};
@@ -1,5 +1,6 @@
1
1
  import { AppStore } from '../../types/types';
2
- import { UIType } from './types';
2
+ import { UIStoreType, UIType } from './types';
3
+ export declare const getUiStore: (store: AppStore) => UIStoreType;
3
4
  /**
4
5
  * Gets the active map Id and wether a dialog is open or closed
5
6
  *
@@ -18,7 +19,7 @@ export declare const getDialogDetailsByType: (store: AppStore, dialogType: strin
18
19
  */
19
20
  export declare const getisDialogOpen: ((state: {
20
21
  syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
21
- ui?: import("./types").UIStoreType;
22
+ ui?: UIStoreType;
22
23
  webmap?: import("../mapStore/types").WebMapState;
23
24
  services?: import("../mapStore/types").ServiceState;
24
25
  layers?: import("../mapStore/types").LayerState;
@@ -37,7 +38,7 @@ export declare const getisDialogOpen: ((state: {
37
38
  */
38
39
  export declare const getDialogMapId: ((state: {
39
40
  syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
40
- ui?: import("./types").UIStoreType;
41
+ ui?: UIStoreType;
41
42
  webmap?: import("../mapStore/types").WebMapState;
42
43
  services?: import("../mapStore/types").ServiceState;
43
44
  layers?: import("../mapStore/types").LayerState;
@@ -56,7 +57,7 @@ export declare const getDialogMapId: ((state: {
56
57
  */
57
58
  export declare const getDialogOrder: ((state: {
58
59
  syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
59
- ui?: import("./types").UIStoreType;
60
+ ui?: UIStoreType;
60
61
  webmap?: import("../mapStore/types").WebMapState;
61
62
  services?: import("../mapStore/types").ServiceState;
62
63
  layers?: import("../mapStore/types").LayerState;
@@ -75,7 +76,7 @@ export declare const getDialogOrder: ((state: {
75
76
  */
76
77
  export declare const getDialogIsOrderedOnTop: ((state: {
77
78
  syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
78
- ui?: import("./types").UIStoreType;
79
+ ui?: UIStoreType;
79
80
  webmap?: import("../mapStore/types").WebMapState;
80
81
  services?: import("../mapStore/types").ServiceState;
81
82
  layers?: import("../mapStore/types").LayerState;
@@ -87,7 +88,7 @@ export declare const getDialogIsOrderedOnTop: ((state: {
87
88
  };
88
89
  export declare const getDialogSource: ((state: {
89
90
  syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
90
- ui?: import("./types").UIStoreType;
91
+ ui?: UIStoreType;
91
92
  webmap?: import("../mapStore/types").WebMapState;
92
93
  services?: import("../mapStore/types").ServiceState;
93
94
  layers?: import("../mapStore/types").LayerState;
@@ -1,5 +1,4 @@
1
- import { Action } from 'redux';
2
- import { UI_SET_ACTIVE_MAPID_FOR_DIALOG, UI_REGISTER_DIALOG, UI_TOGGLE_DIALOG, UI_UNREGISTER_DIALOG, UI_ORDER_DIALOG, UI_SET_ACTIVE_WINDOW_ID } from './constants';
1
+ import { MapActionOrigin } from '../mapStore/types';
3
2
  declare type LegendDialogType = string;
4
3
  export declare type DialogType = 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'timeSeriesSelect' | 'syncGroups' | LegendDialogType;
5
4
  export declare type Source = 'app' | 'module';
@@ -19,52 +18,30 @@ export interface UIModuleState {
19
18
  }
20
19
  export interface SetActiveMapIdForDialogPayload {
21
20
  type: DialogType;
22
- activeMapId: string;
21
+ mapId: string;
23
22
  setOpen?: boolean;
24
23
  source?: Source;
25
- }
26
- export interface SetActiveMapIdForDialog extends Action {
27
- type: typeof UI_SET_ACTIVE_MAPID_FOR_DIALOG;
28
- payload: SetActiveMapIdForDialogPayload;
24
+ origin?: MapActionOrigin.map;
29
25
  }
30
26
  export interface UIRegisterDialogPayload {
31
27
  type: DialogType;
32
- activeMapId?: string;
28
+ mapId?: string;
33
29
  setOpen?: boolean;
34
30
  source?: Source;
35
31
  }
36
- export interface UIRegisterDialog extends Action {
37
- type: typeof UI_REGISTER_DIALOG;
38
- payload: UIRegisterDialogPayload;
39
- }
40
32
  export interface UIUnRegisterDialogPayload {
41
33
  type: DialogType;
42
34
  }
43
- export interface UIUnRegisterDialog extends Action {
44
- type: typeof UI_UNREGISTER_DIALOG;
45
- payload: UIUnRegisterDialogPayload;
46
- }
47
35
  export interface UIToggleDialogPayload {
48
36
  type: DialogType;
49
37
  setOpen: boolean;
50
- }
51
- export interface UIToggleDialog extends Action {
52
- type: typeof UI_TOGGLE_DIALOG;
53
- payload: UIToggleDialogPayload;
38
+ origin?: MapActionOrigin.map;
39
+ mapId?: string;
54
40
  }
55
41
  export interface UIOrderDialogPayload {
56
42
  type: DialogType;
57
43
  }
58
- export interface UIOrderDialog extends Action {
59
- type: typeof UI_ORDER_DIALOG;
60
- payload: UIOrderDialogPayload;
61
- }
62
44
  export interface SetActiveWindowIdPayload {
63
45
  activeWindowId: string;
64
46
  }
65
- export interface SetActiveWindowId extends Action {
66
- type: typeof UI_SET_ACTIVE_WINDOW_ID;
67
- payload: SetActiveWindowIdPayload;
68
- }
69
- export declare type UIActions = SetActiveMapIdForDialog | UIRegisterDialog | UIUnRegisterDialog | UIToggleDialog | UIOrderDialog | SetActiveWindowId;
70
47
  export {};
@@ -1,4 +1,5 @@
1
- import { Layer, Bbox, LayerActions, DeleteLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerStylePayload, SetLayerNamePayload, SetLayerOpacityPayload } from '../store/mapStore/types';
1
+ import { Layer, Bbox, DeleteLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerStylePayload, SetLayerNamePayload, SetLayerOpacityPayload } from '../store/mapStore/types';
2
+ import { LayerActions } from '../store/mapStore/layers/reducer';
2
3
  export declare const initialBbox: {
3
4
  srs: string;
4
5
  bbox: {
File without changes
@@ -23,6 +23,7 @@ export declare const filterMapLayers: (presetArray: unknown[]) => Layer[];
23
23
  export declare const filterLayers: (layers?: Layer[]) => {
24
24
  mapLayers: Layer[];
25
25
  baseLayers: Layer[];
26
+ overLayers: Layer[];
26
27
  };
27
28
  export declare const filterServices: (presetArray: Service[]) => Service[];
28
29
  export declare const filterMapPresets: (presets: InitialAppPreset) => FilteredMapPresets;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "2.9.0",
3
+ "version": "2.13.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,34 +13,31 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "react": "^17.0.2",
16
- "@opengeoweb/theme": "2.9.0",
16
+ "@opengeoweb/theme": "2.13.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.9.0",
22
+ "@opengeoweb/shared": "2.13.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.9.0",
26
+ "@opengeoweb/form-fields": "2.13.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.9.0",
31
+ "@opengeoweb/webmap": "2.13.0",
33
32
  "throttle-debounce": "^3.0.1",
34
33
  "proj4": "^2.6.2",
35
34
  "react-sortablejs": "^6.0.0",
36
35
  "immer": "^9.0.15",
37
36
  "redux-dynamic-modules": "^5.2.0",
38
- "redux": "^4.0.4",
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
- "@reduxjs/toolkit": "^1.8.3",
44
41
  "redux-saga": "^1.1.3"
45
42
  }
46
43
  }
@@ -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,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 './layers/actions';
2
- export * from './service/actions';
3
- export declare const layerMoveLayer: any, mapChangeDimension: any, mapStartAnimation: any, mapStopAnimation: any, mapUpdateAllMapDimensions: any, registerMap: any, setActiveLayerId: any, setActiveMapPresetId: any, setAnimationDelay: any, setAnimationEndTime: any, setAnimationStartTime: any, setBbox: any, setDisableMapPin: any, setMapPinLocation: any, setMapPreset: any, setSelectedFeature: any, setTimeSliderCenterTime: any, setTimeSliderDataScaleToSecondsPerPx: any, setTimeSliderScale: any, setTimeSliderSecondsPerPx: any, setTimeStep: any, toggleAutoUpdate: any, toggleLoop: any, toggleTimeSliderHover: any, toggleTimestepAuto: any, unregisterMap: any;
@@ -1,2 +0,0 @@
1
- export * from './layers/constants';
2
- 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,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";