@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.
- package/index.esm.js +5537 -6976
- package/index.umd.js +21136 -22477
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +1 -1
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +3 -4
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +2 -2
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerManager.d.ts +2 -0
- package/lib/components/LayerManager/LayerManager.stories.d.ts +9 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +3 -3
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +5 -4
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +3 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +1 -3
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +3 -2
- package/lib/components/Legend/LegendConnect.d.ts +2 -0
- package/lib/components/Legend/LegendMapButtonConnect.d.ts +1 -0
- package/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +2 -2
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +1 -0
- package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +2 -1
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +2 -2
- package/lib/components/Providers/Providers.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +0 -1
- package/lib/components/SyncGroups/selector.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSlider.d.ts +2 -0
- package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButtonConnect.d.ts +1 -1
- package/lib/index.d.ts +59 -10
- package/lib/store/generic/actions.d.ts +3 -4
- package/lib/store/generic/index.d.ts +14 -0
- package/lib/store/generic/sagas.d.ts +10 -9
- package/lib/store/generic/selectors.d.ts +0 -1
- package/lib/store/generic/synchronizationActions/actions.d.ts +6 -5
- package/lib/store/generic/synchronizationActions/types.d.ts +10 -23
- package/lib/store/generic/synchronizationGroups/constants.d.ts +0 -8
- package/lib/store/generic/synchronizationGroups/index.d.ts +1 -2
- package/lib/store/generic/synchronizationGroups/reducer.d.ts +25 -3
- package/lib/store/generic/synchronizationGroups/sagas.d.ts +3 -3
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +0 -2
- package/lib/store/generic/synchronizationGroups/types.d.ts +8 -38
- package/lib/store/generic/synchronizationGroups/utils.d.ts +0 -5
- package/lib/store/generic/types.d.ts +3 -12
- package/lib/store/index.d.ts +4 -0
- package/lib/store/layerSelect/index.d.ts +2 -0
- package/lib/store/layerSelect/reducer.d.ts +12 -2
- package/lib/store/layerSelect/sagas.d.ts +3 -3
- package/lib/store/layerSelect/selectors.d.ts +0 -6
- package/lib/store/layerSelect/types.d.ts +7 -35
- package/lib/store/mapStore/index.d.ts +3 -0
- package/lib/store/mapStore/layers/index.d.ts +2 -0
- package/lib/store/mapStore/layers/reducer.d.ts +42 -4
- package/lib/store/mapStore/layers/selectors.d.ts +0 -17
- package/lib/store/mapStore/layers/types.d.ts +24 -72
- package/lib/store/mapStore/map/actions.d.ts +6 -170
- package/lib/store/mapStore/map/index.d.ts +2 -0
- package/lib/store/mapStore/map/reducer.d.ts +79 -4
- package/lib/store/mapStore/map/sagas.d.ts +13 -8
- package/lib/store/mapStore/map/selectors.d.ts +102 -39
- package/lib/store/mapStore/map/types.d.ts +35 -121
- package/lib/store/mapStore/map/utils.d.ts +3 -3
- package/lib/store/mapStore/service/index.d.ts +2 -0
- package/lib/store/mapStore/service/reducer.d.ts +9 -4
- package/lib/store/mapStore/service/selectors.d.ts +0 -7
- package/lib/store/mapStore/service/types.d.ts +2 -12
- package/lib/store/mapStore/utils/helpers.d.ts +0 -1
- package/lib/store/ui/index.d.ts +2 -0
- package/lib/store/ui/reducer.d.ts +19 -2
- package/lib/store/ui/selectors.d.ts +3 -8
- package/lib/store/ui/types.d.ts +3 -28
- package/lib/storybookUtils/defaultStorySettings.d.ts +2 -1
- package/lib/{store.d.ts → storybookUtils/store.d.ts} +0 -0
- package/lib/types/types.d.ts +1 -2
- package/lib/utils/jsonPresetFilter.d.ts +5 -0
- package/package.json +7 -9
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButton.d.ts +0 -9
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButton.spec.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.d.ts +0 -15
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.spec.d.ts +0 -1
- package/lib/store/advancedLayerStore/actions.d.ts +0 -15
- package/lib/store/advancedLayerStore/config.d.ts +0 -4
- package/lib/store/advancedLayerStore/constants.d.ts +0 -2
- package/lib/store/advancedLayerStore/reducer.d.ts +0 -14
- package/lib/store/advancedLayerStore/reducer.spec.d.ts +0 -1
- package/lib/store/advancedLayerStore/selectors.d.ts +0 -21
- package/lib/store/advancedLayerStore/selectors.spec.d.ts +0 -1
- package/lib/store/advancedLayerStore/types.d.ts +0 -30
- package/lib/store/generic/constants.d.ts +0 -2
- package/lib/store/generic/synchronizationActions/constants.d.ts +0 -3
- package/lib/store/generic/synchronizationGroups/actions.d.ts +0 -80
- package/lib/store/layerSelect/actions.d.ts +0 -26
- package/lib/store/layerSelect/constants.d.ts +0 -7
- package/lib/store/mapStore/actions.d.ts +0 -3
- package/lib/store/mapStore/constants.d.ts +0 -3
- package/lib/store/mapStore/layers/actions.d.ts +0 -134
- package/lib/store/mapStore/layers/constants.d.ts +0 -17
- package/lib/store/mapStore/map/constants.d.ts +0 -26
- package/lib/store/mapStore/selectors.d.ts +0 -3
- package/lib/store/mapStore/service/actions.d.ts +0 -15
- package/lib/store/mapStore/service/constants.d.ts +0 -2
- package/lib/store/ui/actions.d.ts +0 -43
- package/lib/store/ui/constants.d.ts +0 -6
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { DateInterval } from '@opengeoweb/webmap';
|
|
2
|
-
import {
|
|
3
|
-
import type { Layer } from '../layers/types';
|
|
4
|
-
import { WEBMAP_LAYER_MOVE, WEBMAP_SET_BBOX, WEBMAP_MAP_UPDATE_ALL_DIMENSIONS, WEBMAP_MAP_CHANGE_DIMENSION, WEBMAP_START_ANIMATION, WEBMAP_STOP_ANIMATION, WEBMAP_REGISTER_MAP, WEBMAP_UNREGISTER_MAP, WEBMAP_SET_ACTIVELAYERID, WEBMAP_TOGGLE_AUTO_UPDATE, WEBMAP_TOGGLE_LOOP, WEBMAP_SET_TIME_SLIDER_SCALE, WEBMAP_SET_TIME_STEP, WEBMAP_SET_ANIMATION_DELAY, WEBMAP_SET_ANIMATION_START_TIME, WEBMAP_SET_ANIMATION_END_TIME, WEBMAP_TOGGLE_TIMESTEP_AUTO, WEBMAP_TOGGLE_TIME_SLIDER_HOVER, WEBMAP_SET_TIME_SLIDER_CENTER_TIME, WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX, WEBMAP_SET_TIME_SLIDER_DATA_SCALE_TO_SECONDS_PER_PX, WEBMAP_SET_PIN, WEBMAP_DISABLE_PIN, WEBMAP_SET_SELECTED_FEATURE_INDEX, WEBMAP_SET_MAPPRESET, WEBMAP_SET_ACTIVE_MAPPRESET_ID } from './constants';
|
|
2
|
+
import type { Layer, LayerActionOrigin } from '../types';
|
|
5
3
|
export interface Dimension {
|
|
6
4
|
name?: string;
|
|
7
5
|
units?: string;
|
|
@@ -19,7 +17,6 @@ export interface WebMap {
|
|
|
19
17
|
animationStartTime?: string;
|
|
20
18
|
animationEndTime?: string;
|
|
21
19
|
isAutoUpdating: boolean;
|
|
22
|
-
isLooping: boolean;
|
|
23
20
|
srs: string;
|
|
24
21
|
bbox: Bbox;
|
|
25
22
|
mapLayers: string[];
|
|
@@ -36,10 +33,14 @@ export interface WebMap {
|
|
|
36
33
|
timeSliderDataScaleToSecondsPerPx?: number;
|
|
37
34
|
isTimestepAuto?: boolean;
|
|
38
35
|
isTimeSliderHoverOn?: boolean;
|
|
36
|
+
isTimeSliderVisible?: boolean;
|
|
39
37
|
mapPinLocation?: MapLocation;
|
|
40
38
|
disableMapPin?: boolean;
|
|
41
39
|
selectedFeatureIndex?: number;
|
|
42
|
-
|
|
40
|
+
activeMapPresetId?: string;
|
|
41
|
+
isMapPresetLoading?: boolean;
|
|
42
|
+
hasMapPresetChanges?: boolean;
|
|
43
|
+
mapPresetError?: string;
|
|
43
44
|
}
|
|
44
45
|
export interface WebMapState {
|
|
45
46
|
byId: Record<string, WebMap>;
|
|
@@ -72,50 +73,34 @@ export interface AnimationPayloadType {
|
|
|
72
73
|
interval?: number;
|
|
73
74
|
speed?: SpeedFactorType;
|
|
74
75
|
}
|
|
76
|
+
export declare enum MapActionOrigin {
|
|
77
|
+
map = "map"
|
|
78
|
+
}
|
|
75
79
|
export interface MapPreset {
|
|
76
80
|
layers?: Layer[];
|
|
77
|
-
overLayers?: Layer[];
|
|
78
|
-
baseLayer?: Layer;
|
|
79
81
|
activeLayerId?: string;
|
|
80
82
|
proj?: {
|
|
81
83
|
bbox: Bbox;
|
|
82
84
|
srs: string;
|
|
83
85
|
};
|
|
84
86
|
shouldAnimate?: boolean;
|
|
87
|
+
shouldAutoUpdate?: boolean;
|
|
88
|
+
toggleTimestepAuto?: boolean;
|
|
85
89
|
animationPayload?: AnimationPayloadType;
|
|
86
90
|
shouldShowZoomControls?: boolean;
|
|
87
|
-
shouldAutoUpdate?: boolean;
|
|
88
91
|
showTimeSlider?: boolean;
|
|
89
92
|
displayMapPin?: boolean;
|
|
90
|
-
toggleTimestepAuto?: boolean;
|
|
91
|
-
setTimestep?: number;
|
|
92
93
|
}
|
|
93
94
|
export interface MapPresetInitialProps {
|
|
94
95
|
mapPreset: MapPreset;
|
|
95
96
|
syncGroupsIds?: string[];
|
|
96
97
|
}
|
|
97
|
-
export interface RegisterMap extends Action {
|
|
98
|
-
type: typeof WEBMAP_REGISTER_MAP;
|
|
99
|
-
payload: {
|
|
100
|
-
mapId: string;
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
export interface UnregisterMap extends Action {
|
|
104
|
-
type: typeof WEBMAP_UNREGISTER_MAP;
|
|
105
|
-
payload: {
|
|
106
|
-
mapId: string;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
98
|
export interface MoveLayerPayload {
|
|
110
99
|
mapId: string;
|
|
111
100
|
oldIndex: number;
|
|
112
101
|
newIndex: number;
|
|
113
102
|
origin: string;
|
|
114
103
|
}
|
|
115
|
-
export interface MoveLayer extends Action {
|
|
116
|
-
type: typeof WEBMAP_LAYER_MOVE;
|
|
117
|
-
payload: MoveLayerPayload;
|
|
118
|
-
}
|
|
119
104
|
export interface SetBboxPayload {
|
|
120
105
|
mapId: string;
|
|
121
106
|
bbox: Bbox;
|
|
@@ -126,19 +111,11 @@ export interface SetMapDimensionPayload {
|
|
|
126
111
|
mapId: string;
|
|
127
112
|
dimension: Dimension;
|
|
128
113
|
}
|
|
129
|
-
export interface SetMapDimension extends Action {
|
|
130
|
-
type: typeof WEBMAP_MAP_CHANGE_DIMENSION;
|
|
131
|
-
payload: SetMapDimensionPayload;
|
|
132
|
-
}
|
|
133
114
|
export interface UpdateAllMapDimensionsPayload {
|
|
134
115
|
origin: string;
|
|
135
116
|
mapId: string;
|
|
136
117
|
dimensions: Dimension[];
|
|
137
118
|
}
|
|
138
|
-
export interface UpdateAllMapDimensions extends Action {
|
|
139
|
-
type: typeof WEBMAP_MAP_UPDATE_ALL_DIMENSIONS;
|
|
140
|
-
payload: UpdateAllMapDimensionsPayload;
|
|
141
|
-
}
|
|
142
119
|
export declare type TimeListType = {
|
|
143
120
|
name: string;
|
|
144
121
|
value: string;
|
|
@@ -149,58 +126,26 @@ export interface SetMapAnimationStartPayload {
|
|
|
149
126
|
end?: string;
|
|
150
127
|
interval?: number;
|
|
151
128
|
timeList?: TimeListType[];
|
|
152
|
-
|
|
153
|
-
export interface SetMapAnimationStart extends Action {
|
|
154
|
-
type: typeof WEBMAP_START_ANIMATION;
|
|
155
|
-
payload: SetMapAnimationStartPayload;
|
|
129
|
+
origin?: MapActionOrigin;
|
|
156
130
|
}
|
|
157
131
|
export interface SetMapAnimationStopPayload {
|
|
158
132
|
mapId: string;
|
|
159
|
-
|
|
160
|
-
export interface SetMapAnimationStop extends Action {
|
|
161
|
-
type: typeof WEBMAP_STOP_ANIMATION;
|
|
162
|
-
payload: SetMapAnimationStopPayload;
|
|
163
|
-
}
|
|
164
|
-
export interface SetBbox extends Action {
|
|
165
|
-
type: typeof WEBMAP_SET_BBOX;
|
|
166
|
-
payload: SetBboxPayload;
|
|
167
|
-
}
|
|
168
|
-
export interface SetActiveLayerId extends Action {
|
|
169
|
-
type: typeof WEBMAP_SET_ACTIVELAYERID;
|
|
170
|
-
payload: SetActiveLayerIdPayload;
|
|
133
|
+
origin?: MapActionOrigin;
|
|
171
134
|
}
|
|
172
135
|
export interface SetActiveLayerIdPayload {
|
|
173
136
|
mapId: string;
|
|
174
137
|
layerId: string;
|
|
138
|
+
origin?: LayerActionOrigin | string;
|
|
175
139
|
}
|
|
176
140
|
export interface ToggleAutoUpdatePayload {
|
|
177
141
|
mapId: string;
|
|
178
142
|
shouldAutoUpdate: boolean;
|
|
179
|
-
|
|
180
|
-
export interface ToggleLoopPayload {
|
|
181
|
-
mapId: string;
|
|
182
|
-
shouldLoop: boolean;
|
|
183
|
-
}
|
|
184
|
-
export interface ToggleAutoUpdate extends Action {
|
|
185
|
-
type: typeof WEBMAP_TOGGLE_AUTO_UPDATE;
|
|
186
|
-
payload: ToggleAutoUpdatePayload;
|
|
187
|
-
}
|
|
188
|
-
export interface ToggleLoop extends Action {
|
|
189
|
-
type: typeof WEBMAP_TOGGLE_LOOP;
|
|
190
|
-
payload: ToggleLoopPayload;
|
|
191
|
-
}
|
|
192
|
-
export interface SetTimeSliderScale extends Action {
|
|
193
|
-
type: typeof WEBMAP_SET_TIME_SLIDER_SCALE;
|
|
194
|
-
payload: SetTimeSliderScalePayload;
|
|
143
|
+
origin?: MapActionOrigin;
|
|
195
144
|
}
|
|
196
145
|
export interface SetTimeSliderScalePayload {
|
|
197
146
|
mapId: string;
|
|
198
147
|
timeSliderScale: Scale;
|
|
199
148
|
}
|
|
200
|
-
export interface SetTimeStep extends Action {
|
|
201
|
-
type: typeof WEBMAP_SET_TIME_STEP;
|
|
202
|
-
payload: SetTimeStepPayload;
|
|
203
|
-
}
|
|
204
149
|
export interface SetTimeStepPayload {
|
|
205
150
|
mapId: string;
|
|
206
151
|
timeStep: number;
|
|
@@ -209,86 +154,52 @@ export interface SetAnimationDelayPayload {
|
|
|
209
154
|
mapId: string;
|
|
210
155
|
animationDelay: number;
|
|
211
156
|
}
|
|
212
|
-
export interface SetAnimationDelay extends Action {
|
|
213
|
-
type: typeof WEBMAP_SET_ANIMATION_DELAY;
|
|
214
|
-
payload: SetAnimationDelayPayload;
|
|
215
|
-
}
|
|
216
|
-
export interface SetAnimationStartTime extends Action {
|
|
217
|
-
type: typeof WEBMAP_SET_ANIMATION_START_TIME;
|
|
218
|
-
payload: SetAnimationStartTimePayload;
|
|
219
|
-
}
|
|
220
157
|
export interface SetAnimationStartTimePayload {
|
|
221
158
|
mapId: string;
|
|
222
159
|
animationStartTime: string;
|
|
223
160
|
}
|
|
224
|
-
export interface SetAnimationEndTime extends Action {
|
|
225
|
-
type: typeof WEBMAP_SET_ANIMATION_END_TIME;
|
|
226
|
-
payload: SetAnimationEndTimePayload;
|
|
227
|
-
}
|
|
228
161
|
export interface SetAnimationEndTimePayload {
|
|
229
162
|
mapId: string;
|
|
230
163
|
animationEndTime: string;
|
|
231
164
|
}
|
|
165
|
+
export interface SetAnimationIntervalPayload {
|
|
166
|
+
mapId: string;
|
|
167
|
+
interval: number;
|
|
168
|
+
}
|
|
232
169
|
export interface ToggleTimestepAutoPayload {
|
|
233
170
|
mapId: string;
|
|
234
171
|
timestepAuto: boolean;
|
|
235
|
-
|
|
236
|
-
export interface ToggleTimestepAuto extends Action {
|
|
237
|
-
type: typeof WEBMAP_TOGGLE_TIMESTEP_AUTO;
|
|
238
|
-
payload: ToggleTimestepAutoPayload;
|
|
172
|
+
origin?: MapActionOrigin;
|
|
239
173
|
}
|
|
240
174
|
export interface ToggleTimeSliderHoverPayload {
|
|
241
175
|
mapId: string;
|
|
242
176
|
isTimeSliderHoverOn: boolean;
|
|
243
177
|
}
|
|
244
|
-
export interface
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
export interface SetTimeSliderCenterTime extends Action {
|
|
249
|
-
type: typeof WEBMAP_SET_TIME_SLIDER_CENTER_TIME;
|
|
250
|
-
payload: SetTimeSliderCenterTimePayload;
|
|
178
|
+
export interface ToggleTimeSliderIsVisiblePayload {
|
|
179
|
+
mapId: string;
|
|
180
|
+
isTimeSliderVisible: boolean;
|
|
181
|
+
origin?: MapActionOrigin;
|
|
251
182
|
}
|
|
252
183
|
export interface SetTimeSliderCenterTimePayload {
|
|
253
184
|
mapId: string;
|
|
254
185
|
timeSliderCenterTime: number;
|
|
255
186
|
}
|
|
256
|
-
export interface SetTimeSliderSecondsPerPx extends Action {
|
|
257
|
-
type: typeof WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX;
|
|
258
|
-
payload: SetTimeSliderSecondsPerPxPayload;
|
|
259
|
-
}
|
|
260
187
|
export interface SetTimeSliderSecondsPerPxPayload {
|
|
261
188
|
mapId: string;
|
|
262
189
|
timeSliderSecondsPerPx: number;
|
|
263
190
|
}
|
|
264
|
-
export interface SetTimeSliderDataScaleToSecondsPerPx extends Action {
|
|
265
|
-
type: typeof WEBMAP_SET_TIME_SLIDER_DATA_SCALE_TO_SECONDS_PER_PX;
|
|
266
|
-
payload: SetTimeSliderDataScaleToSecondsPerPxPayload;
|
|
267
|
-
}
|
|
268
191
|
export interface SetTimeSliderDataScaleToSecondsPerPxPayload {
|
|
269
192
|
mapId: string;
|
|
270
193
|
timeSliderDataScaleToSecondsPerPx: number;
|
|
271
194
|
}
|
|
272
|
-
export interface SetMapPinLocation extends Action {
|
|
273
|
-
type: typeof WEBMAP_SET_PIN;
|
|
274
|
-
payload: MapPinLocationPayload;
|
|
275
|
-
}
|
|
276
195
|
export interface MapPinLocationPayload {
|
|
277
196
|
mapId: string;
|
|
278
197
|
mapPinLocation: MapLocation;
|
|
279
198
|
}
|
|
280
|
-
export interface SetDisableMapPin extends Action {
|
|
281
|
-
type: typeof WEBMAP_DISABLE_PIN;
|
|
282
|
-
payload: DisableMapPinPayload;
|
|
283
|
-
}
|
|
284
199
|
export interface DisableMapPinPayload {
|
|
285
200
|
mapId: string;
|
|
286
201
|
disableMapPin: boolean;
|
|
287
202
|
}
|
|
288
|
-
export interface SetSelectedFeature {
|
|
289
|
-
type: typeof WEBMAP_SET_SELECTED_FEATURE_INDEX;
|
|
290
|
-
payload: SetSelectedFeaturePayload;
|
|
291
|
-
}
|
|
292
203
|
export interface SetSelectedFeaturePayload {
|
|
293
204
|
mapId: string;
|
|
294
205
|
selectedFeatureIndex: number;
|
|
@@ -297,16 +208,19 @@ export interface SetMapPresetPayload {
|
|
|
297
208
|
mapId: string;
|
|
298
209
|
initialProps: MapPresetInitialProps;
|
|
299
210
|
}
|
|
300
|
-
export interface SetMapPreset extends Action {
|
|
301
|
-
type: typeof WEBMAP_SET_MAPPRESET;
|
|
302
|
-
payload: SetMapPresetPayload;
|
|
303
|
-
}
|
|
304
211
|
export interface SetActiveMapPresetPayload {
|
|
305
212
|
mapId: string;
|
|
306
213
|
presetId: string;
|
|
307
214
|
}
|
|
308
|
-
export interface
|
|
309
|
-
|
|
310
|
-
|
|
215
|
+
export interface SetIsMapPresetLoadingPayload {
|
|
216
|
+
mapId: string;
|
|
217
|
+
isLoading: boolean;
|
|
218
|
+
}
|
|
219
|
+
export interface SetIsMapPresetHasChangesPayload {
|
|
220
|
+
mapId: string;
|
|
221
|
+
hasChanges: boolean;
|
|
222
|
+
}
|
|
223
|
+
export interface SetMapPresetErrorPayload {
|
|
224
|
+
mapId: string;
|
|
225
|
+
error: string;
|
|
311
226
|
}
|
|
312
|
-
export declare type MapActions = RegisterMap | UnregisterMap | SetMapDimension | UpdateAllMapDimensions | SetMapAnimationStart | SetMapAnimationStop | SetBbox | MoveLayer | SetActiveLayerId | ToggleAutoUpdate | ToggleLoop | SetTimeStep | SetTimeSliderScale | SetAnimationDelay | SetAnimationStartTime | SetAnimationEndTime | ToggleTimestepAuto | ToggleTimeSliderHover | SetTimeSliderCenterTime | SetTimeSliderSecondsPerPx | SetTimeSliderDataScaleToSecondsPerPx | SetMapPinLocation | SetDisableMapPin | SetSelectedFeature | SetMapPreset | SetActiveMapPresetId;
|
|
@@ -7,7 +7,6 @@ interface CreateMapProps {
|
|
|
7
7
|
animationStartTime?: string;
|
|
8
8
|
animationEndTime?: string;
|
|
9
9
|
isAutoUpdating?: boolean;
|
|
10
|
-
isLooping?: boolean;
|
|
11
10
|
srs?: string;
|
|
12
11
|
bbox?: Bbox;
|
|
13
12
|
mapLayers?: string[];
|
|
@@ -24,9 +23,10 @@ interface CreateMapProps {
|
|
|
24
23
|
timeSliderDataScaleToSecondsPerPx?: number;
|
|
25
24
|
isTimestepAuto?: boolean;
|
|
26
25
|
isTimeSliderHoverOn?: boolean;
|
|
27
|
-
|
|
26
|
+
isTimeSliderVisible?: boolean;
|
|
27
|
+
activeMapPresetId?: string;
|
|
28
28
|
}
|
|
29
|
-
export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating,
|
|
29
|
+
export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, activeLayerId, timeSliderScale, timeStep, animationDelay, timeSliderCenterTime, timeSliderSecondsPerPx, timeSliderDataScaleToSecondsPerPx, isTimestepAuto, isTimeSliderHoverOn, isTimeSliderVisible, activeMapPresetId, }: CreateMapProps) => WebMap;
|
|
30
30
|
export declare const checkValidLayersPayload: (layers: Layer[], mapId: string) => boolean;
|
|
31
31
|
/**
|
|
32
32
|
* This will get the map from the map draftstate.
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import {
|
|
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
|
|
5
|
-
export declare const
|
|
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>;
|
|
@@ -8,7 +8,6 @@ import { ServiceState, ServiceLayer, ReduxService } from './types';
|
|
|
8
8
|
* @returns {array} returnType: array - an array of all serviceIds
|
|
9
9
|
*/
|
|
10
10
|
export declare const getServiceIds: ((state: {
|
|
11
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
12
11
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
13
12
|
ui?: import("../../ui/types").UIStoreType;
|
|
14
13
|
webmap?: import("../types").WebMapState;
|
|
@@ -28,7 +27,6 @@ export declare const getServiceIds: ((state: {
|
|
|
28
27
|
* @returns {object} returnType: ServiceState
|
|
29
28
|
*/
|
|
30
29
|
export declare const getServices: ((state: {
|
|
31
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
32
30
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
33
31
|
ui?: import("../../ui/types").UIStoreType;
|
|
34
32
|
webmap?: import("../types").WebMapState;
|
|
@@ -48,7 +46,6 @@ export declare const getServices: ((state: {
|
|
|
48
46
|
* @returns {ReduxService} returnType: Service
|
|
49
47
|
*/
|
|
50
48
|
export declare const getServiceByName: ((state: {
|
|
51
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
52
49
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
53
50
|
ui?: import("../../ui/types").UIStoreType;
|
|
54
51
|
webmap?: import("../types").WebMapState;
|
|
@@ -69,7 +66,6 @@ export declare const getServiceByName: ((state: {
|
|
|
69
66
|
* @returns {array} returnType: ServiceLayer[] - All layers within the service object.
|
|
70
67
|
*/
|
|
71
68
|
export declare const getLayersFromService: ((state: {
|
|
72
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
73
69
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
74
70
|
ui?: import("../../ui/types").UIStoreType;
|
|
75
71
|
webmap?: import("../types").WebMapState;
|
|
@@ -91,7 +87,6 @@ export declare const getLayersFromService: ((state: {
|
|
|
91
87
|
* @returns {ServiceLayer} returnType: ServiceLayer - The layer from the service object.
|
|
92
88
|
*/
|
|
93
89
|
export declare const getLayerFromService: ((state: {
|
|
94
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
95
90
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
96
91
|
ui?: import("../../ui/types").UIStoreType;
|
|
97
92
|
webmap?: import("../types").WebMapState;
|
|
@@ -113,7 +108,6 @@ export declare const getLayerFromService: ((state: {
|
|
|
113
108
|
* @returns {array} returnType: Style[] - array containing layer styles
|
|
114
109
|
*/
|
|
115
110
|
export declare const getLayerStyles: ((state: {
|
|
116
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
117
111
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
118
112
|
ui?: import("../../ui/types").UIStoreType;
|
|
119
113
|
webmap?: import("../types").WebMapState;
|
|
@@ -133,7 +127,6 @@ export declare const getLayerStyles: ((state: {
|
|
|
133
127
|
* @returns {array} returnType: [] - array containing services
|
|
134
128
|
*/
|
|
135
129
|
export declare const getServicesInArray: ((state: {
|
|
136
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
137
130
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
138
131
|
ui?: import("../../ui/types").UIStoreType;
|
|
139
132
|
webmap?: import("../types").WebMapState;
|
|
@@ -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
|
}
|
|
@@ -28,20 +25,13 @@ export interface ServiceState {
|
|
|
28
25
|
allIds: string[];
|
|
29
26
|
}
|
|
30
27
|
export interface SetLayersForServicePayload {
|
|
28
|
+
id: string;
|
|
31
29
|
name: string;
|
|
32
30
|
serviceUrl: string;
|
|
33
31
|
layers: ServiceLayer[];
|
|
34
32
|
isUserAddedService: boolean;
|
|
35
33
|
}
|
|
36
|
-
export interface SetLayersForService extends Action {
|
|
37
|
-
type: typeof MAP_SERVICES_SET_LAYERS;
|
|
38
|
-
payload: SetLayersForServicePayload;
|
|
39
|
-
}
|
|
40
34
|
export interface MapStoreRemoveServicePayload {
|
|
35
|
+
id: string;
|
|
41
36
|
serviceUrl: string;
|
|
42
37
|
}
|
|
43
|
-
export interface MapStoreRemoveService extends Action {
|
|
44
|
-
type: typeof MAP_SERVICES_REMOVE_SERVICE;
|
|
45
|
-
payload: MapStoreRemoveServicePayload;
|
|
46
|
-
}
|
|
47
|
-
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 generateServiceId: () => string;
|
|
8
7
|
export declare const generateTimeSeriesId: () => string;
|
|
9
8
|
/**
|
|
10
9
|
* Registers a WMJSLayer in a lookuptable with a layerId
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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,5 @@
|
|
|
1
1
|
import { AppStore } from '../../types/types';
|
|
2
|
-
import {
|
|
2
|
+
import { UIType } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Gets the active map Id and wether a dialog is open or closed
|
|
5
5
|
*
|
|
@@ -17,7 +17,6 @@ export declare const getDialogDetailsByType: (store: AppStore, dialogType: strin
|
|
|
17
17
|
* @returns {boolean} returnType: boolean
|
|
18
18
|
*/
|
|
19
19
|
export declare const getisDialogOpen: ((state: {
|
|
20
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
21
20
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
22
21
|
ui?: import("./types").UIStoreType;
|
|
23
22
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -37,7 +36,6 @@ export declare const getisDialogOpen: ((state: {
|
|
|
37
36
|
* @returns {string} returnType: string - the active map id
|
|
38
37
|
*/
|
|
39
38
|
export declare const getDialogMapId: ((state: {
|
|
40
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
41
39
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
42
40
|
ui?: import("./types").UIStoreType;
|
|
43
41
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -57,14 +55,13 @@ export declare const getDialogMapId: ((state: {
|
|
|
57
55
|
* @returns {number} the higher the order number the higher the zIndex
|
|
58
56
|
*/
|
|
59
57
|
export declare const getDialogOrder: ((state: {
|
|
60
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
61
58
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
62
59
|
ui?: import("./types").UIStoreType;
|
|
63
60
|
webmap?: import("../mapStore/types").WebMapState;
|
|
64
61
|
services?: import("../mapStore/types").ServiceState;
|
|
65
62
|
layers?: import("../mapStore/types").LayerState;
|
|
66
63
|
layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
|
|
67
|
-
}, params_0:
|
|
64
|
+
}, params_0: string) => number) & import("reselect").OutputSelectorFields<(args_0: number) => number & {
|
|
68
65
|
clearCache: () => void;
|
|
69
66
|
}> & {
|
|
70
67
|
clearCache: () => void;
|
|
@@ -77,20 +74,18 @@ export declare const getDialogOrder: ((state: {
|
|
|
77
74
|
* @returns {boolean}
|
|
78
75
|
*/
|
|
79
76
|
export declare const getDialogIsOrderedOnTop: ((state: {
|
|
80
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
81
77
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
82
78
|
ui?: import("./types").UIStoreType;
|
|
83
79
|
webmap?: import("../mapStore/types").WebMapState;
|
|
84
80
|
services?: import("../mapStore/types").ServiceState;
|
|
85
81
|
layers?: import("../mapStore/types").LayerState;
|
|
86
82
|
layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
|
|
87
|
-
}, params_0:
|
|
83
|
+
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean) => boolean & {
|
|
88
84
|
clearCache: () => void;
|
|
89
85
|
}> & {
|
|
90
86
|
clearCache: () => void;
|
|
91
87
|
};
|
|
92
88
|
export declare const getDialogSource: ((state: {
|
|
93
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
94
89
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
95
90
|
ui?: import("./types").UIStoreType;
|
|
96
91
|
webmap?: import("../mapStore/types").WebMapState;
|
package/lib/store/ui/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare type DialogType = 'legend' | 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'timeSeriesSelect' | 'syncGroups';
|
|
1
|
+
declare type LegendDialogType = string;
|
|
2
|
+
export declare type DialogType = 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'timeSeriesSelect' | 'syncGroups' | LegendDialogType;
|
|
4
3
|
export declare type Source = 'app' | 'module';
|
|
5
4
|
export interface UIType {
|
|
6
5
|
type: DialogType;
|
|
@@ -22,47 +21,23 @@ export interface SetActiveMapIdForDialogPayload {
|
|
|
22
21
|
setOpen?: boolean;
|
|
23
22
|
source?: Source;
|
|
24
23
|
}
|
|
25
|
-
export interface SetActiveMapIdForDialog extends Action {
|
|
26
|
-
type: typeof UI_SET_ACTIVE_MAPID_FOR_DIALOG;
|
|
27
|
-
payload: SetActiveMapIdForDialogPayload;
|
|
28
|
-
}
|
|
29
24
|
export interface UIRegisterDialogPayload {
|
|
30
25
|
type: DialogType;
|
|
31
26
|
activeMapId?: string;
|
|
32
27
|
setOpen?: boolean;
|
|
33
28
|
source?: Source;
|
|
34
29
|
}
|
|
35
|
-
export interface UIRegisterDialog extends Action {
|
|
36
|
-
type: typeof UI_REGISTER_DIALOG;
|
|
37
|
-
payload: UIRegisterDialogPayload;
|
|
38
|
-
}
|
|
39
30
|
export interface UIUnRegisterDialogPayload {
|
|
40
31
|
type: DialogType;
|
|
41
32
|
}
|
|
42
|
-
export interface UIUnRegisterDialog extends Action {
|
|
43
|
-
type: typeof UI_UNREGISTER_DIALOG;
|
|
44
|
-
payload: UIUnRegisterDialogPayload;
|
|
45
|
-
}
|
|
46
33
|
export interface UIToggleDialogPayload {
|
|
47
34
|
type: DialogType;
|
|
48
35
|
setOpen: boolean;
|
|
49
36
|
}
|
|
50
|
-
export interface UIToggleDialog extends Action {
|
|
51
|
-
type: typeof UI_TOGGLE_DIALOG;
|
|
52
|
-
payload: UIToggleDialogPayload;
|
|
53
|
-
}
|
|
54
37
|
export interface UIOrderDialogPayload {
|
|
55
38
|
type: DialogType;
|
|
56
39
|
}
|
|
57
|
-
export interface UIOrderDialog extends Action {
|
|
58
|
-
type: typeof UI_ORDER_DIALOG;
|
|
59
|
-
payload: UIOrderDialogPayload;
|
|
60
|
-
}
|
|
61
40
|
export interface SetActiveWindowIdPayload {
|
|
62
41
|
activeWindowId: string;
|
|
63
42
|
}
|
|
64
|
-
export
|
|
65
|
-
type: typeof UI_SET_ACTIVE_WINDOW_ID;
|
|
66
|
-
payload: SetActiveWindowIdPayload;
|
|
67
|
-
}
|
|
68
|
-
export declare type UIActions = SetActiveMapIdForDialog | UIRegisterDialog | UIUnRegisterDialog | UIToggleDialog | UIOrderDialog | SetActiveWindowId;
|
|
43
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Layer, Bbox,
|
|
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
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { WebMapStateModuleState } from '../store/mapStore/types';
|
|
2
|
-
import { AdvancedLayerStoreModuleState } from '../store/advancedLayerStore/types';
|
|
3
2
|
import { SynchronizationGroupModuleState } from '../store/generic/synchronizationGroups/types';
|
|
4
3
|
import { UIModuleState } from '../store/ui/types';
|
|
5
4
|
import { LayerSelectModuleState } from '../store/layerSelect/types';
|
|
6
|
-
export interface AppStore extends
|
|
5
|
+
export interface AppStore extends SynchronizationGroupModuleState, UIModuleState, WebMapStateModuleState, LayerSelectModuleState {
|
|
7
6
|
}
|
|
@@ -20,6 +20,11 @@ export interface InitialAppPreset {
|
|
|
20
20
|
}
|
|
21
21
|
export declare const filterBaseLayers: (presetArray: unknown[]) => Layer[];
|
|
22
22
|
export declare const filterMapLayers: (presetArray: unknown[]) => Layer[];
|
|
23
|
+
export declare const filterLayers: (layers?: Layer[]) => {
|
|
24
|
+
mapLayers: Layer[];
|
|
25
|
+
baseLayers: Layer[];
|
|
26
|
+
overLayers: Layer[];
|
|
27
|
+
};
|
|
23
28
|
export declare const filterServices: (presetArray: Service[]) => Service[];
|
|
24
29
|
export declare const filterMapPresets: (presets: InitialAppPreset) => FilteredMapPresets;
|
|
25
30
|
export declare const getInitialPresets: (mapPreset: InitialAppPreset, defaultInitialPresets: InitialAppPreset) => InitialAppPresetProps;
|