@opengeoweb/core 2.7.0 → 2.10.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 +5781 -7109
- package/index.umd.js +21254 -22471
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +2 -3
- package/lib/components/{ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts → ConfigurableMap/ConfigurableMapConnect.d.ts} +10 -11
- package/lib/components/{ConfigurableConnectedMap/ConfigurableConnectedMap.spec.d.ts → ConfigurableMap/ConfigurableMapConnect.spec.d.ts} +0 -0
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.stories.d.ts +7 -0
- package/lib/components/ConfigurableMap/index.d.ts +1 -0
- 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/EnableLayer/EnableLayerConnect.d.ts +1 -0
- 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/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 +3 -3
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +4 -3
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +5 -3
- 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/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +1 -0
- package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +2 -1
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +3 -3
- package/lib/components/Providers/Providers.d.ts +1 -1
- package/lib/components/ReactMapView/AdagucMapDraw.d.ts +1 -1
- package/lib/components/ReactMapView/AdagucMapDrawTools.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 -1
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +2 -1
- package/lib/index.d.ts +7 -9
- package/lib/store/generic/actions.d.ts +3 -4
- package/lib/store/generic/index.d.ts +2 -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 +3 -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/actions.d.ts +7 -3
- package/lib/store/mapStore/index.d.ts +1 -0
- package/lib/store/mapStore/layers/index.d.ts +1 -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/reducer.d.ts +82 -4
- package/lib/store/mapStore/map/sagas.d.ts +13 -8
- package/lib/store/mapStore/map/selectors.d.ts +82 -39
- package/lib/store/mapStore/map/types.d.ts +26 -121
- package/lib/store/mapStore/map/utils.d.ts +2 -3
- 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/reducer.d.ts +20 -9
- package/lib/store/ui/selectors.d.ts +11 -8
- package/lib/store/ui/types.d.ts +6 -23
- 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 +9 -9
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.stories.d.ts +0 -6
- package/lib/components/ConfigurableConnectedMap/index.d.ts +0 -1
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +0 -21
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.spec.d.ts +0 -1
- package/lib/components/ConfigurableMapWithSlider/index.d.ts +0 -1
- 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/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/service/actions.d.ts +0 -15
- package/lib/store/mapStore/service/constants.d.ts +0 -2
- package/lib/store/ui/actions.d.ts +0 -36
- package/lib/store/ui/constants.d.ts +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Scale, WebMap, WebMapState } from './types';
|
|
1
|
+
import { MapPreset, Scale, WebMap, WebMapState } from './types';
|
|
2
2
|
import { AppStore } from '../../../types/types';
|
|
3
3
|
import { Layer } from '../types';
|
|
4
4
|
/**
|
|
@@ -26,7 +26,6 @@ export declare const getAllMapIds: (store: AppStore) => string[];
|
|
|
26
26
|
* @returns {object} object containing map state (isAnimating, bbox, baseLayers, layers etc.)
|
|
27
27
|
*/
|
|
28
28
|
export declare const getFirstMap: ((state: {
|
|
29
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
30
29
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
31
30
|
ui?: import("../../ui/types").UIStoreType;
|
|
32
31
|
webmap?: WebMapState;
|
|
@@ -46,7 +45,6 @@ export declare const getFirstMap: ((state: {
|
|
|
46
45
|
* @returns {string} returnType:string - map id
|
|
47
46
|
*/
|
|
48
47
|
export declare const getFirstMapId: ((state: {
|
|
49
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
50
48
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
51
49
|
ui?: import("../../ui/types").UIStoreType;
|
|
52
50
|
webmap?: WebMapState;
|
|
@@ -64,7 +62,6 @@ export declare const getFirstMapId: ((state: {
|
|
|
64
62
|
* @returns {boolean} returnType:boolean - true if map is present
|
|
65
63
|
*/
|
|
66
64
|
export declare const getIsMapPresent: ((state: {
|
|
67
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
68
65
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
69
66
|
ui?: import("../../ui/types").UIStoreType;
|
|
70
67
|
webmap?: WebMapState;
|
|
@@ -85,7 +82,6 @@ export declare const getIsMapPresent: ((state: {
|
|
|
85
82
|
* @returns {array} returnType: array - array containing all layerIds
|
|
86
83
|
*/
|
|
87
84
|
export declare const getLayerIds: ((state: {
|
|
88
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
89
85
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
90
86
|
ui?: import("../../ui/types").UIStoreType;
|
|
91
87
|
webmap?: WebMapState;
|
|
@@ -106,7 +102,6 @@ export declare const getLayerIds: ((state: {
|
|
|
106
102
|
* @returns {array} returnType: array - array containing all layer states for the map
|
|
107
103
|
*/
|
|
108
104
|
export declare const getMapLayers: ((state: {
|
|
109
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
110
105
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
111
106
|
ui?: import("../../ui/types").UIStoreType;
|
|
112
107
|
webmap?: WebMapState;
|
|
@@ -127,7 +122,6 @@ export declare const getMapLayers: ((state: {
|
|
|
127
122
|
* @returns {array} returnType: array - array containing an array of baselayers ids
|
|
128
123
|
*/
|
|
129
124
|
export declare const getMapBaseLayersIds: ((state: {
|
|
130
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
131
125
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
132
126
|
ui?: import("../../ui/types").UIStoreType;
|
|
133
127
|
webmap?: WebMapState;
|
|
@@ -148,7 +142,6 @@ export declare const getMapBaseLayersIds: ((state: {
|
|
|
148
142
|
* @returns {array} returnType: array - array containing all baselayers for the map
|
|
149
143
|
*/
|
|
150
144
|
export declare const getMapBaseLayers: ((state: {
|
|
151
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
152
145
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
153
146
|
ui?: import("../../ui/types").UIStoreType;
|
|
154
147
|
webmap?: WebMapState;
|
|
@@ -169,7 +162,6 @@ export declare const getMapBaseLayers: ((state: {
|
|
|
169
162
|
* @returns {array} returnType: array - array containing an array of overLayers ids
|
|
170
163
|
*/
|
|
171
164
|
export declare const getMapOverLayersIds: ((state: {
|
|
172
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
173
165
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
174
166
|
ui?: import("../../ui/types").UIStoreType;
|
|
175
167
|
webmap?: WebMapState;
|
|
@@ -190,7 +182,6 @@ export declare const getMapOverLayersIds: ((state: {
|
|
|
190
182
|
* @returns {array} returnType: array - array containing all overLayers for the map
|
|
191
183
|
*/
|
|
192
184
|
export declare const getMapOverLayers: ((state: {
|
|
193
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
194
185
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
195
186
|
ui?: import("../../ui/types").UIStoreType;
|
|
196
187
|
webmap?: WebMapState;
|
|
@@ -211,7 +202,6 @@ export declare const getMapOverLayers: ((state: {
|
|
|
211
202
|
* @returns {array} returnType: array - array containing map dimensions
|
|
212
203
|
*/
|
|
213
204
|
export declare const getMapDimensions: ((state: {
|
|
214
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
215
205
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
216
206
|
ui?: import("../../ui/types").UIStoreType;
|
|
217
207
|
webmap?: WebMapState;
|
|
@@ -233,7 +223,6 @@ export declare const getMapDimensions: ((state: {
|
|
|
233
223
|
* @returns {object} returnType: object - object containing the map dimension details
|
|
234
224
|
*/
|
|
235
225
|
export declare const getMapDimension: ((state: {
|
|
236
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
237
226
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
238
227
|
ui?: import("../../ui/types").UIStoreType;
|
|
239
228
|
webmap?: WebMapState;
|
|
@@ -254,7 +243,6 @@ export declare const getMapDimension: ((state: {
|
|
|
254
243
|
* @returns {string} returnType: string - string containing srs
|
|
255
244
|
*/
|
|
256
245
|
export declare const getSrs: ((state: {
|
|
257
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
258
246
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
259
247
|
ui?: import("../../ui/types").UIStoreType;
|
|
260
248
|
webmap?: WebMapState;
|
|
@@ -275,7 +263,6 @@ export declare const getSrs: ((state: {
|
|
|
275
263
|
* @returns {object} returnType: object - boundingbox object {left: number, bottom: number, right:number, top: number}
|
|
276
264
|
*/
|
|
277
265
|
export declare const getBbox: ((state: {
|
|
278
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
279
266
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
280
267
|
ui?: import("../../ui/types").UIStoreType;
|
|
281
268
|
webmap?: WebMapState;
|
|
@@ -296,7 +283,6 @@ export declare const getBbox: ((state: {
|
|
|
296
283
|
* @returns {boolean} returnType: boolean
|
|
297
284
|
*/
|
|
298
285
|
export declare const isAnimating: ((state: {
|
|
299
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
300
286
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
301
287
|
ui?: import("../../ui/types").UIStoreType;
|
|
302
288
|
webmap?: WebMapState;
|
|
@@ -317,7 +303,6 @@ export declare const isAnimating: ((state: {
|
|
|
317
303
|
* @returns {object} returnType: object - object containing isAnimating boolean and id string
|
|
318
304
|
*/
|
|
319
305
|
export declare const linkedMapAnimationInfo: ((state: {
|
|
320
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
321
306
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
322
307
|
ui?: import("../../ui/types").UIStoreType;
|
|
323
308
|
webmap?: WebMapState;
|
|
@@ -347,7 +332,6 @@ export declare const linkedMapAnimationInfo: ((state: {
|
|
|
347
332
|
* @returns {string} returnType: string
|
|
348
333
|
*/
|
|
349
334
|
export declare const getAnimationStartTime: ((state: {
|
|
350
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
351
335
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
352
336
|
ui?: import("../../ui/types").UIStoreType;
|
|
353
337
|
webmap?: WebMapState;
|
|
@@ -368,7 +352,6 @@ export declare const getAnimationStartTime: ((state: {
|
|
|
368
352
|
* @returns {string} returnType: string
|
|
369
353
|
*/
|
|
370
354
|
export declare const getAnimationEndTime: ((state: {
|
|
371
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
372
355
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
373
356
|
ui?: import("../../ui/types").UIStoreType;
|
|
374
357
|
webmap?: WebMapState;
|
|
@@ -389,7 +372,6 @@ export declare const getAnimationEndTime: ((state: {
|
|
|
389
372
|
* @returns {boolean} returnType: boolean
|
|
390
373
|
*/
|
|
391
374
|
export declare const isAutoUpdating: ((state: {
|
|
392
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
393
375
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
394
376
|
ui?: import("../../ui/types").UIStoreType;
|
|
395
377
|
webmap?: WebMapState;
|
|
@@ -409,7 +391,6 @@ export declare const isAutoUpdating: ((state: {
|
|
|
409
391
|
* @param {string} mapId mapId: string - Id of the map
|
|
410
392
|
*/
|
|
411
393
|
export declare const getActiveLayerId: ((state: {
|
|
412
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
413
394
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
414
395
|
ui?: import("../../ui/types").UIStoreType;
|
|
415
396
|
webmap?: WebMapState;
|
|
@@ -430,7 +411,6 @@ export declare const getActiveLayerId: ((state: {
|
|
|
430
411
|
* @returns {Scale} returnType: Scale - scale as an enum
|
|
431
412
|
*/
|
|
432
413
|
export declare const getMapTimeSliderScale: ((state: {
|
|
433
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
434
414
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
435
415
|
ui?: import("../../ui/types").UIStoreType;
|
|
436
416
|
webmap?: WebMapState;
|
|
@@ -451,7 +431,6 @@ export declare const getMapTimeSliderScale: ((state: {
|
|
|
451
431
|
* @returns {number} returnType: number - time step as a number
|
|
452
432
|
*/
|
|
453
433
|
export declare const getMapTimeStep: ((state: {
|
|
454
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
455
434
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
456
435
|
ui?: import("../../ui/types").UIStoreType;
|
|
457
436
|
webmap?: WebMapState;
|
|
@@ -472,7 +451,6 @@ export declare const getMapTimeStep: ((state: {
|
|
|
472
451
|
* @returns {number} returnType: number - speed as a number
|
|
473
452
|
*/
|
|
474
453
|
export declare const getMapAnimationDelay: ((state: {
|
|
475
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
476
454
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
477
455
|
ui?: import("../../ui/types").UIStoreType;
|
|
478
456
|
webmap?: WebMapState;
|
|
@@ -493,7 +471,6 @@ export declare const getMapAnimationDelay: ((state: {
|
|
|
493
471
|
* @returns {number} returnType: number - center time as a unix timestamp
|
|
494
472
|
*/
|
|
495
473
|
export declare const getMapTimeSliderCenterTime: ((state: {
|
|
496
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
497
474
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
498
475
|
ui?: import("../../ui/types").UIStoreType;
|
|
499
476
|
webmap?: WebMapState;
|
|
@@ -514,7 +491,6 @@ export declare const getMapTimeSliderCenterTime: ((state: {
|
|
|
514
491
|
* @returns {number} returnType: number - the number of seconds per pixel
|
|
515
492
|
*/
|
|
516
493
|
export declare const getMapTimeSliderSecondsPerPx: ((state: {
|
|
517
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
518
494
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
519
495
|
ui?: import("../../ui/types").UIStoreType;
|
|
520
496
|
webmap?: WebMapState;
|
|
@@ -535,7 +511,6 @@ export declare const getMapTimeSliderSecondsPerPx: ((state: {
|
|
|
535
511
|
* @returns {number} returnType: number - the number of scaleto seconds pixel
|
|
536
512
|
*/
|
|
537
513
|
export declare const getMapTimeSliderDataScaleToSecondsPerPx: ((state: {
|
|
538
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
539
514
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
540
515
|
ui?: import("../../ui/types").UIStoreType;
|
|
541
516
|
webmap?: WebMapState;
|
|
@@ -556,7 +531,6 @@ export declare const getMapTimeSliderDataScaleToSecondsPerPx: ((state: {
|
|
|
556
531
|
* @returns {boolean} returnType: boolean
|
|
557
532
|
*/
|
|
558
533
|
export declare const isTimestepAuto: ((state: {
|
|
559
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
560
534
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
561
535
|
ui?: import("../../ui/types").UIStoreType;
|
|
562
536
|
webmap?: WebMapState;
|
|
@@ -577,7 +551,6 @@ export declare const isTimestepAuto: ((state: {
|
|
|
577
551
|
* @returns {boolean} returnType: boolean
|
|
578
552
|
*/
|
|
579
553
|
export declare const isTimeSliderHoverOn: ((state: {
|
|
580
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
581
554
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
582
555
|
ui?: import("../../ui/types").UIStoreType;
|
|
583
556
|
webmap?: WebMapState;
|
|
@@ -599,7 +572,6 @@ export declare const isTimeSliderHoverOn: ((state: {
|
|
|
599
572
|
* @returns {boolean} returnType: boolean
|
|
600
573
|
*/
|
|
601
574
|
export declare const getIsLayerActiveLayer: ((state: {
|
|
602
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
603
575
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
604
576
|
ui?: import("../../ui/types").UIStoreType;
|
|
605
577
|
webmap?: WebMapState;
|
|
@@ -620,7 +592,6 @@ export declare const getIsLayerActiveLayer: ((state: {
|
|
|
620
592
|
* @returns {string} returnType: string - the mapId, or null if not found
|
|
621
593
|
*/
|
|
622
594
|
export declare const getMapIdFromLayerId: ((state: {
|
|
623
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
624
595
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
625
596
|
ui?: import("../../ui/types").UIStoreType;
|
|
626
597
|
webmap?: WebMapState;
|
|
@@ -642,7 +613,6 @@ export declare const getMapIdFromLayerId: ((state: {
|
|
|
642
613
|
* @returns {string} returnType: string - the layerId, or null if not found
|
|
643
614
|
*/
|
|
644
615
|
export declare const getLayerIdByLayerName: ((state: {
|
|
645
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
646
616
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
647
617
|
ui?: import("../../ui/types").UIStoreType;
|
|
648
618
|
webmap?: WebMapState;
|
|
@@ -664,7 +634,6 @@ export declare const getLayerIdByLayerName: ((state: {
|
|
|
664
634
|
* @returns {number} returnType: index number or -1 if not found
|
|
665
635
|
*/
|
|
666
636
|
export declare const getLayerIndexByLayerId: ((state: {
|
|
667
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
668
637
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
669
638
|
ui?: import("../../ui/types").UIStoreType;
|
|
670
639
|
webmap?: WebMapState;
|
|
@@ -686,7 +655,6 @@ export declare const getLayerIndexByLayerId: ((state: {
|
|
|
686
655
|
* @returns {object} returnType: layer, or null if not found
|
|
687
656
|
*/
|
|
688
657
|
export declare const getLayerByLayerIndex: ((state: {
|
|
689
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
690
658
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
691
659
|
ui?: import("../../ui/types").UIStoreType;
|
|
692
660
|
webmap?: WebMapState;
|
|
@@ -706,7 +674,6 @@ export declare const getLayerByLayerIndex: ((state: {
|
|
|
706
674
|
* @returns {array} returnType: array of dimension names
|
|
707
675
|
*/
|
|
708
676
|
export declare const getAllUniqueDimensions: ((state: {
|
|
709
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
710
677
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
711
678
|
ui?: import("../../ui/types").UIStoreType;
|
|
712
679
|
webmap?: WebMapState;
|
|
@@ -727,7 +694,6 @@ export declare const getAllUniqueDimensions: ((state: {
|
|
|
727
694
|
* @returns {object} returnType: latitude and longitude of pin
|
|
728
695
|
*/
|
|
729
696
|
export declare const getPinLocation: ((state: {
|
|
730
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
731
697
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
732
698
|
ui?: import("../../ui/types").UIStoreType;
|
|
733
699
|
webmap?: WebMapState;
|
|
@@ -748,7 +714,6 @@ export declare const getPinLocation: ((state: {
|
|
|
748
714
|
* @returns {boolean} returnType: boolean or undefined
|
|
749
715
|
*/
|
|
750
716
|
export declare const getDisableMapPin: ((state: {
|
|
751
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
752
717
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
753
718
|
ui?: import("../../ui/types").UIStoreType;
|
|
754
719
|
webmap?: WebMapState;
|
|
@@ -769,7 +734,6 @@ export declare const getDisableMapPin: ((state: {
|
|
|
769
734
|
* @returns {number} selectedFeatureIndex: the index of the selected geojson feature
|
|
770
735
|
*/
|
|
771
736
|
export declare const getSelectedFeatureIndex: ((state: {
|
|
772
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
773
737
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
774
738
|
ui?: import("../../ui/types").UIStoreType;
|
|
775
739
|
webmap?: WebMapState;
|
|
@@ -784,13 +748,92 @@ export declare const getSelectedFeatureIndex: ((state: {
|
|
|
784
748
|
/**
|
|
785
749
|
* Returns the active map preset id
|
|
786
750
|
*
|
|
787
|
-
* Example
|
|
751
|
+
* Example getActiveMapPresetId(store, mapId);
|
|
788
752
|
* @param {object} store store: object - store object
|
|
789
753
|
* @param {string} mapId mapId: string - Id of the map
|
|
790
754
|
* @returns {boolean} returnType: boolean or undefined
|
|
791
755
|
*/
|
|
792
756
|
export declare const getActiveMapPresetId: ((state: {
|
|
793
|
-
|
|
757
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
758
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
759
|
+
webmap?: WebMapState;
|
|
760
|
+
services?: import("../types").ServiceState;
|
|
761
|
+
layers?: import("../types").LayerState;
|
|
762
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
763
|
+
}, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string & {
|
|
764
|
+
clearCache: () => void;
|
|
765
|
+
}> & {
|
|
766
|
+
clearCache: () => void;
|
|
767
|
+
};
|
|
768
|
+
/**
|
|
769
|
+
* Creates a MapPreset from mapId
|
|
770
|
+
*
|
|
771
|
+
* Example getMapPreset(store, mapId);
|
|
772
|
+
* @param {object} store store: object - store object
|
|
773
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
774
|
+
* @returns {MapPreset} returnType: MapPreset
|
|
775
|
+
*/
|
|
776
|
+
export declare const getMapPreset: ((state: {
|
|
777
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
778
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
779
|
+
webmap?: WebMapState;
|
|
780
|
+
services?: import("../types").ServiceState;
|
|
781
|
+
layers?: import("../types").LayerState;
|
|
782
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
783
|
+
}, params_0: string) => MapPreset) & import("reselect").OutputSelectorFields<((args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").ReduxLayer[], args_3: {}, args_4: string, args_5: string, args_6: boolean, args_7: boolean) => MapPreset) & {
|
|
784
|
+
clearCache: () => void;
|
|
785
|
+
}> & {
|
|
786
|
+
clearCache: () => void;
|
|
787
|
+
};
|
|
788
|
+
/**
|
|
789
|
+
* Returns the loading state of the map preset
|
|
790
|
+
*
|
|
791
|
+
* Example getIsMapPresetLoading(store, mapId);
|
|
792
|
+
* @param {object} store store: object - store object
|
|
793
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
794
|
+
* @returns {boolean} returnType: boolean
|
|
795
|
+
*/
|
|
796
|
+
export declare const getIsMapPresetLoading: ((state: {
|
|
797
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
798
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
799
|
+
webmap?: WebMapState;
|
|
800
|
+
services?: import("../types").ServiceState;
|
|
801
|
+
layers?: import("../types").LayerState;
|
|
802
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
803
|
+
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
|
|
804
|
+
clearCache: () => void;
|
|
805
|
+
}> & {
|
|
806
|
+
clearCache: () => void;
|
|
807
|
+
};
|
|
808
|
+
/**
|
|
809
|
+
* Returns the has changes state of the map preset
|
|
810
|
+
*
|
|
811
|
+
* Example getHasMapPresetChanges(store, mapId);
|
|
812
|
+
* @param {object} store store: object - store object
|
|
813
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
814
|
+
* @returns {boolean} returnType: boolean
|
|
815
|
+
*/
|
|
816
|
+
export declare const getHasMapPresetChanges: ((state: {
|
|
817
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
818
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
819
|
+
webmap?: WebMapState;
|
|
820
|
+
services?: import("../types").ServiceState;
|
|
821
|
+
layers?: import("../types").LayerState;
|
|
822
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
823
|
+
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
|
|
824
|
+
clearCache: () => void;
|
|
825
|
+
}> & {
|
|
826
|
+
clearCache: () => void;
|
|
827
|
+
};
|
|
828
|
+
/**
|
|
829
|
+
* Returns the error state of the map preset
|
|
830
|
+
*
|
|
831
|
+
* Example getMapPresetError(store, mapId);
|
|
832
|
+
* @param {object} store store: object - store object
|
|
833
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
834
|
+
* @returns {Error} returnType: string
|
|
835
|
+
*/
|
|
836
|
+
export declare const getMapPresetError: ((state: {
|
|
794
837
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
795
838
|
ui?: import("../../ui/types").UIStoreType;
|
|
796
839
|
webmap?: WebMapState;
|
|
@@ -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[];
|
|
@@ -39,7 +36,10 @@ export interface WebMap {
|
|
|
39
36
|
mapPinLocation?: MapLocation;
|
|
40
37
|
disableMapPin?: boolean;
|
|
41
38
|
selectedFeatureIndex?: number;
|
|
42
|
-
|
|
39
|
+
activeMapPresetId?: string;
|
|
40
|
+
isMapPresetLoading?: boolean;
|
|
41
|
+
hasMapPresetChanges?: boolean;
|
|
42
|
+
mapPresetError?: string;
|
|
43
43
|
}
|
|
44
44
|
export interface WebMapState {
|
|
45
45
|
byId: Record<string, WebMap>;
|
|
@@ -72,50 +72,35 @@ export interface AnimationPayloadType {
|
|
|
72
72
|
interval?: number;
|
|
73
73
|
speed?: SpeedFactorType;
|
|
74
74
|
}
|
|
75
|
+
export declare enum MapActionOrigin {
|
|
76
|
+
map = "map"
|
|
77
|
+
}
|
|
75
78
|
export interface MapPreset {
|
|
76
79
|
layers?: Layer[];
|
|
77
|
-
overLayers?: Layer[];
|
|
78
|
-
baseLayer?: Layer;
|
|
79
80
|
activeLayerId?: string;
|
|
80
81
|
proj?: {
|
|
81
82
|
bbox: Bbox;
|
|
82
83
|
srs: string;
|
|
83
84
|
};
|
|
84
85
|
shouldAnimate?: boolean;
|
|
86
|
+
shouldAutoUpdate?: boolean;
|
|
87
|
+
toggleTimestepAuto?: boolean;
|
|
85
88
|
animationPayload?: AnimationPayloadType;
|
|
86
89
|
shouldShowZoomControls?: boolean;
|
|
87
|
-
shouldAutoUpdate?: boolean;
|
|
88
90
|
showTimeSlider?: boolean;
|
|
89
91
|
displayMapPin?: boolean;
|
|
90
|
-
toggleTimestepAuto?: boolean;
|
|
91
92
|
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,22 +154,10 @@ 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;
|
|
@@ -232,63 +165,32 @@ export interface SetAnimationEndTimePayload {
|
|
|
232
165
|
export interface ToggleTimestepAutoPayload {
|
|
233
166
|
mapId: string;
|
|
234
167
|
timestepAuto: boolean;
|
|
235
|
-
|
|
236
|
-
export interface ToggleTimestepAuto extends Action {
|
|
237
|
-
type: typeof WEBMAP_TOGGLE_TIMESTEP_AUTO;
|
|
238
|
-
payload: ToggleTimestepAutoPayload;
|
|
168
|
+
origin?: MapActionOrigin;
|
|
239
169
|
}
|
|
240
170
|
export interface ToggleTimeSliderHoverPayload {
|
|
241
171
|
mapId: string;
|
|
242
172
|
isTimeSliderHoverOn: boolean;
|
|
243
173
|
}
|
|
244
|
-
export interface ToggleTimeSliderHover extends Action {
|
|
245
|
-
type: typeof WEBMAP_TOGGLE_TIME_SLIDER_HOVER;
|
|
246
|
-
payload: ToggleTimeSliderHoverPayload;
|
|
247
|
-
}
|
|
248
|
-
export interface SetTimeSliderCenterTime extends Action {
|
|
249
|
-
type: typeof WEBMAP_SET_TIME_SLIDER_CENTER_TIME;
|
|
250
|
-
payload: SetTimeSliderCenterTimePayload;
|
|
251
|
-
}
|
|
252
174
|
export interface SetTimeSliderCenterTimePayload {
|
|
253
175
|
mapId: string;
|
|
254
176
|
timeSliderCenterTime: number;
|
|
255
177
|
}
|
|
256
|
-
export interface SetTimeSliderSecondsPerPx extends Action {
|
|
257
|
-
type: typeof WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX;
|
|
258
|
-
payload: SetTimeSliderSecondsPerPxPayload;
|
|
259
|
-
}
|
|
260
178
|
export interface SetTimeSliderSecondsPerPxPayload {
|
|
261
179
|
mapId: string;
|
|
262
180
|
timeSliderSecondsPerPx: number;
|
|
263
181
|
}
|
|
264
|
-
export interface SetTimeSliderDataScaleToSecondsPerPx extends Action {
|
|
265
|
-
type: typeof WEBMAP_SET_TIME_SLIDER_DATA_SCALE_TO_SECONDS_PER_PX;
|
|
266
|
-
payload: SetTimeSliderDataScaleToSecondsPerPxPayload;
|
|
267
|
-
}
|
|
268
182
|
export interface SetTimeSliderDataScaleToSecondsPerPxPayload {
|
|
269
183
|
mapId: string;
|
|
270
184
|
timeSliderDataScaleToSecondsPerPx: number;
|
|
271
185
|
}
|
|
272
|
-
export interface SetMapPinLocation extends Action {
|
|
273
|
-
type: typeof WEBMAP_SET_PIN;
|
|
274
|
-
payload: MapPinLocationPayload;
|
|
275
|
-
}
|
|
276
186
|
export interface MapPinLocationPayload {
|
|
277
187
|
mapId: string;
|
|
278
188
|
mapPinLocation: MapLocation;
|
|
279
189
|
}
|
|
280
|
-
export interface SetDisableMapPin extends Action {
|
|
281
|
-
type: typeof WEBMAP_DISABLE_PIN;
|
|
282
|
-
payload: DisableMapPinPayload;
|
|
283
|
-
}
|
|
284
190
|
export interface DisableMapPinPayload {
|
|
285
191
|
mapId: string;
|
|
286
192
|
disableMapPin: boolean;
|
|
287
193
|
}
|
|
288
|
-
export interface SetSelectedFeature {
|
|
289
|
-
type: typeof WEBMAP_SET_SELECTED_FEATURE_INDEX;
|
|
290
|
-
payload: SetSelectedFeaturePayload;
|
|
291
|
-
}
|
|
292
194
|
export interface SetSelectedFeaturePayload {
|
|
293
195
|
mapId: string;
|
|
294
196
|
selectedFeatureIndex: number;
|
|
@@ -297,16 +199,19 @@ export interface SetMapPresetPayload {
|
|
|
297
199
|
mapId: string;
|
|
298
200
|
initialProps: MapPresetInitialProps;
|
|
299
201
|
}
|
|
300
|
-
export interface SetMapPreset extends Action {
|
|
301
|
-
type: typeof WEBMAP_SET_MAPPRESET;
|
|
302
|
-
payload: SetMapPresetPayload;
|
|
303
|
-
}
|
|
304
202
|
export interface SetActiveMapPresetPayload {
|
|
305
203
|
mapId: string;
|
|
306
204
|
presetId: string;
|
|
307
205
|
}
|
|
308
|
-
export interface
|
|
309
|
-
|
|
310
|
-
|
|
206
|
+
export interface SetIsMapPresetLoadingPayload {
|
|
207
|
+
mapId: string;
|
|
208
|
+
isLoading: boolean;
|
|
209
|
+
}
|
|
210
|
+
export interface SetIsMapPresetHasChangesPayload {
|
|
211
|
+
mapId: string;
|
|
212
|
+
hasChanges: boolean;
|
|
213
|
+
}
|
|
214
|
+
export interface SetMapPresetErrorPayload {
|
|
215
|
+
mapId: string;
|
|
216
|
+
error: string;
|
|
311
217
|
}
|
|
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,9 @@ interface CreateMapProps {
|
|
|
24
23
|
timeSliderDataScaleToSecondsPerPx?: number;
|
|
25
24
|
isTimestepAuto?: boolean;
|
|
26
25
|
isTimeSliderHoverOn?: boolean;
|
|
27
|
-
|
|
26
|
+
activeMapPresetId?: string;
|
|
28
27
|
}
|
|
29
|
-
export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating,
|
|
28
|
+
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, activeMapPresetId, }: CreateMapProps) => WebMap;
|
|
30
29
|
export declare const checkValidLayersPayload: (layers: Layer[], mapId: string) => boolean;
|
|
31
30
|
/**
|
|
32
31
|
* This will get the map from the map draftstate.
|