@opengeoweb/core 2.2.0 → 2.4.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 (79) hide show
  1. package/index.esm.js +3105 -2112
  2. package/index.umd.js +3376 -2335
  3. package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +3 -3
  4. package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts +2 -0
  5. package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +3 -0
  6. package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +1 -0
  7. package/lib/components/LayerManager/LayerContainerRow/{LayerManagerButton.spec.d.ts → LayerRow/LayerRowConnect.spec.d.ts} +0 -0
  8. package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.d.ts +0 -2
  9. package/lib/components/LayerManager/LayerManagerUtils.d.ts +2 -2
  10. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +1 -3
  11. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +4 -5
  12. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +6 -0
  13. package/lib/components/LayerManager/{LayerContainerRow/LayerRow/DeleteLayer/DeleteLayer.spec.d.ts → LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.spec.d.ts} +0 -0
  14. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.d.ts +3 -0
  15. package/lib/components/LayerManager/{LayerContainerRow/LayerRow/EnableLayer/EnableLayer.spec.d.ts → LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.spec.d.ts} +0 -0
  16. package/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +18 -0
  17. package/lib/components/{ToggleIconButton/ToggleIconButton.spec.d.ts → LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.spec.d.ts} +0 -0
  18. package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +12 -2
  19. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +1 -0
  20. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -2
  21. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +4 -1
  22. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +3 -0
  23. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.spec.d.ts +1 -0
  24. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +3 -0
  25. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +10 -0
  26. package/lib/components/MapControls/MapControlButton.d.ts +2 -2
  27. package/lib/components/MapView/MapViewConnect.DisableMapPin.stories.d.ts +5 -0
  28. package/lib/components/MapView/MapViewConnect.stories.d.ts +1 -0
  29. package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +2 -2
  30. package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +4 -4
  31. package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +2 -1
  32. package/lib/components/MultiMapView/storyUtils/mapPresets.d.ts +81 -0
  33. package/lib/components/ReactMapView/types.d.ts +1 -0
  34. package/lib/components/SyncGroups/SyncGroupViewer.d.ts +2 -0
  35. package/lib/components/SyncGroups/SyncGroupViewerConnect.d.ts +1 -6
  36. package/lib/components/SyncGroups/selector.d.ts +4 -4
  37. package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +1 -0
  38. package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +2 -0
  39. package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendRenderFunctions.d.ts +1 -1
  40. package/lib/components/TooltipSelect/TooltipSelect.d.ts +1 -1
  41. package/lib/index.d.ts +6 -1
  42. package/lib/store/generic/selectors.d.ts +1 -0
  43. package/lib/store/generic/synchronizationGroups/actions.d.ts +2 -1
  44. package/lib/store/generic/synchronizationGroups/constants.d.ts +1 -0
  45. package/lib/store/generic/synchronizationGroups/sagas.d.ts +1 -0
  46. package/lib/store/generic/synchronizationGroups/selectors.d.ts +13 -0
  47. package/lib/store/generic/synchronizationGroups/types.d.ts +12 -2
  48. package/lib/store/layerSelect/actions.d.ts +4 -2
  49. package/lib/store/layerSelect/constants.d.ts +3 -1
  50. package/lib/store/layerSelect/sagas.d.ts +1 -0
  51. package/lib/store/layerSelect/selectors.d.ts +59 -9
  52. package/lib/store/layerSelect/types.d.ts +33 -12
  53. package/lib/store/mapStore/layers/selectors.d.ts +24 -12
  54. package/lib/store/mapStore/map/actions.d.ts +8 -1
  55. package/lib/store/mapStore/map/constants.d.ts +1 -0
  56. package/lib/store/mapStore/map/selectors.d.ts +90 -27
  57. package/lib/store/mapStore/map/types.d.ts +11 -2
  58. package/lib/store/mapStore/service/actions.d.ts +8 -1
  59. package/lib/store/mapStore/service/constants.d.ts +1 -0
  60. package/lib/store/mapStore/service/selectors.d.ts +34 -6
  61. package/lib/store/mapStore/service/types.d.ts +9 -2
  62. package/lib/store/ui/selectors.d.ts +2 -2
  63. package/lib/store/ui/types.d.ts +1 -1
  64. package/lib/store/utils.d.ts +6 -0
  65. package/lib/utils/defaultConfigurations.d.ts +3 -21
  66. package/lib/utils/getCapabilities.d.ts +1 -0
  67. package/lib/utils/jsonPresetFilter.d.ts +10 -0
  68. package/lib/utils/jsonPresetFilter.spec.d.ts +1 -0
  69. package/lib/utils/testUtils.d.ts +2 -1
  70. package/lib/utils/types.d.ts +43 -0
  71. package/package.json +5 -5
  72. package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +0 -12
  73. package/lib/components/LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayer.d.ts +0 -8
  74. package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayer.d.ts +0 -8
  75. package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuItemButton.d.ts +0 -8
  76. package/lib/components/LayerManager/LayerContainerRow/LayerRow/styles.d.ts +0 -4
  77. package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +0 -12
  78. package/lib/components/ToggleIconButton/ToggleIconButton.stories.d.ts +0 -13
  79. package/lib/components/ToggleIconButton/index.d.ts +0 -1
