@opengeoweb/core 2.4.1 → 2.7.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 (59) hide show
  1. package/index.esm.js +10542 -10062
  2. package/index.umd.js +3122 -2605
  3. package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +7 -20
  4. package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts +1 -7
  5. package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +1 -2
  6. package/lib/components/LayerManager/LayerManager.d.ts +2 -1
  7. package/lib/components/LayerManager/LayerManagerConnect.d.ts +1 -0
  8. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +18 -0
  9. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +2 -1
  10. package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +4 -0
  11. package/lib/components/{MultiMapView/HarmoniePresets/HarmRefTimePreset.spec.d.ts → LayerManager/LayerSelect/LayerSelectUtils.spec.d.ts} +0 -0
  12. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -2
  13. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +2 -2
  14. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -2
  15. package/lib/components/MapView/MapViewLayer.d.ts +3 -0
  16. package/lib/components/MapWarning/MapWarningProperties.d.ts +6 -0
  17. package/lib/components/{TimeSlider/TimeSliderButtons/LoopButton/LoopButton.spec.d.ts → MapWarning/MapWarningProperties.spec.d.ts} +0 -0
  18. package/lib/components/MultiMapView/HarmoniePresets/index.d.ts +0 -1
  19. package/lib/components/MultiMapView/{HarmoniePresets/HarmRefTimePreset.d.ts → ModelRunInterval/ModelRunInterval.d.ts} +4 -2
  20. package/lib/components/{TimeSlider/TimeSliderButtons/LoopButton/LoopButtonConnect.spec.d.ts → MultiMapView/ModelRunInterval/ModelRunInterval.spec.d.ts} +0 -0
  21. package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.stories.d.ts +4 -0
  22. package/lib/components/MultiMapView/ModelRunInterval/index.d.ts +1 -0
  23. package/lib/components/MultiMapView/MultiMapView.stories.d.ts +2 -3
  24. package/lib/components/ReactMapView/AdagucMapDraw.d.ts +12 -7
  25. package/lib/components/ReactMapView/AdagucMapDraw.stories.d.ts +4 -0
  26. package/lib/components/ReactMapView/AdagucMapDrawContainer.d.ts +2 -1
  27. package/lib/components/ReactMapView/AdagucMapDrawTools.d.ts +9 -0
  28. package/lib/components/{TooltipSelect/TooltipSelect.spec.d.ts → ReactMapView/AdagucMapDrawTools.spec.d.ts} +0 -0
  29. package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +0 -1
  30. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.d.ts +0 -1
  31. package/lib/components/TimeSlider/TimeSliderUtils.d.ts +1 -2
  32. package/lib/components/WMSLoader/WMSServerList/WMSServerList.d.ts +1 -1
  33. package/lib/index.d.ts +4 -3
  34. package/lib/store/layerSelect/sagas.d.ts +3 -1
  35. package/lib/store/mapStore/layers/actions.d.ts +8 -1
  36. package/lib/store/mapStore/layers/constants.d.ts +1 -0
  37. package/lib/store/mapStore/layers/types.d.ts +11 -3
  38. package/lib/store/mapStore/map/actions.d.ts +17 -8
  39. package/lib/store/mapStore/map/constants.d.ts +3 -0
  40. package/lib/store/mapStore/map/sagas.d.ts +4 -2
  41. package/lib/store/mapStore/map/selectors.d.ts +42 -21
  42. package/lib/store/mapStore/map/types.d.ts +57 -2
  43. package/lib/store/mapStore/map/utils.d.ts +2 -1
  44. package/lib/store/mapStore/service/reducer.d.ts +2 -8
  45. package/lib/store/mapStore/service/selectors.d.ts +6 -8
  46. package/lib/store/mapStore/service/types.d.ts +7 -9
  47. package/lib/store/mapStore/utils/helpers.d.ts +2 -0
  48. package/lib/store/ui/types.d.ts +1 -1
  49. package/lib/utils/defaultConfigurations.d.ts +2 -2
  50. package/lib/utils/defaultTestSettings.d.ts +10 -199
  51. package/lib/utils/jsonPresetFilter.d.ts +23 -7
  52. package/lib/utils/localStorage.d.ts +3 -0
  53. package/lib/utils/localStorage.spec.d.ts +1 -0
  54. package/lib/utils/types.d.ts +3 -42
  55. package/package.json +10 -9
  56. package/lib/components/LayerManager/tooltipContainerStyles.d.ts +0 -2
  57. package/lib/components/TimeSlider/TimeSliderButtons/LoopButton/LoopButton.d.ts +0 -8
  58. package/lib/components/TimeSlider/TimeSliderButtons/LoopButton/LoopButtonConnect.d.ts +0 -10
  59. package/lib/components/TooltipSelect/TooltipSelect.d.ts +0 -14
