@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
@@ -1,6 +1,7 @@
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
+ import { UIStoreType } from '../../ui/types';
4
5
  /**
5
6
  * Gets the map state by mapId
6
7
  *
@@ -27,7 +28,7 @@ export declare const getAllMapIds: (store: AppStore) => string[];
27
28
  */
28
29
  export declare const getFirstMap: ((state: {
29
30
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
30
- ui?: import("../../ui/types").UIStoreType;
31
+ ui?: UIStoreType;
31
32
  webmap?: WebMapState;
32
33
  services?: import("../types").ServiceState;
33
34
  layers?: import("../types").LayerState;
@@ -46,7 +47,7 @@ export declare const getFirstMap: ((state: {
46
47
  */
47
48
  export declare const getFirstMapId: ((state: {
48
49
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
49
- ui?: import("../../ui/types").UIStoreType;
50
+ ui?: UIStoreType;
50
51
  webmap?: WebMapState;
51
52
  services?: import("../types").ServiceState;
52
53
  layers?: import("../types").LayerState;
@@ -63,7 +64,7 @@ export declare const getFirstMapId: ((state: {
63
64
  */
64
65
  export declare const getIsMapPresent: ((state: {
65
66
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
66
- ui?: import("../../ui/types").UIStoreType;
67
+ ui?: UIStoreType;
67
68
  webmap?: WebMapState;
68
69
  services?: import("../types").ServiceState;
69
70
  layers?: import("../types").LayerState;
@@ -83,7 +84,7 @@ export declare const getIsMapPresent: ((state: {
83
84
  */
84
85
  export declare const getLayerIds: ((state: {
85
86
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
86
- ui?: import("../../ui/types").UIStoreType;
87
+ ui?: UIStoreType;
87
88
  webmap?: WebMapState;
88
89
  services?: import("../types").ServiceState;
89
90
  layers?: import("../types").LayerState;
@@ -103,7 +104,7 @@ export declare const getLayerIds: ((state: {
103
104
  */
104
105
  export declare const getMapLayers: ((state: {
105
106
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
106
- ui?: import("../../ui/types").UIStoreType;
107
+ ui?: UIStoreType;
107
108
  webmap?: WebMapState;
108
109
  services?: import("../types").ServiceState;
109
110
  layers?: import("../types").LayerState;
@@ -123,7 +124,7 @@ export declare const getMapLayers: ((state: {
123
124
  */
124
125
  export declare const getMapBaseLayersIds: ((state: {
125
126
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
126
- ui?: import("../../ui/types").UIStoreType;
127
+ ui?: UIStoreType;
127
128
  webmap?: WebMapState;
128
129
  services?: import("../types").ServiceState;
129
130
  layers?: import("../types").LayerState;
@@ -143,7 +144,7 @@ export declare const getMapBaseLayersIds: ((state: {
143
144
  */
144
145
  export declare const getMapBaseLayers: ((state: {
145
146
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
146
- ui?: import("../../ui/types").UIStoreType;
147
+ ui?: UIStoreType;
147
148
  webmap?: WebMapState;
148
149
  services?: import("../types").ServiceState;
149
150
  layers?: import("../types").LayerState;
@@ -163,7 +164,7 @@ export declare const getMapBaseLayers: ((state: {
163
164
  */
164
165
  export declare const getMapOverLayersIds: ((state: {
165
166
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
166
- ui?: import("../../ui/types").UIStoreType;
167
+ ui?: UIStoreType;
167
168
  webmap?: WebMapState;
168
169
  services?: import("../types").ServiceState;
169
170
  layers?: import("../types").LayerState;
@@ -183,7 +184,7 @@ export declare const getMapOverLayersIds: ((state: {
183
184
  */
184
185
  export declare const getMapOverLayers: ((state: {
185
186
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
186
- ui?: import("../../ui/types").UIStoreType;
187
+ ui?: UIStoreType;
187
188
  webmap?: WebMapState;
188
189
  services?: import("../types").ServiceState;
189
190
  layers?: import("../types").LayerState;
@@ -203,7 +204,7 @@ export declare const getMapOverLayers: ((state: {
203
204
  */
204
205
  export declare const getMapDimensions: ((state: {
205
206
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
206
- ui?: import("../../ui/types").UIStoreType;
207
+ ui?: UIStoreType;
207
208
  webmap?: WebMapState;
208
209
  services?: import("../types").ServiceState;
209
210
  layers?: import("../types").LayerState;
@@ -224,7 +225,7 @@ export declare const getMapDimensions: ((state: {
224
225
  */
225
226
  export declare const getMapDimension: ((state: {
226
227
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
227
- ui?: import("../../ui/types").UIStoreType;
228
+ ui?: UIStoreType;
228
229
  webmap?: WebMapState;
229
230
  services?: import("../types").ServiceState;
230
231
  layers?: import("../types").LayerState;
@@ -244,7 +245,7 @@ export declare const getMapDimension: ((state: {
244
245
  */
245
246
  export declare const getSrs: ((state: {
246
247
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
247
- ui?: import("../../ui/types").UIStoreType;
248
+ ui?: UIStoreType;
248
249
  webmap?: WebMapState;
249
250
  services?: import("../types").ServiceState;
250
251
  layers?: import("../types").LayerState;
@@ -264,7 +265,7 @@ export declare const getSrs: ((state: {
264
265
  */
265
266
  export declare const getBbox: ((state: {
266
267
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
267
- ui?: import("../../ui/types").UIStoreType;
268
+ ui?: UIStoreType;
268
269
  webmap?: WebMapState;
269
270
  services?: import("../types").ServiceState;
270
271
  layers?: import("../types").LayerState;
@@ -284,7 +285,7 @@ export declare const getBbox: ((state: {
284
285
  */
285
286
  export declare const isAnimating: ((state: {
286
287
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
287
- ui?: import("../../ui/types").UIStoreType;
288
+ ui?: UIStoreType;
288
289
  webmap?: WebMapState;
289
290
  services?: import("../types").ServiceState;
290
291
  layers?: import("../types").LayerState;
@@ -304,7 +305,7 @@ export declare const isAnimating: ((state: {
304
305
  */
305
306
  export declare const linkedMapAnimationInfo: ((state: {
306
307
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
307
- ui?: import("../../ui/types").UIStoreType;
308
+ ui?: UIStoreType;
308
309
  webmap?: WebMapState;
309
310
  services?: import("../types").ServiceState;
310
311
  layers?: import("../types").LayerState;
@@ -333,7 +334,7 @@ export declare const linkedMapAnimationInfo: ((state: {
333
334
  */
334
335
  export declare const getAnimationStartTime: ((state: {
335
336
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
336
- ui?: import("../../ui/types").UIStoreType;
337
+ ui?: UIStoreType;
337
338
  webmap?: WebMapState;
338
339
  services?: import("../types").ServiceState;
339
340
  layers?: import("../types").LayerState;
@@ -353,7 +354,7 @@ export declare const getAnimationStartTime: ((state: {
353
354
  */
354
355
  export declare const getAnimationEndTime: ((state: {
355
356
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
356
- ui?: import("../../ui/types").UIStoreType;
357
+ ui?: UIStoreType;
357
358
  webmap?: WebMapState;
358
359
  services?: import("../types").ServiceState;
359
360
  layers?: import("../types").LayerState;
@@ -373,7 +374,7 @@ export declare const getAnimationEndTime: ((state: {
373
374
  */
374
375
  export declare const isAutoUpdating: ((state: {
375
376
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
376
- ui?: import("../../ui/types").UIStoreType;
377
+ ui?: UIStoreType;
377
378
  webmap?: WebMapState;
378
379
  services?: import("../types").ServiceState;
379
380
  layers?: import("../types").LayerState;
@@ -392,7 +393,7 @@ export declare const isAutoUpdating: ((state: {
392
393
  */
393
394
  export declare const getActiveLayerId: ((state: {
394
395
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
395
- ui?: import("../../ui/types").UIStoreType;
396
+ ui?: UIStoreType;
396
397
  webmap?: WebMapState;
397
398
  services?: import("../types").ServiceState;
398
399
  layers?: import("../types").LayerState;
@@ -412,7 +413,7 @@ export declare const getActiveLayerId: ((state: {
412
413
  */
413
414
  export declare const getMapTimeSliderScale: ((state: {
414
415
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
415
- ui?: import("../../ui/types").UIStoreType;
416
+ ui?: UIStoreType;
416
417
  webmap?: WebMapState;
417
418
  services?: import("../types").ServiceState;
418
419
  layers?: import("../types").LayerState;
@@ -432,7 +433,7 @@ export declare const getMapTimeSliderScale: ((state: {
432
433
  */
433
434
  export declare const getMapTimeStep: ((state: {
434
435
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
435
- ui?: import("../../ui/types").UIStoreType;
436
+ ui?: UIStoreType;
436
437
  webmap?: WebMapState;
437
438
  services?: import("../types").ServiceState;
438
439
  layers?: import("../types").LayerState;
@@ -452,7 +453,7 @@ export declare const getMapTimeStep: ((state: {
452
453
  */
453
454
  export declare const getMapAnimationDelay: ((state: {
454
455
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
455
- ui?: import("../../ui/types").UIStoreType;
456
+ ui?: UIStoreType;
456
457
  webmap?: WebMapState;
457
458
  services?: import("../types").ServiceState;
458
459
  layers?: import("../types").LayerState;
@@ -472,7 +473,7 @@ export declare const getMapAnimationDelay: ((state: {
472
473
  */
473
474
  export declare const getMapTimeSliderCenterTime: ((state: {
474
475
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
475
- ui?: import("../../ui/types").UIStoreType;
476
+ ui?: UIStoreType;
476
477
  webmap?: WebMapState;
477
478
  services?: import("../types").ServiceState;
478
479
  layers?: import("../types").LayerState;
@@ -492,7 +493,7 @@ export declare const getMapTimeSliderCenterTime: ((state: {
492
493
  */
493
494
  export declare const getMapTimeSliderSecondsPerPx: ((state: {
494
495
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
495
- ui?: import("../../ui/types").UIStoreType;
496
+ ui?: UIStoreType;
496
497
  webmap?: WebMapState;
497
498
  services?: import("../types").ServiceState;
498
499
  layers?: import("../types").LayerState;
@@ -512,7 +513,7 @@ export declare const getMapTimeSliderSecondsPerPx: ((state: {
512
513
  */
513
514
  export declare const getMapTimeSliderDataScaleToSecondsPerPx: ((state: {
514
515
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
515
- ui?: import("../../ui/types").UIStoreType;
516
+ ui?: UIStoreType;
516
517
  webmap?: WebMapState;
517
518
  services?: import("../types").ServiceState;
518
519
  layers?: import("../types").LayerState;
@@ -532,7 +533,7 @@ export declare const getMapTimeSliderDataScaleToSecondsPerPx: ((state: {
532
533
  */
533
534
  export declare const isTimestepAuto: ((state: {
534
535
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
535
- ui?: import("../../ui/types").UIStoreType;
536
+ ui?: UIStoreType;
536
537
  webmap?: WebMapState;
537
538
  services?: import("../types").ServiceState;
538
539
  layers?: import("../types").LayerState;
@@ -552,7 +553,47 @@ export declare const isTimestepAuto: ((state: {
552
553
  */
553
554
  export declare const isTimeSliderHoverOn: ((state: {
554
555
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
555
- ui?: import("../../ui/types").UIStoreType;
556
+ ui?: UIStoreType;
557
+ webmap?: WebMapState;
558
+ services?: import("../types").ServiceState;
559
+ layers?: import("../types").LayerState;
560
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
561
+ }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
562
+ clearCache: () => void;
563
+ }> & {
564
+ clearCache: () => void;
565
+ };
566
+ /**
567
+ * Returns map if zoomcontrols are visible
568
+ *
569
+ * Example: isZoomControlsVisible = isZoomControlsVisible(store, 'mapid_1')
570
+ * @param {object} store store: object - store object
571
+ * @param {string} mapId mapId: string - Id of the map
572
+ * @returns {boolean} returnType: boolean
573
+ */
574
+ export declare const isZoomControlsVisible: ((state: {
575
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
576
+ ui?: UIStoreType;
577
+ webmap?: WebMapState;
578
+ services?: import("../types").ServiceState;
579
+ layers?: import("../types").LayerState;
580
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
581
+ }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
582
+ clearCache: () => void;
583
+ }> & {
584
+ clearCache: () => void;
585
+ };
586
+ /**
587
+ * Returns map is time slider visible
588
+ *
589
+ * Example: isTimeSliderHoverOn = isTimeSliderVisible(store, 'mapid_1')
590
+ * @param {object} store store: object - store object
591
+ * @param {string} mapId mapId: string - Id of the map
592
+ * @returns {boolean} returnType: boolean
593
+ */
594
+ export declare const isTimeSliderVisible: ((state: {
595
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
596
+ ui?: UIStoreType;
556
597
  webmap?: WebMapState;
557
598
  services?: import("../types").ServiceState;
558
599
  layers?: import("../types").LayerState;
@@ -573,7 +614,7 @@ export declare const isTimeSliderHoverOn: ((state: {
573
614
  */
574
615
  export declare const getIsLayerActiveLayer: ((state: {
575
616
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
576
- ui?: import("../../ui/types").UIStoreType;
617
+ ui?: UIStoreType;
577
618
  webmap?: WebMapState;
578
619
  services?: import("../types").ServiceState;
579
620
  layers?: import("../types").LayerState;
@@ -593,7 +634,7 @@ export declare const getIsLayerActiveLayer: ((state: {
593
634
  */
594
635
  export declare const getMapIdFromLayerId: ((state: {
595
636
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
596
- ui?: import("../../ui/types").UIStoreType;
637
+ ui?: UIStoreType;
597
638
  webmap?: WebMapState;
598
639
  services?: import("../types").ServiceState;
599
640
  layers?: import("../types").LayerState;
@@ -614,7 +655,7 @@ export declare const getMapIdFromLayerId: ((state: {
614
655
  */
615
656
  export declare const getLayerIdByLayerName: ((state: {
616
657
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
617
- ui?: import("../../ui/types").UIStoreType;
658
+ ui?: UIStoreType;
618
659
  webmap?: WebMapState;
619
660
  services?: import("../types").ServiceState;
620
661
  layers?: import("../types").LayerState;
@@ -635,7 +676,7 @@ export declare const getLayerIdByLayerName: ((state: {
635
676
  */
636
677
  export declare const getLayerIndexByLayerId: ((state: {
637
678
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
638
- ui?: import("../../ui/types").UIStoreType;
679
+ ui?: UIStoreType;
639
680
  webmap?: WebMapState;
640
681
  services?: import("../types").ServiceState;
641
682
  layers?: import("../types").LayerState;
@@ -656,7 +697,7 @@ export declare const getLayerIndexByLayerId: ((state: {
656
697
  */
657
698
  export declare const getLayerByLayerIndex: ((state: {
658
699
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
659
- ui?: import("../../ui/types").UIStoreType;
700
+ ui?: UIStoreType;
660
701
  webmap?: WebMapState;
661
702
  services?: import("../types").ServiceState;
662
703
  layers?: import("../types").LayerState;
@@ -675,7 +716,7 @@ export declare const getLayerByLayerIndex: ((state: {
675
716
  */
676
717
  export declare const getAllUniqueDimensions: ((state: {
677
718
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
678
- ui?: import("../../ui/types").UIStoreType;
719
+ ui?: UIStoreType;
679
720
  webmap?: WebMapState;
680
721
  services?: import("../types").ServiceState;
681
722
  layers?: import("../types").LayerState;
@@ -695,7 +736,7 @@ export declare const getAllUniqueDimensions: ((state: {
695
736
  */
696
737
  export declare const getPinLocation: ((state: {
697
738
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
698
- ui?: import("../../ui/types").UIStoreType;
739
+ ui?: UIStoreType;
699
740
  webmap?: WebMapState;
700
741
  services?: import("../types").ServiceState;
701
742
  layers?: import("../types").LayerState;
@@ -715,7 +756,27 @@ export declare const getPinLocation: ((state: {
715
756
  */
716
757
  export declare const getDisableMapPin: ((state: {
717
758
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
718
- ui?: import("../../ui/types").UIStoreType;
759
+ ui?: UIStoreType;
760
+ webmap?: WebMapState;
761
+ services?: import("../types").ServiceState;
762
+ layers?: import("../types").LayerState;
763
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
764
+ }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
765
+ clearCache: () => void;
766
+ }> & {
767
+ clearCache: () => void;
768
+ };
769
+ /**
770
+ * Returns the diplay map pin boolean for the current map
771
+ *
772
+ * Example getDisplayMapPin(store);
773
+ * @param {object} store store: object - store object
774
+ * @param {string} mapId mapId: string - Id of the map
775
+ * @returns {boolean} returnType: boolean
776
+ */
777
+ export declare const getDisplayMapPin: ((state: {
778
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
779
+ ui?: UIStoreType;
719
780
  webmap?: WebMapState;
720
781
  services?: import("../types").ServiceState;
721
782
  layers?: import("../types").LayerState;
@@ -735,7 +796,7 @@ export declare const getDisableMapPin: ((state: {
735
796
  */
736
797
  export declare const getSelectedFeatureIndex: ((state: {
737
798
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
738
- ui?: import("../../ui/types").UIStoreType;
799
+ ui?: UIStoreType;
739
800
  webmap?: WebMapState;
740
801
  services?: import("../types").ServiceState;
741
802
  layers?: import("../types").LayerState;
@@ -748,14 +809,114 @@ export declare const getSelectedFeatureIndex: ((state: {
748
809
  /**
749
810
  * Returns the active map preset id
750
811
  *
751
- * Example getActivePresetId(store);
812
+ * Example getActiveMapPresetId(store, mapId);
752
813
  * @param {object} store store: object - store object
753
814
  * @param {string} mapId mapId: string - Id of the map
754
815
  * @returns {boolean} returnType: boolean or undefined
755
816
  */
756
817
  export declare const getActiveMapPresetId: ((state: {
757
818
  syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
758
- ui?: import("../../ui/types").UIStoreType;
819
+ ui?: UIStoreType;
820
+ webmap?: WebMapState;
821
+ services?: import("../types").ServiceState;
822
+ layers?: import("../types").LayerState;
823
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
824
+ }, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string & {
825
+ clearCache: () => void;
826
+ }> & {
827
+ clearCache: () => void;
828
+ };
829
+ /**
830
+ * Returns the legend id
831
+ *
832
+ * Example getLegendId(store, mapId);
833
+ * @param {object} store store: object - store object
834
+ * @param {string} mapId mapId: string - Id of the map
835
+ * @returns {boolean} returnType: id or undefined
836
+ */
837
+ export declare const getLegendId: ((state: {
838
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
839
+ ui?: UIStoreType;
840
+ webmap?: WebMapState;
841
+ services?: import("../types").ServiceState;
842
+ layers?: import("../types").LayerState;
843
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
844
+ }, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string & {
845
+ clearCache: () => void;
846
+ }> & {
847
+ clearCache: () => void;
848
+ };
849
+ /**
850
+ * Creates a MapPreset from mapId
851
+ *
852
+ * Example getMapPreset(store, mapId);
853
+ * @param {object} store store: object - store object
854
+ * @param {string} mapId mapId: string - Id of the map
855
+ * @returns {MapPreset} returnType: MapPreset
856
+ */
857
+ export declare const getMapPreset: ((state: {
858
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
859
+ ui?: UIStoreType;
860
+ webmap?: WebMapState;
861
+ services?: import("../types").ServiceState;
862
+ layers?: import("../types").LayerState;
863
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
864
+ }, 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, args_8: boolean, args_9: boolean, args_10: boolean, args_11: number, args_12: number, args_13: boolean, args_14: string, args_15: UIStoreType) => MapPreset) & {
865
+ clearCache: () => void;
866
+ }> & {
867
+ clearCache: () => void;
868
+ };
869
+ /**
870
+ * Returns the loading state of the map preset
871
+ *
872
+ * Example getIsMapPresetLoading(store, mapId);
873
+ * @param {object} store store: object - store object
874
+ * @param {string} mapId mapId: string - Id of the map
875
+ * @returns {boolean} returnType: boolean
876
+ */
877
+ export declare const getIsMapPresetLoading: ((state: {
878
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
879
+ ui?: UIStoreType;
880
+ webmap?: WebMapState;
881
+ services?: import("../types").ServiceState;
882
+ layers?: import("../types").LayerState;
883
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
884
+ }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
885
+ clearCache: () => void;
886
+ }> & {
887
+ clearCache: () => void;
888
+ };
889
+ /**
890
+ * Returns the has changes state of the map preset
891
+ *
892
+ * Example getHasMapPresetChanges(store, mapId);
893
+ * @param {object} store store: object - store object
894
+ * @param {string} mapId mapId: string - Id of the map
895
+ * @returns {boolean} returnType: boolean
896
+ */
897
+ export declare const getHasMapPresetChanges: ((state: {
898
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
899
+ ui?: UIStoreType;
900
+ webmap?: WebMapState;
901
+ services?: import("../types").ServiceState;
902
+ layers?: import("../types").LayerState;
903
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
904
+ }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
905
+ clearCache: () => void;
906
+ }> & {
907
+ clearCache: () => void;
908
+ };
909
+ /**
910
+ * Returns the error state of the map preset
911
+ *
912
+ * Example getMapPresetError(store, mapId);
913
+ * @param {object} store store: object - store object
914
+ * @param {string} mapId mapId: string - Id of the map
915
+ * @returns {Error} returnType: string
916
+ */
917
+ export declare const getMapPresetError: ((state: {
918
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
919
+ ui?: UIStoreType;
759
920
  webmap?: WebMapState;
760
921
  services?: import("../types").ServiceState;
761
922
  layers?: import("../types").LayerState;
@@ -1,5 +1,5 @@
1
1
  import { DateInterval } from '@opengeoweb/webmap';
2
- import type { Layer } from '../types';
2
+ import type { Layer, LayerActionOrigin } from '../types';
3
3
  export interface Dimension {
4
4
  name?: string;
5
5
  units?: string;
@@ -17,7 +17,6 @@ export interface WebMap {
17
17
  animationStartTime?: string;
18
18
  animationEndTime?: string;
19
19
  isAutoUpdating: boolean;
20
- isLooping: boolean;
21
20
  srs: string;
22
21
  bbox: Bbox;
23
22
  mapLayers: string[];
@@ -34,10 +33,17 @@ export interface WebMap {
34
33
  timeSliderDataScaleToSecondsPerPx?: number;
35
34
  isTimestepAuto?: boolean;
36
35
  isTimeSliderHoverOn?: boolean;
36
+ isTimeSliderVisible?: boolean;
37
+ shouldShowZoomControls?: boolean;
37
38
  mapPinLocation?: MapLocation;
38
39
  disableMapPin?: boolean;
40
+ displayMapPin?: boolean;
39
41
  selectedFeatureIndex?: number;
40
- activePresetId?: string;
42
+ activeMapPresetId?: string;
43
+ isMapPresetLoading?: boolean;
44
+ hasMapPresetChanges?: boolean;
45
+ mapPresetError?: string;
46
+ legendId?: string;
41
47
  }
42
48
  export interface WebMapState {
43
49
  byId: Record<string, WebMap>;
@@ -70,22 +76,24 @@ export interface AnimationPayloadType {
70
76
  interval?: number;
71
77
  speed?: SpeedFactorType;
72
78
  }
79
+ export declare enum MapActionOrigin {
80
+ map = "map"
81
+ }
73
82
  export interface MapPreset {
74
83
  layers?: Layer[];
75
- overLayers?: Layer[];
76
84
  activeLayerId?: string;
77
85
  proj?: {
78
86
  bbox: Bbox;
79
87
  srs: string;
80
88
  };
81
89
  shouldAnimate?: boolean;
82
- animationPayload?: AnimationPayloadType;
83
- shouldShowZoomControls?: boolean;
84
90
  shouldAutoUpdate?: boolean;
85
91
  showTimeSlider?: boolean;
86
92
  displayMapPin?: boolean;
93
+ shouldShowZoomControls?: boolean;
87
94
  toggleTimestepAuto?: boolean;
88
- setTimestep?: number;
95
+ animationPayload?: AnimationPayloadType;
96
+ shouldShowLegend?: boolean;
89
97
  }
90
98
  export interface MapPresetInitialProps {
91
99
  mapPreset: MapPreset;
@@ -122,21 +130,21 @@ export interface SetMapAnimationStartPayload {
122
130
  end?: string;
123
131
  interval?: number;
124
132
  timeList?: TimeListType[];
133
+ origin?: MapActionOrigin;
125
134
  }
126
135
  export interface SetMapAnimationStopPayload {
127
136
  mapId: string;
137
+ origin?: MapActionOrigin;
128
138
  }
129
139
  export interface SetActiveLayerIdPayload {
130
140
  mapId: string;
131
141
  layerId: string;
142
+ origin?: LayerActionOrigin | string;
132
143
  }
133
144
  export interface ToggleAutoUpdatePayload {
134
145
  mapId: string;
135
146
  shouldAutoUpdate: boolean;
136
- }
137
- export interface ToggleLoopPayload {
138
- mapId: string;
139
- shouldLoop: boolean;
147
+ origin?: MapActionOrigin;
140
148
  }
141
149
  export interface SetTimeSliderScalePayload {
142
150
  mapId: string;
@@ -145,10 +153,12 @@ export interface SetTimeSliderScalePayload {
145
153
  export interface SetTimeStepPayload {
146
154
  mapId: string;
147
155
  timeStep: number;
156
+ origin?: MapActionOrigin;
148
157
  }
149
158
  export interface SetAnimationDelayPayload {
150
159
  mapId: string;
151
160
  animationDelay: number;
161
+ origin?: MapActionOrigin;
152
162
  }
153
163
  export interface SetAnimationStartTimePayload {
154
164
  mapId: string;
@@ -158,14 +168,24 @@ export interface SetAnimationEndTimePayload {
158
168
  mapId: string;
159
169
  animationEndTime: string;
160
170
  }
171
+ export interface SetAnimationIntervalPayload {
172
+ mapId: string;
173
+ interval: number;
174
+ }
161
175
  export interface ToggleTimestepAutoPayload {
162
176
  mapId: string;
163
177
  timestepAuto: boolean;
178
+ origin?: MapActionOrigin;
164
179
  }
165
180
  export interface ToggleTimeSliderHoverPayload {
166
181
  mapId: string;
167
182
  isTimeSliderHoverOn: boolean;
168
183
  }
184
+ export interface ToggleTimeSliderIsVisiblePayload {
185
+ mapId: string;
186
+ isTimeSliderVisible: boolean;
187
+ origin?: MapActionOrigin;
188
+ }
169
189
  export interface SetTimeSliderCenterTimePayload {
170
190
  mapId: string;
171
191
  timeSliderCenterTime: number;
@@ -178,6 +198,10 @@ export interface SetTimeSliderDataScaleToSecondsPerPxPayload {
178
198
  mapId: string;
179
199
  timeSliderDataScaleToSecondsPerPx: number;
180
200
  }
201
+ export interface ToggleZoomControlsPayload {
202
+ mapId: string;
203
+ shouldShowZoomControls: boolean;
204
+ }
181
205
  export interface MapPinLocationPayload {
182
206
  mapId: string;
183
207
  mapPinLocation: MapLocation;
@@ -186,6 +210,10 @@ export interface DisableMapPinPayload {
186
210
  mapId: string;
187
211
  disableMapPin: boolean;
188
212
  }
213
+ export interface ToggleMapPinIsVisiblePayload {
214
+ mapId: string;
215
+ displayMapPin: boolean;
216
+ }
189
217
  export interface SetSelectedFeaturePayload {
190
218
  mapId: string;
191
219
  selectedFeatureIndex: number;
@@ -198,3 +226,15 @@ export interface SetActiveMapPresetPayload {
198
226
  mapId: string;
199
227
  presetId: string;
200
228
  }
229
+ export interface SetIsMapPresetLoadingPayload {
230
+ mapId: string;
231
+ isLoading: boolean;
232
+ }
233
+ export interface SetIsMapPresetHasChangesPayload {
234
+ mapId: string;
235
+ hasChanges: boolean;
236
+ }
237
+ export interface SetMapPresetErrorPayload {
238
+ mapId: string;
239
+ error: string;
240
+ }
@@ -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,12 @@ interface CreateMapProps {
24
23
  timeSliderDataScaleToSecondsPerPx?: number;
25
24
  isTimestepAuto?: boolean;
26
25
  isTimeSliderHoverOn?: boolean;
27
- activePresetId?: string;
26
+ isTimeSliderVisible?: boolean;
27
+ activeMapPresetId?: string;
28
+ displayMapPin?: boolean;
29
+ shouldShowZoomControls?: boolean;
28
30
  }
29
- export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, isLooping, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, activeLayerId, timeSliderScale, timeStep, animationDelay, timeSliderCenterTime, timeSliderSecondsPerPx, timeSliderDataScaleToSecondsPerPx, isTimestepAuto, isTimeSliderHoverOn, activePresetId, }: CreateMapProps) => WebMap;
31
+ 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, displayMapPin, shouldShowZoomControls, }: CreateMapProps) => WebMap;
30
32
  export declare const checkValidLayersPayload: (layers: Layer[], mapId: string) => boolean;
31
33
  /**
32
34
  * This will get the map from the map draftstate.