@@ -25,13 +25,25 @@ export declare const getAllMapIds: (store: AppStore) => string[];
25
25
  * @param {object} store store object from which the map state wll be extracted
26
26
  * @returns {object} object containing map state (isAnimating, bbox, baseLayers, layers etc.)
27
27
  */
28
- export declare const getFirstMap: (store: AppStore) => WebMap;
28
+ export declare const getFirstMap: ((state: {
29
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
30
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
31
+ ui?: import("../../ui/types").UIStoreType;
32
+ webmap?: WebMapState;
33
+ services?: import("../types").ServiceState;
34
+ layers?: import("../types").LayerState;
35
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
36
+ }) => any) & import("reselect").OutputSelectorFields<((args_0: string[], args_1: any) => any) & {
37
+ clearCache: () => void;
38
+ }> & {
39
+ clearCache: () => void;
40
+ };
29
41
  /**
30
42
  * Gets the id of first map in store
31
43
  *
32
44
  * Example: getFirstMapId(store)
33
- * @param {object} store store object from which the map state wll be extracted
34
- * @returns {object} map id
45
+ * @param {object} store store: object from which the map state wll be extracted
46
+ * @returns {string} returnType:string - map id
35
47
  */
36
48
  export declare const getFirstMapId: ((state: {
37
49
  advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
@@ -41,9 +53,7 @@ export declare const getFirstMapId: ((state: {
41
53
  services?: import("../types").ServiceState;
42
54
  layers?: import("../types").LayerState;
43
55
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
44
- }) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string & {
45
- clearCache: () => void;
46
- }> & {
56
+ }) => any) & import("reselect").OutputSelectorFields<(args_0: any) => any> & {
47
57
  clearCache: () => void;
48
58
  };
49
59
  /**
@@ -51,7 +61,7 @@ export declare const getFirstMapId: ((state: {
51
61
  *
52
62
  * @param {object} store store: object - store object
53
63
  * @param {string} mapId mapId: string - Id of the map
54
- * @returns {array} returnType:true if map is present
64
+ * @returns {boolean} returnType:boolean - true if map is present
55
65
  */
56
66
  export declare const getIsMapPresent: ((state: {
57
67
  advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
@@ -82,7 +92,7 @@ export declare const getLayerIds: ((state: {
82
92
  services?: import("../types").ServiceState;
83
93
  layers?: import("../types").LayerState;
84
94
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
85
- }, params_0: string) => string[]) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string[] & {
95
+ }, params_0: string) => string[]) & import("reselect").OutputSelectorFields<((args_0: WebMap) => string[]) & {
86
96
  clearCache: () => void;
87
97
  }> & {
88
98
  clearCache: () => void;
@@ -124,7 +134,7 @@ export declare const getMapBaseLayersIds: ((state: {
124
134
  services?: import("../types").ServiceState;
125
135
  layers?: import("../types").LayerState;
126
136
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
127
- }, params_0: string) => string[]) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string[] & {
137
+ }, params_0: string) => string[]) & import("reselect").OutputSelectorFields<((args_0: WebMap) => string[]) & {
128
138
  clearCache: () => void;
129
139
  }> & {
130
140
  clearCache: () => void;
@@ -166,7 +176,7 @@ export declare const getMapOverLayersIds: ((state: {
166
176
  services?: import("../types").ServiceState;
167
177
  layers?: import("../types").LayerState;
168
178
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
169
- }, params_0: string) => string[]) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string[] & {
179
+ }, params_0: string) => string[]) & import("reselect").OutputSelectorFields<((args_0: WebMap) => string[]) & {
170
180
  clearCache: () => void;
171
181
  }> & {
172
182
  clearCache: () => void;
@@ -208,7 +218,7 @@ export declare const getMapDimensions: ((state: {
208
218
  services?: import("../types").ServiceState;
209
219
  layers?: import("../types").LayerState;
210
220
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
211
- }, params_0: string) => import("./types").Dimension[]) & import("reselect").OutputSelectorFields<(args_0: WebMap) => import("./types").Dimension[] & {
221
+ }, params_0: string) => import("./types").Dimension[]) & import("reselect").OutputSelectorFields<((args_0: WebMap) => import("./types").Dimension[]) & {
212
222
  clearCache: () => void;
213
223
  }> & {
214
224
  clearCache: () => void;
@@ -230,7 +240,9 @@ export declare const getMapDimension: ((state: {
230
240
  services?: import("../types").ServiceState;
231
241
  layers?: import("../types").LayerState;
232
242
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
233
- }, params_0: string, params_1: {}) => any) & import("reselect").OutputSelectorFields<(args_0: WebMap, args_1: string) => any> & {
243
+ }, params_0: string, params_1: {}) => any) & import("reselect").OutputSelectorFields<((args_0: WebMap, args_1: string) => any) & {
244
+ clearCache: () => void;
245
+ }> & {
234
246
  clearCache: () => void;
235
247
  };