@@ -401,27 +401,6 @@ export declare const isAutoUpdating: ((state: {
401
401
  }> & {
402
402
  clearCache: () => void;
403
403
  };
404
- /**
405
- * Tells whether the "loop" behavior of animation is on/off
406
- *
407
- * Example: isLooping = isLooping(store, 'mapid_1')
408
- * @param {object} store store: object - store object
409
- * @param {string} mapId mapId: string - Id of the map
410
- * @returns {boolean} returnType: boolean
411
- */
412
- export declare const isLooping: ((state: {
413
- advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
414
- syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
415
- ui?: import("../../ui/types").UIStoreType;
416
- webmap?: WebMapState;
417
- services?: import("../types").ServiceState;
418
- layers?: import("../types").LayerState;
419
- layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
420
- }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
421
- clearCache: () => void;
422
- }> & {
423
- clearCache: () => void;
424
- };
425
404
  /**
426
405
  * Gets activeLayerId for map
427
406
  *
@@ -781,3 +760,45 @@ export declare const getDisableMapPin: ((state: {
781
760
  }> & {
782
761
  clearCache: () => void;
783
762
  };
763
+ /**
764
+ * Returns the selected geojson feature for the given map
765
+ *
766
+ * Example const selectedFeature = getSelectedFeature(store, 'mapId1')
767
+ * @param {object} store store: object - store object
768
+ * @param {string} mapId mapId: string - Id of the map
769
+ * @returns {number} selectedFeatureIndex: the index of the selected geojson feature
770
+ */
771
+ export declare const getSelectedFeatureIndex: ((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) => number) & import("reselect").OutputSelectorFields<(args_0: WebMap) => number & {
780
+ clearCache: () => void;
781
+ }> & {
782
+ clearCache: () => void;
783
+ };
784
+ /**
785
+ * Returns the active map preset id
786
+ *
787
+ * Example getActivePresetId(store);
788
+ * @param {object} store store: object - store object
789
+ * @param {string} mapId mapId: string - Id of the map
790
+ * @returns {boolean} returnType: boolean or undefined
791
+ */
792
+ export declare const getActiveMapPresetId: ((state: {
793
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
794
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
795
+ ui?: import("../../ui/types").UIStoreType;
796
+ webmap?: WebMapState;
797
+ services?: import("../types").ServiceState;
798
+ layers?: import("../types").LayerState;
799
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
800
+ }, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string & {
801
+ clearCache: () => void;
802
+ }> & {
803
+ clearCache: () => void;
804
+ };
@@ -1,6 +1,7 @@
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, WEBMAP_DISABLE_PIN } from './constants';
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';
4
5
  export interface Dimension {
5
6
  name?: string;
6
7
  units?: string;
@@ -37,6 +38,8 @@ export interface WebMap {
37
38
  isTimeSliderHoverOn?: boolean;
38
39
  mapPinLocation?: MapLocation;
39
40
  disableMapPin?: boolean;
41
+ selectedFeatureIndex?: number;
42
+ activePresetId?: string;
40
43
  }
41
44
  export interface WebMapState {
42
45
  byId: Record<string, WebMap>;
@@ -63,6 +66,34 @@ export declare enum Scale {
63
66
  Year = 7,
64
67
  DataScale = 8
65
68
  }
69
+ export declare type SpeedFactorType = 0.1 | 0.2 | 0.5 | 1 | 2 | 4 | 8 | 16;
70
+ export interface AnimationPayloadType {
71
+ duration?: number;
72
+ interval?: number;
73
+ speed?: SpeedFactorType;
74
+ }
75
+ export interface MapPreset {
76
+ layers?: Layer[];
77
+ overLayers?: Layer[];
78
+ baseLayer?: Layer;
79
+ activeLayerId?: string;
80
+ proj?: {
81
+ bbox: Bbox;
82
+ srs: string;
83
+ };
84
+ shouldAnimate?: boolean;
85
+ animationPayload?: AnimationPayloadType;
86
+ shouldShowZoomControls?: boolean;
87
+ shouldAutoUpdate?: boolean;
88
+ showTimeSlider?: boolean;
89
+ displayMapPin?: boolean;
90
+ toggleTimestepAuto?: boolean;
91
+ setTimestep?: number;
92
+ }
93
+ export interface MapPresetInitialProps {
94
+ mapPreset: MapPreset;
95
+ syncGroupsIds?: string[];
96
+ }
66
97
  export interface RegisterMap extends Action {
67
98
  type: typeof WEBMAP_REGISTER_MAP;
68
99
  payload: {
@@ -254,4 +285,28 @@ export interface DisableMapPinPayload {
254
285
  mapId: string;
255
286
  disableMapPin: boolean;
256
287
  }
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;
288
+ export interface SetSelectedFeature {
289
+ type: typeof WEBMAP_SET_SELECTED_FEATURE_INDEX;
290
+ payload: SetSelectedFeaturePayload;
291
+ }
292
+ export interface SetSelectedFeaturePayload {
293
+ mapId: string;
294
+ selectedFeatureIndex: number;
295
+ }
296
+ export interface SetMapPresetPayload {
297
+ mapId: string;
298
+ initialProps: MapPresetInitialProps;
299
+ }
300
+ export interface SetMapPreset extends Action {
301
+ type: typeof WEBMAP_SET_MAPPRESET;
302
+ payload: SetMapPresetPayload;
303
+ }
304
+ export interface SetActiveMapPresetPayload {
305
+ mapId: string;
306
+ presetId: string;
307
+ }
308
+ export interface SetActiveMapPresetId extends Action {
309
+ type: typeof WEBMAP_SET_ACTIVE_MAPPRESET_ID;
310
+ payload: SetActiveMapPresetPayload;
311
+ }
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;
@@ -24,8 +24,9 @@ interface CreateMapProps {
24
24
  timeSliderDataScaleToSecondsPerPx?: number;
25
25
  isTimestepAuto?: boolean;
26
26
  isTimeSliderHoverOn?: boolean;
27
+ activePresetId?: string;
27
28
  }
28
- 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, }: CreateMapProps) => WebMap;
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;
29
30
  export declare const checkValidLayersPayload: (layers: Layer[], mapId: string) => boolean;
30
31
  /**
31
32
  * This will get the map from the map draftstate.
@@ -1,11 +1,5 @@
1
1
  import { ServiceActions } from '../types';
2
2
  import { ServiceState } from './types';
3
- export declare const initialState: {
4
- byId: {};
5
- allIds: any[];
6
- };
3
+ export declare const initialState: ServiceState;
7
4
  export declare const WEBMAPJS_REDUCERNAME = "react-webmapjs";
8
- export declare const reducer: (state: {
9
- byId: {};
10
- allIds: any[];
11
- }, action: ServiceActions) => ServiceState;
5
+ export declare const reducer: (state: ServiceState, action: ServiceActions) => ServiceState;
@@ -1,5 +1,5 @@
1
1
  import { Style } from '@opengeoweb/webmap';
2
- import { ServiceState, ServiceLayer, Service } from './types';
2
+ import { ServiceState, ServiceLayer, ReduxService } from './types';
3
3
  /**
4
4
  * Retrieves all serviceIds
5
5
  *
@@ -45,7 +45,7 @@ export declare const getServices: ((state: {
45
45
  *
46
46
  * Example: service = getServiceByName(store, 'serviceName')
47
47
  * @param {object} store store: object - Store object
48
- * @returns {Service} returnType: Service
48
+ * @returns {ReduxService} returnType: Service
49
49
  */
50
50
  export declare const getServiceByName: ((state: {
51
51
  advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
@@ -55,7 +55,7 @@ export declare const getServiceByName: ((state: {
55
55
  services?: ServiceState;
56
56
  layers?: import("../types").LayerState;
57
57
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
58
- }, params_0: string) => Service) & import("reselect").OutputSelectorFields<(args_0: ServiceState, args_1: string) => Service & {
58
+ }, params_0: string) => ReduxService) & import("reselect").OutputSelectorFields<(args_0: ServiceState, args_1: string) => ReduxService & {
59
59
  clearCache: () => void;
60
60
  }> & {
61
61
  clearCache: () => void;
@@ -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: ReduxService) => ServiceLayer[]) & {
80
80
  clearCache: () => void;
81
81
  }> & {
82
82
  clearCache: () => void;
@@ -141,13 +141,11 @@ export declare const getServicesInArray: ((state: {
141
141
  layers?: import("../types").LayerState;
142
142
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
143
143
  }) => {
144
- id: string;
145
144
  name: string;
146
- service: string;
145
+ serviceUrl: string;
147
146
  }[]) & import("reselect").OutputSelectorFields<((args_0: ServiceState) => {
148
- id: string;
149
147
  name: string;
150
- service: string;
148
+ serviceUrl: string;
151
149
  }[]) & {
152
150
  clearCache: () => void;
153
151
  }> & {
@@ -3,12 +3,11 @@ import { Action } from 'redux';
3
3
  import type { UpdateLayerInfo } from '../types';
4
4
  import { MAP_SERVICES_SET_LAYERS, MAP_SERVICES_REMOVE_SERVICE } from './constants';
5
5
  export interface Services {
6
- [key: string]: Service;
6
+ [key: string]: ReduxService;
7
7
  }
8
- export interface Service {
9
- id?: string;
8
+ export interface ReduxService {
10
9
  name?: string;
11
- service?: string;
10
+ serviceUrl?: string;
12
11
  active?: boolean;
13
12
  layers?: ServiceLayer[];
14
13
  }
@@ -29,21 +28,20 @@ export interface ServiceState {
29
28
  allIds: string[];
30
29
  }
31
30
  export interface SetLayersForServicePayload {
32
- id: string;
33
31
  name: string;
34
- service: string;
32
+ serviceUrl: string;
35
33
  layers: ServiceLayer[];
34
+ isUserAddedService: boolean;
36
35
  }
37
- interface SetLayersForService extends Action {
36
+ export interface SetLayersForService extends Action {
38
37
  type: typeof MAP_SERVICES_SET_LAYERS;
39
38
  payload: SetLayersForServicePayload;
40
39
  }
41
40
  export interface MapStoreRemoveServicePayload {
42
41
  serviceUrl: string;
43
42
  }
44
- interface MapStoreRemoveService extends Action {
43
+ export interface MapStoreRemoveService extends Action {
45
44
  type: typeof MAP_SERVICES_REMOVE_SERVICE;
46
45
  payload: MapStoreRemoveServicePayload;
47
46
  }
48
47
  export declare type ServiceActions = SetLayersForService | UpdateLayerInfo | MapStoreRemoveService;
49
- export {};
@@ -4,6 +4,8 @@ export declare const dateFormat = "YYYY-MM-DDTHH:mm:ss[Z]";
4
4
  export declare const generateLayerId: () => string;
5
5
  export declare const generateMapId: () => string;
6
6
  export declare const generateTimesliderId: () => string;
7
+ export declare const generateServiceId: () => string;
8
+ export declare const generateTimeSeriesId: () => string;
7
9
  /**
8
10
  * Registers a WMJSLayer in a lookuptable with a layerId
9
11
  * @param {WMLayer} wmLayer
@@ -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' | 'timeSeriesManager' | 'syncGroups';
3
+ export declare type DialogType = 'legend' | 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'timeSeriesSelect' | 'syncGroups';
4
4
  export declare type Source = 'app' | 'module';
5
5
  export interface UIType {
6
6
  type: DialogType;
@@ -1,3 +1,3 @@
1
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[];
2
+ export declare const preloadedDefaultBaseServices: import("../components/WMSLoader/services").Service[];
3
+ export declare const preloadedDefaultMapServices: import("../components/WMSLoader/services").Service[];
@@ -1,6 +1,6 @@
1
- import { Style, WMLayer } from '@opengeoweb/webmap';
1
+ import { LayerOptions, Style, WMLayer } from '@opengeoweb/webmap';
2
2
  import { Service } from '../components/WMSLoader/services';
3
- import { LayerType } from '../store/mapStore/types';
3
+ import { Layer, LayerType, Services } from '../store/mapStore/types';
4
4
  export declare const defaultReduxLayerRadarColor: {
5
5
  service: string;
6
6
  name: string;
@@ -18,209 +18,20 @@ export declare const defaultReduxLayerRadarColor: {
18
18
  }[];
19
19
  id: string;
20
20
  };
21
- export declare const defaultReduxLayerRadarKNMI: {
22
- service: string;
23
- name: string;
24
- title: string;
25
- format: string;
26
- style: string;
27
- enabled: boolean;
28
- layerType: LayerType;
29
- dimensions: {
30
- name: string;
31
- units: string;
32
- currentValue: string;
33
- }[];
34
- styles: {
35
- title: string;
36
- name: string;
37
- legendURL: string;
38
- abstract: string;
39
- }[];
40
- id: string;
41
- };
21
+ export declare const defaultReduxLayerRadarKNMI: Layer;
42
22
  export declare const WmdefaultReduxLayerRadarKNMI: WMLayer;
43
23
  export declare const makeGeoservicesRadarLayer: () => WMLayer;
44
24
  export declare const styleListForRADNL25PCPCMLayer: Style[];
45
25
  export declare const styleListForRADNLOPERR25PCPRRL3KNMILayer: Style[];
46
- export declare const defaultReduxServices: {
47
- 'https://testservice': {
48
- id: string;
49
- name: string;
50
- service: string;
51
- layers: ({
52
- name: string;
53
- text: string;
54
- leaf: boolean;
55
- path: any[];
56
- keywords: string[];
57
- abstract: string;
58
- styles?: undefined;
59
- } | {
60
- name: string;
61
- text: string;
62
- leaf: boolean;
63
- path: any[];
64
- keywords: string[];
65
- abstract: string;
66
- styles: Style[];
67
- } | {
68
- name: string;
69
- text: string;
70
- leaf: boolean;
71
- path: any[];
72
- keywords: any[];
73
- abstract?: undefined;
74
- styles?: undefined;
75
- })[];
76
- };
77
- };
78
- export declare const multiDimensionLayer: {
79
- service: string;
80
- id: string;
81
- name: string;
82
- title: string;
83
- layerType: LayerType;
84
- enabled: boolean;
85
- dimensions: ({
86
- name: string;
87
- units: string;
88
- currentValue: string;
89
- values: string;
90
- } | {
91
- name: string;
92
- units: string;
93
- currentValue: string;
94
- values?: undefined;
95
- })[];
96
- styles: {
97
- title: string;
98
- name: string;
99
- legendURL: string;
100
- abstract: string;
101
- }[];
102
- };
103
- export declare const flDimensionLayer: {
104
- service: string;
105
- id: string;
106
- name: string;
107
- title: string;
108
- layerType: LayerType;
109
- enabled: boolean;
110
- dimensions: ({
111
- name: string;
112
- units: string;
113
- currentValue: string;
114
- values: string;
115
- } | {
116
- name: string;
117
- units: string;
118
- currentValue: string;
119
- values?: undefined;
120
- })[];
121
- };
26
+ export declare const defaultReduxServices: Services;
27
+ export declare const multiDimensionLayer: Layer;
28
+ export declare const flDimensionLayer: Layer;
122
29
  export declare const WmMultiDimensionLayer: WMLayer;
123
- export declare const multiDimensionLayer2: {
124
- service: string;
125
- id: string;
126
- name: string;
127
- layerType: LayerType;
128
- dimensions: ({
129
- name: string;
130
- units: string;
131
- currentValue: string;
132
- values: string;
133
- } | {
134
- name: string;
135
- units: string;
136
- currentValue: string;
137
- values?: undefined;
138
- })[];
139
- styles: {
140
- title: string;
141
- name: string;
142
- legendURL: string;
143
- abstract: string;
144
- }[];
145
- };
146
- export declare const multiDimensionLayer3: {
147
- service: string;
148
- id: string;
149
- name: string;
150
- layerType: LayerType;
151
- dimensions: ({
152
- name: string;
153
- units: string;
154
- currentValue: string;
155
- values: string;
156
- timeInterval?: undefined;
157
- } | {
158
- name: string;
159
- units: string;
160
- currentValue: string;
161
- timeInterval: {
162
- year: number;
163
- month: number;
164
- day: number;
165
- hour: number;
166
- minute: number;
167
- second: number;
168
- isRegularInterval: boolean;
169
- getTime: any;
170
- toISO8601: any;
171
- };
172
- values?: undefined;
173
- })[];
174
- styles: {
175
- title: string;
176
- name: string;
177
- legendURL: string;
178
- abstract: string;
179
- }[];
180
- };
30
+ export declare const multiDimensionLayer2: Layer;
31
+ export declare const multiDimensionLayer3: Layer;
181
32
  export declare const WmMultiDimensionLayer2: WMLayer;
182
33
  export declare const WmMultiDimensionLayer3: WMLayer;
183
- export declare const WmMultiDimensionServices: {
184
- 'https://testservicedimensions': {
185
- id: string;
186
- name: string;
187
- service: string;
188
- layers: {
189
- name: string;
190
- text: string;
191
- leaf: boolean;
192
- path: any[];
193
- }[];
194
- };
195
- 'https://testservice': {
196
- id: string;
197
- name: string;
198
- service: string;
199
- layers: {
200
- name: string;
201
- text: string;
202
- leaf: boolean;
203
- path: any[];
204
- }[];
205
- };
206
- };
207
- export declare const layerWithoutTimeDimension: {
208
- service: string;
209
- id: string;
210
- name: string;
211
- layerType: LayerType;
212
- dimensions: {
213
- name: string;
214
- units: string;
215
- currentValue: string;
216
- values: string;
217
- }[];
218
- styles: {
219
- title: string;
220
- name: string;
221
- legendURL: string;
222
- abstract: string;
223
- }[];
224
- };
34
+ export declare const WmMultiDimensionServices: Services;
35
+ export declare const layerWithoutTimeDimension: LayerOptions;
225
36
  export declare const WmLayerWithoutTimeDimension: WMLayer;
226
37
  export declare const defaultTestServices: Service[];
@@ -1,10 +1,26 @@
1
- import { Bbox, Layer } from '../store/mapStore/types';
2
- import { FilteredMapPresets, Service, MapPresets, LayerDimension } from './types';
1
+ import { Service } from '../components/WMSLoader/services';
2
+ import { Layer } from '../store/mapStore/types';
3
+ interface FilteredMapPresets {
4
+ services?: Service[];
5
+ baseServices?: Service[];
6
+ baseLayers: Layer[];
7
+ mapLayers: Layer[];
8
+ }
9
+ export interface InitialAppPresetProps {
10
+ presetType?: string;
11
+ presetId?: string;
12
+ presetName?: string;
13
+ services?: Service[];
14
+ baseServices?: Service[];
15
+ layers?: Layer[];
16
+ baseLayers?: Layer[];
17
+ }
18
+ export interface InitialAppPreset {
19
+ preset: InitialAppPresetProps;
20
+ }
3
21
  export declare const filterBaseLayers: (presetArray: unknown[]) => Layer[];
4
22
  export declare const filterMapLayers: (presetArray: unknown[]) => Layer[];
5
23
  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;
24
+ export declare const filterMapPresets: (presets: InitialAppPreset) => FilteredMapPresets;
25
+ export declare const getInitialPresets: (mapPreset: InitialAppPreset, defaultInitialPresets: InitialAppPreset) => InitialAppPresetProps;
26
+ export {};
@@ -0,0 +1,3 @@
1
+ import { UserAddedServices } from './types';
2
+ export declare const getUserAddedServices: () => UserAddedServices;
3
+ export declare const setUserAddedServices: (services: UserAddedServices) => void;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,43 +1,4 @@
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[];
1
+ import { Service } from '../components/WMSLoader/services';
2
+ export interface UserAddedServices {
3
+ [id: string]: Service;
43
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "2.4.1",
3
+ "version": "2.7.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,30 +13,31 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "react": "^17.0.2",
16
- "@opengeoweb/theme": "2.4.1",
16
+ "@opengeoweb/theme": "2.7.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.4.1",
24
- "throttle-debounce": "^3.0.1",
25
- "proj4": "^2.6.2",
26
- "react-sortablejs": "^6.0.0",
27
- "@opengeoweb/shared": "2.4.1",
23
+ "@opengeoweb/shared": "2.7.0",
28
24
  "react-draggable": "^4.4.3",
29
25
  "re-resizable": "^6.9.0",
30
26
  "lodash": "^4.17.20",
31
- "@opengeoweb/form-fields": "2.4.1",
27
+ "@opengeoweb/form-fields": "2.7.0",
32
28
  "react-hook-form": "^6.12.1",
33
29
  "moment-timezone": "^0.5.31",
34
30
  "@mui/lab": "^5.0.0-alpha.64",
35
31
  "axios": "^0.25.0",
32
+ "@opengeoweb/webmap": "2.7.0",
33
+ "throttle-debounce": "^3.0.1",
34
+ "proj4": "^2.6.2",
35
+ "react-sortablejs": "^6.0.0",
36
36
  "redux-dynamic-modules": "^5.2.0",
37
37
  "redux": "^4.0.4",
38
- "lodash.clonedeep": "^4.5.0",
39
38
  "immer": "^9.0.6",
39
+ "lodash.clonedeep": "^4.5.0",
40
+ "@turf/turf": "^5.1.6",
40
41
  "reselect": "^4.1.5",
41
42
  "redux-dynamic-modules-saga": "^5.2.0",
42
43
  "redux-saga": "^1.1.3"
@@ -1,2 +0,0 @@
1
- declare const useTooltipContainerStyles: (props?: any) => import("@mui/styles").ClassNameMap<"textContainer">;
2
- export default useTooltipContainerStyles;