236
248
  /**
@@ -270,7 +282,7 @@ export declare const getBbox: ((state: {
270
282
  services?: import("../types").ServiceState;
271
283
  layers?: import("../types").LayerState;
272
284
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
273
- }, params_0: string) => {}) & import("reselect").OutputSelectorFields<(args_0: WebMap) => {
285
+ }, params_0: string) => {}) & import("reselect").OutputSelectorFields<((args_0: WebMap) => {}) & {
274
286
  clearCache: () => void;
275
287
  }> & {
276
288
  clearCache: () => void;
@@ -296,6 +308,36 @@ export declare const isAnimating: ((state: {
296
308
  }> & {
297
309
  clearCache: () => void;
298
310
  };
311
+ /**
312
+ * Gets if any linked map is animating
313
+ *
314
+ * Example: linkedMapIsAnimating = linkedMapAnimationInfo(store, 'mapid_1')
315
+ * @param {object} store store: object - store object
316
+ * @param {string} mapId mapId: string - Id of the map
317
+ * @returns {object} returnType: object - object containing isAnimating boolean and id string
318
+ */
319
+ export declare const linkedMapAnimationInfo: ((state: {
320
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
321
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
322
+ ui?: import("../../ui/types").UIStoreType;
323
+ webmap?: WebMapState;
324
+ services?: import("../types").ServiceState;
325
+ layers?: import("../types").LayerState;
326
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
327
+ }, params_0: string) => {
328
+ isAnimating: boolean;
329
+ id: string;
330
+ }) & import("reselect").OutputSelectorFields<(args_0: {
331
+ isAnimating: boolean;
332
+ id: string;
333
+ }) => {
334
+ isAnimating: boolean;
335
+ id: string;
336
+ } & {
337
+ clearCache: () => void;
338
+ }> & {
339
+ clearCache: () => void;
340
+ };
299
341
  /**
300
342
  * Gets start time of animation
301
343
  *
@@ -427,7 +469,7 @@ export declare const getMapTimeSliderScale: ((state: {
427
469
  * Example: timeStep = getTimeStep(store, 'mapid_1')
428
470
  * @param {object} store store: object - store object
429
471
  * @param {string} mapId mapId: string - Id of the map
430
- * @returns {object} returnType: number - time step as a number
472
+ * @returns {number} returnType: number - time step as a number
431
473
  */
432
474
  export declare const getMapTimeStep: ((state: {
433
475
  advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
@@ -448,7 +490,7 @@ export declare const getMapTimeStep: ((state: {
448
490
  * Example: speed = getSpeed(store, 'mapid_1')
449
491
  * @param {object} store store: object - store object
450
492
  * @param {string} mapId mapId: string - Id of the map
451
- * @returns {object} returnType: number - speed as a number
493
+ * @returns {number} returnType: number - speed as a number
452
494
  */
453
495
  export declare const getMapAnimationDelay: ((state: {
454
496
  advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
@@ -469,7 +511,7 @@ export declare const getMapAnimationDelay: ((state: {
469
511
  * Example: centerTime = getCenterTime(store, 'mapid_1')
470
512
  * @param {object} store store: object - store object
471
513
  * @param {string} mapId mapId: string - Id of the map
472
- * @returns {object} returnType: number - center time as a unix timestamp
514
+ * @returns {number} returnType: number - center time as a unix timestamp
473
515
  */
474
516
  export declare const getMapTimeSliderCenterTime: ((state: {
475
517
  advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
@@ -490,7 +532,7 @@ export declare const getMapTimeSliderCenterTime: ((state: {
490
532
  * Example: secondsPerPx = getSecondsPerPx(store, 'mapid_1')
491
533
  * @param {object} store store: object - store object
492
534
  * @param {string} mapId mapId: string - Id of the map
493
- * @returns {object} returnType: number - the number of seconds per pixel
535
+ * @returns {number} returnType: number - the number of seconds per pixel
494
536
  */
495
537
  export declare const getMapTimeSliderSecondsPerPx: ((state: {
496
538
  advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
@@ -511,7 +553,7 @@ export declare const getMapTimeSliderSecondsPerPx: ((state: {
511
553
  * Example: dataScaleToSecondsPerPx = getMapTimeSliderDataScaleToSecondsPerPx(store, 'mapid_1')
512
554
  * @param {object} store store: object - store object
513
555
  * @param {string} mapId mapId: string - Id of the map
514
- * @returns {object} returnType: number - the number of scaleto seconds pixel
556
+ * @returns {number} returnType: number - the number of scaleto seconds pixel
515
557
  */
516
558
  export declare const getMapTimeSliderDataScaleToSecondsPerPx: ((state: {
517
559
  advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
@@ -596,7 +638,7 @@ export declare const getIsLayerActiveLayer: ((state: {
596
638
  * Example const mapId = getMapIdFromLayerId(store 'layerId-A');
597
639
  * @param {object} store store: object - store object
598
640
  * @param {string} layerId layerId: string - Id of the layer
599
- * @returns {string} returnType: the mapId, or null if not found
641
+ * @returns {string} returnType: string - the mapId, or null if not found
600
642
  */
601
643
  export declare const getMapIdFromLayerId: ((state: {
602
644
  advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
@@ -606,7 +648,7 @@ export declare const getMapIdFromLayerId: ((state: {
606
648
  services?: import("../types").ServiceState;
607
649
  layers?: import("../types").LayerState;
608
650
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
609
- }, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: WebMapState, args_1: string) => string & {
651
+ }, params_0: string) => string) & import("reselect").OutputSelectorFields<((args_0: WebMapState, args_1: string) => string) & {
610
652
  clearCache: () => void;
611
653
  }> & {
612
654
  clearCache: () => void;
@@ -618,7 +660,7 @@ export declare const getMapIdFromLayerId: ((state: {
618
660
  * @param {object} store store: object - store object
619
661
  * @param {string} mapId mapId: string - Id of the map
620
662
  * @param {string} layerId layerId: string - Id of the layer
621
- * @returns {string} returnType: the layerId, or null if not found
663
+ * @returns {string} returnType: string - the layerId, or null if not found
622
664
  */
623
665
  export declare const getLayerIdByLayerName: ((state: {
624
666
  advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
@@ -628,7 +670,7 @@ export declare const getLayerIdByLayerName: ((state: {
628
670
  services?: import("../types").ServiceState;
629
671
  layers?: import("../types").LayerState;
630
672
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
631
- }, params_0: string, params_1: {}) => string) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[], args_1: string) => string & {
673
+ }, params_0: string, params_1: {}) => string) & import("reselect").OutputSelectorFields<((args_0: import("../types").ReduxLayer[], args_1: string) => string) & {
632
674
  clearCache: () => void;
633
675
  }> & {
634
676
  clearCache: () => void;
@@ -650,7 +692,7 @@ export declare const getLayerIndexByLayerId: ((state: {
650
692
  services?: import("../types").ServiceState;
651
693
  layers?: import("../types").LayerState;
652
694
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
653
- }, params_0: string, params_1: {}) => number) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[], args_1: string) => number & {
695
+ }, params_0: string, params_1: {}) => number) & import("reselect").OutputSelectorFields<((args_0: import("../types").ReduxLayer[], args_1: string) => number) & {
654
696
  clearCache: () => void;
655
697
  }> & {
656
698
  clearCache: () => void;
@@ -672,7 +714,7 @@ export declare const getLayerByLayerIndex: ((state: {
672
714
  services?: import("../types").ServiceState;
673
715
  layers?: import("../types").LayerState;
674
716
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
675
- }, params_0: string, params_1: {}) => Layer) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[], args_1: number) => Layer & {
717
+ }, params_0: string, params_1: {}) => Layer) & import("reselect").OutputSelectorFields<((args_0: import("../types").ReduxLayer[], args_1: number) => Layer) & {
676
718
  clearCache: () => void;
677
719
  }> & {
678
720
  clearCache: () => void;
@@ -692,7 +734,7 @@ export declare const getAllUniqueDimensions: ((state: {
692
734
  services?: import("../types").ServiceState;
693
735
  layers?: import("../types").LayerState;
694
736
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
695
- }) => string[]) & import("reselect").OutputSelectorFields<(args_0: string[], args_1: AppStore) => string[] & {
737
+ }) => string[]) & import("reselect").OutputSelectorFields<((args_0: string[], args_1: AppStore) => string[]) & {
696
738
  clearCache: () => void;
697
739
  }> & {
698
740
  clearCache: () => void;
@@ -700,7 +742,7 @@ export declare const getAllUniqueDimensions: ((state: {
700
742
  /**
701
743
  * Returns the mapPinLocation for the current map
702
744
  *
703
- * Example getAllUniqueDimensions(store);
745
+ * Example getPinLocation(store);
704
746
  * @param {object} store store: object - store object
705
747
  * @param {string} mapId mapId: string - Id of the map
706
748
  * @returns {object} returnType: latitude and longitude of pin
@@ -713,7 +755,28 @@ export declare const getPinLocation: ((state: {
713
755
  services?: import("../types").ServiceState;
714
756
  layers?: import("../types").LayerState;
715
757
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
716
- }, params_0: string) => import("./types").MapLocation) & import("reselect").OutputSelectorFields<(args_0: WebMap) => import("./types").MapLocation & {
758
+ }, params_0: string) => import("./types").MapLocation) & import("reselect").OutputSelectorFields<((args_0: WebMap) => import("./types").MapLocation) & {
759
+ clearCache: () => void;
760
+ }> & {
761
+ clearCache: () => void;
762
+ };
763
+ /**
764
+ * Returns the disable map pin boolean for the current map
765
+ *
766
+ * Example getDisableMapPin(store);
767
+ * @param {object} store store: object - store object
768
+ * @param {string} mapId mapId: string - Id of the map
769
+ * @returns {boolean} returnType: boolean or undefined
770
+ */
771
+ export declare const getDisableMapPin: ((state: {
772
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
773
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
774
+ ui?: import("../../ui/types").UIStoreType;
775
+ webmap?: WebMapState;
776
+ services?: import("../types").ServiceState;
777
+ layers?: import("../types").LayerState;
778
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
779
+ }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
717
780
  clearCache: () => void;
718
781
  }> & {
719
782
  clearCache: () => void;
@@ -1,6 +1,6 @@
1
1
  import { DateInterval } from '@opengeoweb/webmap';
2
2
  import { Action } from 'redux';
3
- 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 } from './constants';
3
+ 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 } from './constants';
4
4
  export interface Dimension {
5
5
  name?: string;
6
6
  units?: string;
@@ -36,6 +36,7 @@ export interface WebMap {
36
36
  isTimestepAuto?: boolean;
37
37
  isTimeSliderHoverOn?: boolean;
38
38
  mapPinLocation?: MapLocation;
39
+ disableMapPin?: boolean;
39
40
  }
40
41
  export interface WebMapState {
41
42
  byId: Record<string, WebMap>;
@@ -245,4 +246,12 @@ export interface MapPinLocationPayload {
245
246
  mapId: string;
246
247
  mapPinLocation: MapLocation;
247
248
  }
248
- 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;
249
+ export interface SetDisableMapPin extends Action {
250
+ type: typeof WEBMAP_DISABLE_PIN;
251
+ payload: DisableMapPinPayload;
252
+ }
253
+ export interface DisableMapPinPayload {
254
+ mapId: string;
255
+ disableMapPin: boolean;
256
+ }
257
+ 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;
@@ -1,4 +1,4 @@
1
- import { ServiceActions, SetLayersForServicePayload } from './types';
1
+ import { ServiceActions, SetLayersForServicePayload, MapStoreRemoveServicePayload } from './types';
2
2
  /**
3
3
  * Action serviceSetLayers is used automatically after calling the setLayers action. Contents is based on WMS GetCapabilities
4
4
  *
@@ -6,3 +6,10 @@ import { ServiceActions, SetLayersForServicePayload } from './types';
6
6
  * @param {object} payload consisting of service: string, layers: ServiceLayer[]
7
7
  */
8
8
  export declare const serviceSetLayers: (payload: SetLayersForServicePayload) => ServiceActions;
9
+ /**
10
+ * Action mapStoreRemoveService is used in ServiceOptionsDialogConnect after clicking the remove button. Action layerSelectServiceRemoved is used automatically after calling the mapStoreRemoveService action
11
+ *
12
+ * Example: mapStoreRemoveService({serviceUrl: someService})
13
+ * @param {object} payload consisting of serviceUrl: string
14
+ */
15
+ export declare const mapStoreRemoveService: (payload: MapStoreRemoveServicePayload) => ServiceActions;
@@ -1 +1,2 @@
1
1
  export declare const MAP_SERVICES_SET_LAYERS = "MAP_SERVICES_SET_LAYERS";
2
+ export declare const MAP_SERVICES_REMOVE_SERVICE = "MAP_SERVICES_REMOVE_SERVICE";
@@ -15,7 +15,7 @@ export declare const getServiceIds: ((state: {
15
15
  services?: ServiceState;
16
16
  layers?: import("../types").LayerState;
17
17
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
18
- }) => string[]) & import("reselect").OutputSelectorFields<(args_0: ServiceState) => string[] & {
18
+ }) => string[]) & import("reselect").OutputSelectorFields<((args_0: ServiceState) => string[]) & {
19
19
  clearCache: () => void;
20
20
  }> & {
21
21
  clearCache: () => void;
@@ -35,7 +35,7 @@ export declare const getServices: ((state: {
35
35
  services?: ServiceState;
36
36
  layers?: import("../types").LayerState;
37
37
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
38
- }) => import("./types").Services) & import("reselect").OutputSelectorFields<(args_0: ServiceState) => import("./types").Services & {
38
+ }) => import("./types").Services) & import("reselect").OutputSelectorFields<((args_0: ServiceState) => import("./types").Services) & {
39
39
  clearCache: () => void;
40
40
  }> & {
41
41
  clearCache: () => void;
@@ -66,7 +66,7 @@ export declare const getServiceByName: ((state: {
66
66
  * Example: layers = getLayersFromService(store, 'https://geoservices.knmi.nl/...')
67
67
  * @param {object} store store: object - object from which the layers state will be extracted
68
68
  * @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
69
- * @returns {arrayr} returnType: ServiceLayer[] - All layers within the service object.
69
+ * @returns {array} returnType: ServiceLayer[] - All layers within the service object.
70
70
  */
71
71
  export declare const getLayersFromService: ((state: {
72
72
  advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
@@ -76,7 +76,7 @@ export declare const getLayersFromService: ((state: {
76
76
  services?: ServiceState;
77
77
  layers?: import("../types").LayerState;
78
78
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
79
- }, params_0: string) => ServiceLayer[]) & import("reselect").OutputSelectorFields<(args_0: Service) => ServiceLayer[] & {
79
+ }, params_0: string) => ServiceLayer[]) & import("reselect").OutputSelectorFields<((args_0: Service) => ServiceLayer[]) & {
80
80
  clearCache: () => void;
81
81
  }> & {
82
82
  clearCache: () => void;
@@ -98,7 +98,7 @@ export declare const getLayerFromService: ((state: {
98
98
  services?: ServiceState;
99
99
  layers?: import("../types").LayerState;
100
100
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
101
- }, params_0: string, params_1: string) => ServiceLayer) & import("reselect").OutputSelectorFields<(args_0: ServiceLayer[], args_1: string, args_2: string) => ServiceLayer & {
101
+ }, params_0: string, params_1: string) => ServiceLayer) & import("reselect").OutputSelectorFields<((args_0: ServiceLayer[], args_1: string, args_2: string) => ServiceLayer) & {
102
102
  clearCache: () => void;
103
103
  }> & {
104
104
  clearCache: () => void;
@@ -120,7 +120,35 @@ export declare const getLayerStyles: ((state: {
120
120
  services?: ServiceState;
121
121
  layers?: import("../types").LayerState;
122
122
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
123
- }, params_0: string, params_1: string) => Style[]) & import("reselect").OutputSelectorFields<(args_0: ServiceLayer) => Style[] & {
123
+ }, params_0: string, params_1: string) => Style[]) & import("reselect").OutputSelectorFields<((args_0: ServiceLayer) => Style[]) & {
124
+ clearCache: () => void;
125
+ }> & {
126
+ clearCache: () => void;
127
+ };
128
+ /**
129
+ * Gets services and maps them into an array
130
+ *
131
+ * Example: services = getServices(store)
132
+ * @param {object} store store: object - Store object
133
+ * @returns {array} returnType: [] - array containing services
134
+ */
135
+ export declare const getServicesInArray: ((state: {
136
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
137
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
138
+ ui?: import("../../ui/types").UIStoreType;
139
+ webmap?: import("../types").WebMapState;
140
+ services?: ServiceState;
141
+ layers?: import("../types").LayerState;
142
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
143
+ }) => {
144
+ id: string;
145
+ name: string;
146
+ service: string;
147
+ }[]) & import("reselect").OutputSelectorFields<((args_0: ServiceState) => {
148
+ id: string;
149
+ name: string;
150
+ service: string;
151
+ }[]) & {
124
152
  clearCache: () => void;
125
153
  }> & {
126
154
  clearCache: () => void;
@@ -1,7 +1,7 @@
1
1
  import { Style } from '@opengeoweb/webmap';
2
2
  import { Action } from 'redux';
3
3
  import type { UpdateLayerInfo } from '../types';
4
- import { MAP_SERVICES_SET_LAYERS } from './constants';
4
+ import { MAP_SERVICES_SET_LAYERS, MAP_SERVICES_REMOVE_SERVICE } from './constants';
5
5
  export interface Services {
6
6
  [key: string]: Service;
7
7
  }
@@ -38,5 +38,12 @@ interface SetLayersForService extends Action {
38
38
  type: typeof MAP_SERVICES_SET_LAYERS;
39
39
  payload: SetLayersForServicePayload;
40
40
  }
41
- export declare type ServiceActions = SetLayersForService | UpdateLayerInfo;
41
+ export interface MapStoreRemoveServicePayload {
42
+ serviceUrl: string;
43
+ }
44
+ interface MapStoreRemoveService extends Action {
45
+ type: typeof MAP_SERVICES_REMOVE_SERVICE;
46
+ payload: MapStoreRemoveServicePayload;
47
+ }
48
+ export declare type ServiceActions = SetLayersForService | UpdateLayerInfo | MapStoreRemoveService;
42
49
  export {};
@@ -14,7 +14,7 @@ export declare const getDialogDetailsByType: (store: AppStore, dialogType: strin
14
14
  *
15
15
  * @param {object} store store object from which the ui state wll be extracted
16
16
  * @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
17
- * @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
17
+ * @returns {boolean} returnType: boolean
18
18
  */
19
19
  export declare const getisDialogOpen: ((state: {
20
20
  advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
@@ -34,7 +34,7 @@ export declare const getisDialogOpen: ((state: {
34
34
  *
35
35
  * @param {object} store store object from which the ui state wll be extracted
36
36
  * @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
37
- * @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
37
+ * @returns {string} returnType: string - the active map id
38
38
  */
39
39
  export declare const getDialogMapId: ((state: {
40
40
  advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
@@ -1,6 +1,6 @@
1
1
  import { Action } from 'redux';
2
2
  import { UI_SET_ACTIVE_MAPID_FOR_DIALOG, UI_REGISTER_DIALOG, UI_TOGGLE_DIALOG, UI_UNREGISTER_DIALOG, UI_ORDER_DIALOG } from './constants';
3
- export declare type DialogType = 'legend' | 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter';
3
+ export declare type DialogType = 'legend' | 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'syncGroups';
4
4
  export declare type Source = 'app' | 'module';
5
5
  export interface UIType {
6
6
  type: DialogType;
@@ -0,0 +1,6 @@
1
+ export declare const selectorMemoizationOptions: {
2
+ memoizeOptions: {
3
+ maxSize: number;
4
+ resultEqualityCheck: (value: any, other: any) => boolean;
5
+ };
6
+ };
@@ -1,21 +1,3 @@
1
- export declare const availableDefaultBaseLayers: ({
2
- id: string;
3
- name: string;
4
- type: string;
5
- layerType: import("../store/mapStore/types").LayerType;
6
- } | {
7
- service: string;
8
- id: string;
9
- name: string;
10
- layerType: import("../store/mapStore/types").LayerType;
11
- })[];
12
- export declare const preloadedDefaultBaseServices: {
13
- name: string;
14
- url: string;
15
- id: string;
16
- }[];
17
- export declare const preloadedDefaultMapServices: {
18
- name: string;
19
- url: string;
20
- id: string;
21
- }[];
1
+ export declare const availableDefaultBaseLayers: import("../store/mapStore/types").Layer[];
2
+ export declare const preloadedDefaultBaseServices: import("./types").Service[];
3
+ export declare const preloadedDefaultMapServices: import("./types").Service[];
@@ -10,6 +10,7 @@ export interface LayerTree {
10
10
  keywords?: string[];
11
11
  abstract?: string;
12
12
  text?: string;
13
+ styles?: any[];
13
14
  }
14
15
  /**
15
16
  * Converts webmapjs node structure to LayerTree
@@ -0,0 +1,10 @@
1
+ import { Bbox, Layer } from '../store/mapStore/types';
2
+ import { FilteredMapPresets, Service, MapPresets, LayerDimension } from './types';
3
+ export declare const filterBaseLayers: (presetArray: unknown[]) => Layer[];
4
+ export declare const filterMapLayers: (presetArray: unknown[]) => Layer[];
5
+ export declare const filterServices: (presetArray: Service[]) => Service[];
6
+ export declare const filterBbox: (presetBbox: Bbox) => Bbox;
7
+ export declare const filterSrs: (presetSrs: string) => string;
8
+ export declare const filterDimensions: (mapLayers: Layer[]) => LayerDimension[];
9
+ export declare const filterMapPresets: (presets: MapPresets) => FilteredMapPresets;
10
+ export declare const getInitialPresets: (mapPresets: MapPresets, defaultInitialPresets: MapPresets) => FilteredMapPresets;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,10 @@
1
1
  import { WebMapState, LayerState, Dimension, Layer, WebMapStateModuleState, Scale } from '../store/mapStore/types';
2
+ import { AppStore } from '../types/types';
2
3
  export declare const createWebmapState: (...mapIds: string[]) => WebMapState;
3
4
  export declare const createLayersState: (layerId: string, props?: {}) => LayerState;
4
5
  export declare const createMultipleLayersState: (layers: Layer[], mapId: string) => LayerState;
5
6
  export declare const createMapDimensionsState: (dimensions?: Dimension[], ...mapIds: string[]) => WebMapState;
6
- export declare const mockStateMapWithLayer: (layer: Layer, mapId: string) => WebMapStateModuleState;
7
+ export declare const mockStateMapWithLayer: (layer: Layer, mapId: string) => AppStore;
7
8
  export declare const mockStateMapWithMultipleLayers: (layers: Layer[], mapId: string) => WebMapStateModuleState;
8
9
  export declare const mockStateMapWithDimensions: (layer: Layer, mapId: string) => WebMapStateModuleState;
9
10
  export declare const mockStateMapWithDimensionsWithoutLayers: (mapId: string) => WebMapStateModuleState;
@@ -0,0 +1,43 @@
1
+ import { Bbox, Dimension, Layer } from '../store/mapStore/types';
2
+ export interface Service {
3
+ id: string;
4
+ name: string;
5
+ url: string;
6
+ }
7
+ export interface PresetLayer {
8
+ id?: string;
9
+ mapId?: string;
10
+ service?: string;
11
+ name?: string;
12
+ format?: string;
13
+ enabled?: string;
14
+ style?: string;
15
+ dimensions?: Dimension[];
16
+ opacity?: number;
17
+ type?: string;
18
+ layerType?: string;
19
+ status?: string;
20
+ }
21
+ export interface MapPreset {
22
+ presetType?: string;
23
+ presetId?: string;
24
+ presetName?: string;
25
+ srs?: string;
26
+ bbox?: Bbox;
27
+ services?: Service[];
28
+ baseServices?: Service[];
29
+ layers?: PresetLayer[];
30
+ activeLayerId?: string;
31
+ }
32
+ export interface MapPresets {
33
+ preset: MapPreset;
34
+ }
35
+ export interface LayerDimension {
36
+ dimension?: Dimension;
37
+ layerId?: string;
38
+ }
39
+ export interface FilteredMapPresets extends MapPreset {
40
+ baseLayers?: Layer[];
41
+ mapLayers?: Layer[];
42
+ layerDimensions?: LayerDimension[];
43
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,22 +13,22 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "react": "^17.0.2",
16
- "@opengeoweb/theme": "2.2.0",
16
+ "@opengeoweb/theme": "2.4.0",
17
17
  "@mui/material": "^5.2.8",
18
18
  "@mui/styles": "^5.2.3",
19
19
  "@mui/icons-material": "^5.2.5",
20
20
  "react-redux": "7.2.2",
21
21
  "moment": "^2.29.0",
22
22
  "react-intl": "^5.17.5",
23
- "@opengeoweb/webmap": "2.2.0",
23
+ "@opengeoweb/webmap": "2.4.0",
24
24
  "throttle-debounce": "^3.0.1",
25
25
  "proj4": "^2.6.2",
26
26
  "react-sortablejs": "^6.0.0",
27
- "@opengeoweb/shared": "2.2.0",
27
+ "@opengeoweb/shared": "2.4.0",
28
28
  "react-draggable": "^4.4.3",
29
29
  "re-resizable": "^6.9.0",
30
30
  "lodash": "^4.17.20",
31
- "@opengeoweb/form-fields": "2.2.0",
31
+ "@opengeoweb/form-fields": "2.4.0",
32
32
  "react-hook-form": "^6.12.1",
33
33
  "moment-timezone": "^0.5.31",
34
34
  "@mui/lab": "^5.0.0-alpha.64",
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { IconButtonProps } from '@mui/material';
3
- interface LayerManagerButtonProps extends IconButtonProps {
4
- tooltipTitle: string;
5
- onClick?: (event: React.MouseEvent) => void;
6
- isActive?: boolean;
7
- isEnabled?: boolean;
8
- icon: React.ReactNode;
9
- testId: string;
10
- }
11
- declare const LayerManagerButton: React.FC<LayerManagerButtonProps>;
12
- export default LayerManagerButton;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- interface DeleteButtonProps {
3
- tooltipTitle: string;
4
- onClickDelete: () => void;
5
- isEnabled?: boolean;
6
- }
7
- declare const DeleteButton: React.FC<DeleteButtonProps>;
8
- export default DeleteButton;