@opengeoweb/core 4.22.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +18031 -3821
- package/package.json +12 -12
- package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +4 -4
- package/src/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +6 -6
- package/src/lib/components/FeatureInfo/GetFeatureInfoButtonConnect.d.ts +2 -2
- package/src/lib/components/FeatureInfo/GetFeatureInfoDialog.d.ts +4 -5
- package/src/lib/components/FeatureInfo/utils.d.ts +2 -2
- package/src/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +2 -2
- package/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.d.ts +2 -2
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.d.ts +2 -2
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayers.d.ts +3 -3
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayersConnect.d.ts +6 -6
- package/src/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +3 -2
- package/src/lib/components/LayerManager/DockedLayerManagerConnect.d.ts +3 -4
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +3 -3
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +5 -4
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerManager.d.ts +5 -4
- package/src/lib/components/LayerManager/LayerManagerConnect.d.ts +4 -2
- package/src/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +3 -2
- package/src/lib/components/LayerManager/LayerManagerUtils.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +3 -2
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +3 -4
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +2 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoButtonConnect.d.ts +3 -4
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.d.ts +3 -4
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoLegend.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.d.ts +6 -7
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +3 -3
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +4 -6
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +4 -4
- package/src/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +3 -2
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.d.ts +3 -2
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +2 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +4 -5
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +4 -5
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupDialogConnect.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/utils.d.ts +4 -5
- package/src/lib/components/LayerManager/useFetchServices.d.ts +2 -2
- package/src/lib/components/Legend/Legend.d.ts +2 -2
- package/src/lib/components/Legend/LegendConnect.d.ts +3 -3
- package/src/lib/components/Legend/LegendDialog.d.ts +3 -4
- package/src/lib/components/Legend/LegendLayout.d.ts +2 -2
- package/src/lib/components/Legend/LegendMapButtonConnect.d.ts +2 -2
- package/src/lib/components/MapDraw/MapDraw.d.ts +5 -3
- package/src/lib/components/MapDraw/MapDrawContainer.d.ts +2 -2
- package/src/lib/components/MapDraw/MapDrawTool.stories.d.ts +6 -0
- package/src/lib/components/MapDraw/index.d.ts +1 -1
- package/src/lib/components/MapDraw/useMapDrawTool.d.ts +52 -0
- package/src/lib/components/MapTime/MapTime.d.ts +3 -3
- package/src/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +2 -3
- package/src/lib/components/MapView/MapViewConnect.MultiMapLayerManager.stories.d.ts +7 -0
- package/src/lib/components/MapView/MapViewLayer.d.ts +2 -2
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.d.ts +2 -2
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +2 -2
- package/src/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.d.ts +2 -2
- package/src/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +3 -3
- package/src/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +3 -3
- package/src/lib/components/MultiMapView/MultiMapViewConnect.d.ts +4 -4
- package/src/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
- package/src/lib/components/ReactMapView/types.d.ts +9 -9
- package/src/lib/components/ReactMapView/utils.d.ts +5 -5
- package/src/lib/components/SyncGroups/SimpleTimeSliderConnect.d.ts +2 -2
- package/src/lib/components/SyncGroups/SyncGroupViewer.d.ts +5 -5
- package/src/lib/components/SyncGroups/selector.d.ts +1 -1
- package/src/lib/components/SyncGroups/utils.d.ts +2 -2
- package/src/lib/components/TimeSlider/TimeSliderButtons/AnimationLengthButton/AnimationLengthButton.d.ts +2 -2
- package/src/lib/components/TimeSlider/TimeSliderButtons/AutoUpdateButton/AutoUpdateButtonConnect.d.ts +2 -2
- package/src/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenu.d.ts +1 -1
- package/src/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +1 -1
- package/src/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +4 -4
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButton.d.ts +14 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButton.stories.d.ts +24 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButtonConnect.d.ts +5 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +2 -2
- package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBox.d.ts +2 -2
- package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxConnect.d.ts +9 -10
- package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxRenderFunctions.d.ts +2 -2
- package/src/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +4 -3
- package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawBackground.d.ts +3 -3
- package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawTimeScale.d.ts +3 -3
- package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawTimeSliderLegend.d.ts +2 -2
- package/src/lib/components/TimeSlider/constants.d.ts +3 -0
- package/src/lib/components/TimeSlider/timeSliderUtils.d.ts +14 -48
- package/src/lib/components/TimeSliderLite/timeSliderLiteUtils.d.ts +4 -4
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTree.d.ts +2 -2
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeConnect.d.ts +8 -9
- package/src/lib/components/WMSLoader/WMSLoaderConnect.d.ts +2 -2
- package/src/lib/components/WMSLoader/services.d.ts +2 -2
- package/src/lib/hooks/useSetupDialog/useSetupDialog.d.ts +2 -3
- package/src/lib/index.d.ts +55 -55
- package/src/lib/store/app/reducer.d.ts +7 -4
- package/src/lib/store/coreModuleConfig.d.ts +1 -1
- package/src/lib/store/generic/index.d.ts +11 -11
- package/src/lib/store/generic/selectors.d.ts +3 -3
- package/src/lib/store/generic/synchronizationGroups/index.d.ts +4 -4
- package/src/lib/store/generic/synchronizationGroups/reducer.d.ts +19 -19
- package/src/lib/store/generic/synchronizationGroups/selectors.d.ts +7 -7
- package/src/lib/store/generic/synchronizationGroups/types.d.ts +2 -2
- package/src/lib/store/generic/types.d.ts +2 -1
- package/src/lib/store/layerSelect/index.d.ts +1 -0
- package/src/lib/store/layerSelect/reducer.d.ts +13 -12
- package/src/lib/store/layerSelect/selectors.d.ts +7 -7
- package/src/lib/store/layerSelect/types.d.ts +1 -1
- package/src/lib/store/layerSelect/utils.d.ts +4 -3
- package/src/lib/store/mapStore/index.d.ts +2 -0
- package/src/lib/store/mapStore/layers/index.d.ts +1 -0
- package/src/lib/store/mapStore/layers/reducer.d.ts +41 -41
- package/src/lib/store/mapStore/layers/selectors.d.ts +22 -22
- package/src/lib/store/mapStore/layers/types.d.ts +1 -0
- package/src/lib/store/mapStore/layers/utils.d.ts +2 -2
- package/src/lib/store/mapStore/map/constants.d.ts +4 -0
- package/src/lib/store/mapStore/map/enums.d.ts +37 -0
- package/src/lib/store/mapStore/map/index.d.ts +5 -0
- package/src/lib/store/mapStore/map/reducer.d.ts +60 -60
- package/src/lib/store/mapStore/map/selectors.d.ts +123 -120
- package/src/lib/store/mapStore/map/types.d.ts +9 -22
- package/src/lib/store/mapStore/map/utils.d.ts +35 -6
- package/src/lib/store/mapStore/service/index.d.ts +1 -0
- package/src/lib/store/mapStore/service/reducer.d.ts +5 -5
- package/src/lib/store/mapStore/service/selectors.d.ts +6 -6
- package/src/lib/store/mapStore/utils/helpers.d.ts +1 -1
- package/src/lib/store/mapStore/utils/index.d.ts +1 -0
- package/src/lib/store/router/reducer.d.ts +3 -2
- package/src/lib/store/snackbar/index.d.ts +1 -0
- package/src/lib/store/snackbar/reducer.d.ts +5 -5
- package/src/lib/store/snackbar/selectors.d.ts +1 -1
- package/src/lib/store/ui/index.d.ts +1 -0
- package/src/lib/store/ui/reducer.d.ts +20 -20
- package/src/lib/store/ui/selectors.d.ts +10 -10
- package/src/lib/store/ui/types.d.ts +1 -1
- package/src/lib/storybookUtils/HelperComponents.d.ts +2 -2
- package/src/lib/storybookUtils/defaultStorySettings.d.ts +5 -5
- package/src/lib/storybookUtils/store.d.ts +1 -1
- package/src/lib/types/types.d.ts +4 -5
- package/src/lib/utils/__mocks__/getCapabilities.d.ts +2 -2
- package/src/lib/utils/defaultTestSettings.d.ts +11 -12
- package/src/lib/utils/jsonPresetFilter.d.ts +8 -8
- package/src/lib/utils/publicLayers.d.ts +44 -44
- package/src/lib/utils/testLayers.d.ts +10 -10
- package/src/lib/utils/testUtils.d.ts +9 -9
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +0 -2
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButton.d.ts +0 -12
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButtonConnect.d.ts +0 -5
- /package/src/lib/components/MapDraw/{mapDrawTools.d.ts → mapDrawUtils.d.ts} +0 -0
- /package/src/lib/components/{LayerManager/LayerSelect/LayerList/LayerListUtils.spec.d.ts → MapDraw/mapDrawUtils.spec.d.ts} +0 -0
- /package/src/lib/components/MapDraw/{mapDrawTools.spec.d.ts → useMapDrawTool.spec.d.ts} +0 -0
- /package/src/lib/components/TimeSlider/TimeSliderButtons/{TimeScaleButton/TimeScaleButton.spec.d.ts → TimeSpanButton/TimeSpanButton.spec.d.ts} +0 -0
- /package/src/lib/components/TimeSlider/TimeSliderButtons/{TimeScaleButton/TimeScaleButtonConnect.spec.d.ts → TimeSpanButton/TimeSpanButtonConnect.spec.d.ts} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TimeInterval } from '@opengeoweb/webmap';
|
|
2
2
|
import type { Layer, LayerActionOrigin } from '../types';
|
|
3
|
+
import { Span, MapActionOrigin } from './enums';
|
|
3
4
|
export interface Dimension {
|
|
4
5
|
name?: string;
|
|
5
6
|
units?: string;
|
|
@@ -27,13 +28,13 @@ export interface WebMap {
|
|
|
27
28
|
dimensions?: Dimension[];
|
|
28
29
|
autoUpdateLayerId?: string;
|
|
29
30
|
autoTimeStepLayerId?: string;
|
|
30
|
-
|
|
31
|
+
timeSliderSpan?: Span;
|
|
31
32
|
timeStep?: number;
|
|
32
33
|
animationDelay?: number;
|
|
34
|
+
timeSliderWidth?: number;
|
|
33
35
|
timeSliderCenterTime?: number;
|
|
34
36
|
timeSliderUnfilteredSelectedTime?: number;
|
|
35
37
|
timeSliderSecondsPerPx?: number;
|
|
36
|
-
timeSliderDataScaleToSecondsPerPx?: number;
|
|
37
38
|
isTimestepAuto?: boolean;
|
|
38
39
|
isTimeSliderHoverOn?: boolean;
|
|
39
40
|
isTimeSliderVisible?: boolean;
|
|
@@ -59,17 +60,6 @@ export interface Bbox {
|
|
|
59
60
|
top: number;
|
|
60
61
|
bottom: number;
|
|
61
62
|
}
|
|
62
|
-
export declare enum Scale {
|
|
63
|
-
Minutes5 = 0,
|
|
64
|
-
Hour = 1,
|
|
65
|
-
Hours3 = 2,
|
|
66
|
-
Hours6 = 3,
|
|
67
|
-
Day = 4,
|
|
68
|
-
Week = 5,
|
|
69
|
-
Month = 6,
|
|
70
|
-
Year = 7,
|
|
71
|
-
DataScale = 8
|
|
72
|
-
}
|
|
73
63
|
export declare enum AnimationLength {
|
|
74
64
|
Minutes15 = 15,
|
|
75
65
|
Minutes30 = 30,
|
|
@@ -88,9 +78,6 @@ export interface AnimationPayloadType {
|
|
|
88
78
|
endTime?: string;
|
|
89
79
|
shouldEndtimeOverride?: boolean;
|
|
90
80
|
}
|
|
91
|
-
export declare enum MapActionOrigin {
|
|
92
|
-
map = "map"
|
|
93
|
-
}
|
|
94
81
|
export interface MapPreset {
|
|
95
82
|
layers?: Layer[];
|
|
96
83
|
activeLayerId?: string;
|
|
@@ -171,9 +158,9 @@ export interface SetEndTimeOverriding {
|
|
|
171
158
|
mapId: string;
|
|
172
159
|
shouldEndtimeOverride: boolean;
|
|
173
160
|
}
|
|
174
|
-
export interface
|
|
161
|
+
export interface SetTimeSliderSpanPayload {
|
|
175
162
|
mapId: string;
|
|
176
|
-
|
|
163
|
+
timeSliderSpan: Span;
|
|
177
164
|
}
|
|
178
165
|
export interface SetTimeStepPayload {
|
|
179
166
|
mapId: string;
|
|
@@ -207,6 +194,10 @@ export interface ToggleTimeSliderIsVisiblePayload {
|
|
|
207
194
|
isTimeSliderVisible: boolean;
|
|
208
195
|
origin?: MapActionOrigin;
|
|
209
196
|
}
|
|
197
|
+
export interface SetTimeSliderWidthPayload {
|
|
198
|
+
mapId: string;
|
|
199
|
+
timeSliderWidth: number;
|
|
200
|
+
}
|
|
210
201
|
export interface SetTimeSliderCenterTimePayload {
|
|
211
202
|
mapId: string;
|
|
212
203
|
timeSliderCenterTime: number;
|
|
@@ -219,10 +210,6 @@ export interface SetTimeSliderSecondsPerPxPayload {
|
|
|
219
210
|
mapId: string;
|
|
220
211
|
timeSliderSecondsPerPx: number;
|
|
221
212
|
}
|
|
222
|
-
export interface SetTimeSliderDataScaleToSecondsPerPxPayload {
|
|
223
|
-
mapId: string;
|
|
224
|
-
timeSliderDataScaleToSecondsPerPx: number;
|
|
225
|
-
}
|
|
226
213
|
export interface ToggleZoomControlsPayload {
|
|
227
214
|
mapId: string;
|
|
228
215
|
shouldShowZoomControls: boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TimeInterval } from '@opengeoweb/webmap';
|
|
2
|
-
import { Bbox, Dimension
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Bbox, Dimension } from './types';
|
|
3
|
+
import { Scale, Span } from './enums';
|
|
4
|
+
import type { WebMapState, WebMap, SpeedFactorType } from '../types';
|
|
5
|
+
import type { Layer } from '../layers/types';
|
|
5
6
|
interface CreateMapProps {
|
|
6
7
|
id: string;
|
|
7
8
|
isAnimating?: boolean;
|
|
@@ -18,12 +19,12 @@ interface CreateMapProps {
|
|
|
18
19
|
dimensions?: Dimension[];
|
|
19
20
|
autoTimeStepLayerId?: string;
|
|
20
21
|
autoUpdateLayerId?: string;
|
|
21
|
-
|
|
22
|
+
timeSliderSpan?: Span;
|
|
22
23
|
timeStep?: number;
|
|
23
24
|
animationDelay?: number;
|
|
25
|
+
timeSliderWidth?: number;
|
|
24
26
|
timeSliderCenterTime?: number;
|
|
25
27
|
timeSliderSecondsPerPx?: number;
|
|
26
|
-
timeSliderDataScaleToSecondsPerPx?: number;
|
|
27
28
|
isTimestepAuto?: boolean;
|
|
28
29
|
isTimeSliderHoverOn?: boolean;
|
|
29
30
|
isTimeSliderVisible?: boolean;
|
|
@@ -31,7 +32,7 @@ interface CreateMapProps {
|
|
|
31
32
|
disableMapPin?: boolean;
|
|
32
33
|
shouldShowZoomControls?: boolean;
|
|
33
34
|
}
|
|
34
|
-
export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, isEndTimeOverriding, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, autoUpdateLayerId, autoTimeStepLayerId,
|
|
35
|
+
export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, isEndTimeOverriding, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, autoUpdateLayerId, autoTimeStepLayerId, timeSliderSpan, timeStep, animationDelay, timeSliderWidth, timeSliderCenterTime, timeSliderSecondsPerPx, isTimestepAuto, isTimeSliderHoverOn, isTimeSliderVisible, displayMapPin, disableMapPin, shouldShowZoomControls, }: CreateMapProps) => WebMap;
|
|
35
36
|
export declare const checkValidLayersPayload: (layers: Layer[], mapId: string) => boolean;
|
|
36
37
|
/**
|
|
37
38
|
* This will get the map from the map draftstate.
|
|
@@ -66,4 +67,32 @@ export declare const produceDraftStateSetMapDimensionFromLayerChangeDimension: (
|
|
|
66
67
|
export declare function moveArrayElements(array: string[], oldIndex: number, newIndex: number): string[];
|
|
67
68
|
export declare const getTimeStepFromDataInterval: (timeInterval: TimeInterval) => number;
|
|
68
69
|
export declare const getActiveLayerTimeStep: (timeDimension: Dimension | undefined) => number | undefined;
|
|
70
|
+
export declare const getSpeedFactor: (speedDelay: number) => SpeedFactorType;
|
|
71
|
+
/**
|
|
72
|
+
* Returns speed delay for given speedFactor. For options, see defined above in "speedFactors"
|
|
73
|
+
*/
|
|
74
|
+
export declare const getSpeedDelay: (speedFactor: SpeedFactorType) => number;
|
|
75
|
+
export declare const roundWithTimeStep: (unixTime: number, timeStep: number, type?: string | undefined) => number;
|
|
76
|
+
/**
|
|
77
|
+
* In this Map collection all fundamental scales
|
|
78
|
+
* (Scale.Minutes5 ... Scale.Year) are mapped with their corresponding
|
|
79
|
+
* secondsPerPx numbers.
|
|
80
|
+
* @returns a Map including information explained above
|
|
81
|
+
*/
|
|
82
|
+
export declare const secondsPerPxToScale: Map<number, Scale>;
|
|
83
|
+
export declare const secondsToSpan: Map<number, Span>;
|
|
84
|
+
/**
|
|
85
|
+
* Here secondsPerPxToScale is converted to an iterator object and
|
|
86
|
+
* then keys are turned to values and values turned to keys
|
|
87
|
+
* to make it easier in some parts GeoWeb to fetch a secondsPerpx for
|
|
88
|
+
* a certain fundamental scale (Scale.Minutes5 ... Scale.year)
|
|
89
|
+
* @returns an Object, where names are fundamental scale values (0 - 7) and
|
|
90
|
+
* values are their corresponding secondsPerPx numbers.
|
|
91
|
+
*/
|
|
92
|
+
export declare const scaleToSecondsPerPx: {
|
|
93
|
+
[x in Scale]: number;
|
|
94
|
+
};
|
|
95
|
+
export declare const spanToSeconds: {
|
|
96
|
+
[x in Span]: number;
|
|
97
|
+
};
|
|
69
98
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { PayloadAction } from '@reduxjs/toolkit';
|
|
1
|
+
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
2
|
import { FetchInitialServicesPayload, MapStoreRemoveServicePayload, ServiceState, SetLayersForServicePayload } from './types';
|
|
3
3
|
import { layerActions } from '../layers/reducer';
|
|
4
4
|
export declare const initialState: ServiceState;
|
|
5
5
|
export declare const reducer: import("redux").Reducer<ServiceState, import("redux").AnyAction>;
|
|
6
6
|
export declare const serviceActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
7
|
-
serviceSetLayers: (draft:
|
|
8
|
-
mapStoreRemoveService: (draft:
|
|
9
|
-
fetchInitialServices: (draft:
|
|
10
|
-
}>;
|
|
7
|
+
serviceSetLayers: (draft: Draft<ServiceState>, action: PayloadAction<SetLayersForServicePayload>) => void;
|
|
8
|
+
mapStoreRemoveService: (draft: Draft<ServiceState>, action: PayloadAction<MapStoreRemoveServicePayload>) => void;
|
|
9
|
+
fetchInitialServices: (draft: Draft<ServiceState>, action: PayloadAction<FetchInitialServicesPayload>) => void;
|
|
10
|
+
}, "serviceReducer">;
|
|
11
11
|
export declare type ServiceActions = ReturnType<typeof serviceActions.mapStoreRemoveService> | ReturnType<typeof serviceActions.serviceSetLayers> | ReturnType<typeof layerActions.onUpdateLayerInformation>;
|
|
@@ -14,7 +14,7 @@ export declare const getServiceIds: ((state: {
|
|
|
14
14
|
services?: ServiceState | undefined;
|
|
15
15
|
layers?: import("../types").LayerState | undefined;
|
|
16
16
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
17
|
-
}) => string[]) & import("reselect").OutputSelectorFields<(
|
|
17
|
+
}) => string[]) & import("reselect").OutputSelectorFields<(args_0: ServiceState) => string[], {
|
|
18
18
|
clearCache: () => void;
|
|
19
19
|
}> & {
|
|
20
20
|
clearCache: () => void;
|
|
@@ -33,7 +33,7 @@ export declare const getServices: ((state: {
|
|
|
33
33
|
services?: ServiceState | undefined;
|
|
34
34
|
layers?: import("../types").LayerState | undefined;
|
|
35
35
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
36
|
-
}) => import("./types").Services) & import("reselect").OutputSelectorFields<(
|
|
36
|
+
}) => import("./types").Services) & import("reselect").OutputSelectorFields<(args_0: ServiceState) => import("./types").Services, {
|
|
37
37
|
clearCache: () => void;
|
|
38
38
|
}> & {
|
|
39
39
|
clearCache: () => void;
|
|
@@ -52,7 +52,7 @@ export declare const getServiceByName: ((state: {
|
|
|
52
52
|
services?: ServiceState | undefined;
|
|
53
53
|
layers?: import("../types").LayerState | undefined;
|
|
54
54
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
55
|
-
}, params_0: string) => ReduxService) & import("reselect").OutputSelectorFields<(args_0: ServiceState, args_1: string) => ReduxService
|
|
55
|
+
}, params_0: string) => ReduxService) & import("reselect").OutputSelectorFields<(args_0: ServiceState, args_1: string) => ReduxService, {
|
|
56
56
|
clearCache: () => void;
|
|
57
57
|
}> & {
|
|
58
58
|
clearCache: () => void;
|
|
@@ -72,7 +72,7 @@ export declare const getLayersFromService: ((state: {
|
|
|
72
72
|
services?: ServiceState | undefined;
|
|
73
73
|
layers?: import("../types").LayerState | undefined;
|
|
74
74
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
75
|
-
}, params_0: string) => import("@opengeoweb/webmap").LayerProps[]) & import("reselect").OutputSelectorFields<(
|
|
75
|
+
}, params_0: string) => import("@opengeoweb/webmap").LayerProps[]) & import("reselect").OutputSelectorFields<(args_0: ReduxService) => import("@opengeoweb/webmap").LayerProps[], {
|
|
76
76
|
clearCache: () => void;
|
|
77
77
|
}> & {
|
|
78
78
|
clearCache: () => void;
|
|
@@ -93,7 +93,7 @@ export declare const getLayerFromService: ((state: {
|
|
|
93
93
|
services?: ServiceState | undefined;
|
|
94
94
|
layers?: import("../types").LayerState | undefined;
|
|
95
95
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
96
|
-
}, params_0: string, params_1: string) => import("@opengeoweb/webmap").LayerProps) & import("reselect").OutputSelectorFields<(
|
|
96
|
+
}, params_0: string, params_1: string) => import("@opengeoweb/webmap").LayerProps) & import("reselect").OutputSelectorFields<(args_0: import("@opengeoweb/webmap").LayerProps[], args_1: string, args_2: string) => import("@opengeoweb/webmap").LayerProps, {
|
|
97
97
|
clearCache: () => void;
|
|
98
98
|
}> & {
|
|
99
99
|
clearCache: () => void;
|
|
@@ -114,7 +114,7 @@ export declare const getLayerStyles: ((state: {
|
|
|
114
114
|
services?: ServiceState | undefined;
|
|
115
115
|
layers?: import("../types").LayerState | undefined;
|
|
116
116
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
117
|
-
}, params_0: string, params_1: string) => Style[]) & import("reselect").OutputSelectorFields<(
|
|
117
|
+
}, params_0: string, params_1: string) => Style[]) & import("reselect").OutputSelectorFields<(args_0: import("@opengeoweb/webmap").LayerProps) => Style[], {
|
|
118
118
|
clearCache: () => void;
|
|
119
119
|
}> & {
|
|
120
120
|
clearCache: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WMJSMap, WMLayer } from '@opengeoweb/webmap';
|
|
2
|
-
import { Dimension, WMJSDimension } from '../types';
|
|
2
|
+
import type { Dimension, WMJSDimension } from '../types';
|
|
3
3
|
export declare const dateFormat = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
4
4
|
export declare const generateLayerId: () => string;
|
|
5
5
|
export declare const generateMapId: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as mapStoreUtils from './helpers';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { Draft } from 'immer';
|
|
1
2
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
3
|
import { NavigateToUrlPayload } from './types';
|
|
3
4
|
export declare const initialState: {};
|
|
4
5
|
export declare const reducer: import("redux").Reducer<{}, import("redux").AnyAction>;
|
|
5
6
|
export declare const routerActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
6
|
-
navigateToUrl: (draft:
|
|
7
|
-
}>;
|
|
7
|
+
navigateToUrl: (draft: Draft<unknown>, action: PayloadAction<NavigateToUrlPayload>) => void;
|
|
8
|
+
}, "router">;
|
|
8
9
|
export declare type RouterActions = ReturnType<typeof routerActions.navigateToUrl>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { PayloadAction } from '@reduxjs/toolkit';
|
|
1
|
+
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
2
|
import { OpenSnackbarPayload, SnackbarItem, SnackbarState, TriggerOpenSnackbarBySagaPayload } from './types';
|
|
3
3
|
export declare const snackbarAdapter: import("@reduxjs/toolkit").EntityAdapter<SnackbarItem>;
|
|
4
4
|
export declare const initialState: SnackbarState;
|
|
5
5
|
export declare const reducer: import("redux").Reducer<SnackbarState, import("redux").AnyAction>;
|
|
6
6
|
export declare const snackbarActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
7
|
-
openSnackbar: (draft:
|
|
8
|
-
triggerOpenSnackbarBySaga: (draft:
|
|
9
|
-
closeSnackbar: (draft:
|
|
10
|
-
}>;
|
|
7
|
+
openSnackbar: (draft: Draft<SnackbarState>, action: PayloadAction<OpenSnackbarPayload>) => void;
|
|
8
|
+
triggerOpenSnackbarBySaga: (draft: Draft<SnackbarState>, action: PayloadAction<TriggerOpenSnackbarBySagaPayload>) => void;
|
|
9
|
+
closeSnackbar: (draft: Draft<SnackbarState>) => void;
|
|
10
|
+
}, "snackbar">;
|
|
11
11
|
export declare type SnackbarActions = ReturnType<typeof snackbarActions.openSnackbar> | ReturnType<typeof snackbarActions.triggerOpenSnackbarBySaga> | ReturnType<typeof snackbarActions.closeSnackbar>;
|
|
@@ -3,7 +3,7 @@ export declare const getSnackbarStore: (store: SnackbarModuleStore) => SnackbarS
|
|
|
3
3
|
export declare const getCurrentSnackbarMessages: (state: SnackbarModuleStore) => import("./types").SnackbarItem[];
|
|
4
4
|
export declare const getFirstSnackbarMessage: ((state: {
|
|
5
5
|
snackbar?: SnackbarState | undefined;
|
|
6
|
-
}) => import("./types").SnackbarItem | undefined) & import("reselect").OutputSelectorFields<(args_0: import("./types").SnackbarItem[]) => import("./types").SnackbarItem
|
|
6
|
+
}) => import("./types").SnackbarItem | undefined) & import("reselect").OutputSelectorFields<(args_0: import("./types").SnackbarItem[]) => import("./types").SnackbarItem | undefined, {
|
|
7
7
|
clearCache: () => void;
|
|
8
8
|
}> & {
|
|
9
9
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PayloadAction } from '@reduxjs/toolkit';
|
|
1
|
+
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
2
|
import { DialogType, SetActiveMapIdForDialogPayload, SetActiveWindowIdPayload, Source, UIOrderDialogPayload, UIRegisterDialogPayload, UISetDialogFocusedPayload, UISetErrorPayload, UIStoreType, UIToggleDialogPayload, UIToggleIsLoadingPayload, UIType, UIUnRegisterDialogPayload } from './types';
|
|
3
3
|
interface CreateUIDialogElementProps {
|
|
4
4
|
activeMapId: string;
|
|
@@ -10,26 +10,26 @@ export declare const moveToTop: <Type>(list: Type[], element: Type) => Type[];
|
|
|
10
10
|
export declare const createUIDialogElement: ({ activeMapId, type, setOpen, source, }: CreateUIDialogElementProps) => UIType;
|
|
11
11
|
export declare const initialState: UIStoreType;
|
|
12
12
|
export declare const slice: import("@reduxjs/toolkit").Slice<UIStoreType, {
|
|
13
|
-
registerDialog: (draft:
|
|
14
|
-
unregisterDialog: (draft:
|
|
15
|
-
setActiveMapIdForDialog: (draft:
|
|
16
|
-
setToggleOpenDialog: (draft:
|
|
17
|
-
orderDialog: (draft:
|
|
18
|
-
setActiveWindowId: (draft:
|
|
19
|
-
toggleIsLoadingDialog: (draft:
|
|
20
|
-
setErrorDialog: (draft:
|
|
21
|
-
setDialogFocused: (draft:
|
|
13
|
+
registerDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
|
|
14
|
+
unregisterDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
|
|
15
|
+
setActiveMapIdForDialog: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
|
|
16
|
+
setToggleOpenDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
|
|
17
|
+
orderDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
|
|
18
|
+
setActiveWindowId: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
|
|
19
|
+
toggleIsLoadingDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
|
|
20
|
+
setErrorDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
|
|
21
|
+
setDialogFocused: (draft: Draft<UIStoreType>, action: PayloadAction<UISetDialogFocusedPayload>) => void;
|
|
22
22
|
}, "uiReducer">;
|
|
23
23
|
export declare const reducer: import("redux").Reducer<UIStoreType, import("redux").AnyAction>;
|
|
24
24
|
export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
25
|
-
registerDialog: (draft:
|
|
26
|
-
unregisterDialog: (draft:
|
|
27
|
-
setActiveMapIdForDialog: (draft:
|
|
28
|
-
setToggleOpenDialog: (draft:
|
|
29
|
-
orderDialog: (draft:
|
|
30
|
-
setActiveWindowId: (draft:
|
|
31
|
-
toggleIsLoadingDialog: (draft:
|
|
32
|
-
setErrorDialog: (draft:
|
|
33
|
-
setDialogFocused: (draft:
|
|
34
|
-
}>;
|
|
25
|
+
registerDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
|
|
26
|
+
unregisterDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
|
|
27
|
+
setActiveMapIdForDialog: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
|
|
28
|
+
setToggleOpenDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
|
|
29
|
+
orderDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
|
|
30
|
+
setActiveWindowId: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
|
|
31
|
+
toggleIsLoadingDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
|
|
32
|
+
setErrorDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
|
|
33
|
+
setDialogFocused: (draft: Draft<UIStoreType>, action: PayloadAction<UISetDialogFocusedPayload>) => void;
|
|
34
|
+
}, "uiReducer">;
|
|
35
35
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AppStore } from '../../types/types';
|
|
2
|
-
import { UIStoreType, UIType } from './types';
|
|
1
|
+
import type { AppStore } from '../../types/types';
|
|
2
|
+
import type { UIStoreType, UIType } from './types';
|
|
3
3
|
export declare const getUiStore: (store: AppStore) => UIStoreType;
|
|
4
4
|
/**
|
|
5
5
|
* Gets the active map Id and wether a dialog is open or closed
|
|
@@ -24,7 +24,7 @@ export declare const getisDialogOpen: ((state: {
|
|
|
24
24
|
services?: import("../mapStore/types").ServiceState | undefined;
|
|
25
25
|
layers?: import("../mapStore/types").LayerState | undefined;
|
|
26
26
|
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
27
|
-
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean
|
|
27
|
+
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
28
28
|
clearCache: () => void;
|
|
29
29
|
}> & {
|
|
30
30
|
clearCache: () => void;
|
|
@@ -43,7 +43,7 @@ export declare const getDialogMapId: ((state: {
|
|
|
43
43
|
services?: import("../mapStore/types").ServiceState | undefined;
|
|
44
44
|
layers?: import("../mapStore/types").LayerState | undefined;
|
|
45
45
|
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
46
|
-
}, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string
|
|
46
|
+
}, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string, {
|
|
47
47
|
clearCache: () => void;
|
|
48
48
|
}> & {
|
|
49
49
|
clearCache: () => void;
|
|
@@ -62,7 +62,7 @@ export declare const getDialogOrder: ((state: {
|
|
|
62
62
|
services?: import("../mapStore/types").ServiceState | undefined;
|
|
63
63
|
layers?: import("../mapStore/types").LayerState | undefined;
|
|
64
64
|
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
65
|
-
}, params_0: string) => number) & import("reselect").OutputSelectorFields<(args_0: number) => number
|
|
65
|
+
}, params_0: string) => number) & import("reselect").OutputSelectorFields<(args_0: number) => number, {
|
|
66
66
|
clearCache: () => void;
|
|
67
67
|
}> & {
|
|
68
68
|
clearCache: () => void;
|
|
@@ -81,7 +81,7 @@ export declare const getDialogIsOrderedOnTop: ((state: {
|
|
|
81
81
|
services?: import("../mapStore/types").ServiceState | undefined;
|
|
82
82
|
layers?: import("../mapStore/types").LayerState | undefined;
|
|
83
83
|
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
84
|
-
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean) => boolean
|
|
84
|
+
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean) => boolean, {
|
|
85
85
|
clearCache: () => void;
|
|
86
86
|
}> & {
|
|
87
87
|
clearCache: () => void;
|
|
@@ -93,7 +93,7 @@ export declare const getDialogSource: ((state: {
|
|
|
93
93
|
services?: import("../mapStore/types").ServiceState | undefined;
|
|
94
94
|
layers?: import("../mapStore/types").LayerState | undefined;
|
|
95
95
|
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
96
|
-
}, params_0: string) => import("./types").Source) & import("reselect").OutputSelectorFields<(args_0: UIType) => import("./types").Source
|
|
96
|
+
}, params_0: string) => import("./types").Source) & import("reselect").OutputSelectorFields<(args_0: UIType) => import("./types").Source, {
|
|
97
97
|
clearCache: () => void;
|
|
98
98
|
}> & {
|
|
99
99
|
clearCache: () => void;
|
|
@@ -113,7 +113,7 @@ export declare const getDialogIsLoading: ((state: {
|
|
|
113
113
|
services?: import("../mapStore/types").ServiceState | undefined;
|
|
114
114
|
layers?: import("../mapStore/types").LayerState | undefined;
|
|
115
115
|
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
116
|
-
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean
|
|
116
|
+
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
117
117
|
clearCache: () => void;
|
|
118
118
|
}> & {
|
|
119
119
|
clearCache: () => void;
|
|
@@ -125,7 +125,7 @@ export declare const getDialogError: ((state: {
|
|
|
125
125
|
services?: import("../mapStore/types").ServiceState | undefined;
|
|
126
126
|
layers?: import("../mapStore/types").LayerState | undefined;
|
|
127
127
|
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
128
|
-
}, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string
|
|
128
|
+
}, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string, {
|
|
129
129
|
clearCache: () => void;
|
|
130
130
|
}> & {
|
|
131
131
|
clearCache: () => void;
|
|
@@ -137,7 +137,7 @@ export declare const getDialogFocused: ((state: {
|
|
|
137
137
|
services?: import("../mapStore/types").ServiceState | undefined;
|
|
138
138
|
layers?: import("../mapStore/types").LayerState | undefined;
|
|
139
139
|
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
140
|
-
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean
|
|
140
|
+
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
141
141
|
clearCache: () => void;
|
|
142
142
|
}> & {
|
|
143
143
|
clearCache: () => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { layerTypes } from '../store';
|
|
3
3
|
declare type ExampleLayer = {
|
|
4
4
|
title: string;
|
|
5
|
-
layers: Layer[];
|
|
5
|
+
layers: layerTypes.Layer[];
|
|
6
6
|
};
|
|
7
7
|
interface ActionCardProps {
|
|
8
8
|
onClickBtn?: (action: ExampleLayer) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { layerTypes, mapTypes } from '../store';
|
|
2
2
|
import { LayerActions } from '../store/mapStore/layers/reducer';
|
|
3
3
|
export declare const initialBbox: {
|
|
4
4
|
srs: string;
|
|
@@ -9,12 +9,12 @@ export declare const initialBbox: {
|
|
|
9
9
|
top: number;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
export declare const handleLayerActionsCallback: (payload: DeleteLayerPayload | SetLayerDimensionPayload | SetLayerEnabledPayload | SetLayerStylePayload | SetLayerNamePayload | SetLayerOpacityPayload) => LayerActions;
|
|
12
|
+
export declare const handleLayerActionsCallback: (payload: layerTypes.DeleteLayerPayload | layerTypes.SetLayerDimensionPayload | layerTypes.SetLayerEnabledPayload | layerTypes.SetLayerStylePayload | layerTypes.SetLayerNamePayload | layerTypes.SetLayerOpacityPayload) => LayerActions;
|
|
13
13
|
interface UseDefaultMapSettingsProps {
|
|
14
14
|
mapId?: string;
|
|
15
|
-
layers?: Layer[];
|
|
16
|
-
baseLayers?: Layer[];
|
|
17
|
-
bbox?: Bbox;
|
|
15
|
+
layers?: layerTypes.Layer[];
|
|
16
|
+
baseLayers?: layerTypes.Layer[];
|
|
17
|
+
bbox?: mapTypes.Bbox;
|
|
18
18
|
srs?: string;
|
|
19
19
|
shouldAutoUpdate?: boolean;
|
|
20
20
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const store: import("@redux-eggs/core").EggExt & import("@
|
|
1
|
+
declare const store: import("@redux-eggs/core").EggExt & import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<any, import("redux").AnyAction, [import("redux-thunk").ThunkMiddleware<any, import("redux").AnyAction, undefined>]>;
|
|
2
2
|
export { store };
|
package/src/lib/types/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { WebMapStateModuleState } from '../store/mapStore/types';
|
|
2
|
-
import { SynchronizationGroupModuleState } from '../store/generic/synchronizationGroups/types';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export interface AppStore extends SynchronizationGroupModuleState, UIModuleState, WebMapStateModuleState, LayerSelectModuleState {
|
|
1
|
+
import type { WebMapStateModuleState } from '../store/mapStore/types';
|
|
2
|
+
import type { SynchronizationGroupModuleState } from '../store/generic/synchronizationGroups/types';
|
|
3
|
+
import { uiTypes, layerSelectTypes } from '../store';
|
|
4
|
+
export interface AppStore extends SynchronizationGroupModuleState, uiTypes.UIModuleState, WebMapStateModuleState, layerSelectTypes.LayerSelectModuleState {
|
|
6
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LayerTree } from '@opengeoweb/webmap';
|
|
2
|
-
import {
|
|
2
|
+
import { serviceTypes } from '../../store';
|
|
3
3
|
export declare const MOCK_URL_WITH_CHILDREN = "https://mockUrlWithChildren.nl";
|
|
4
4
|
export declare const MOCK_URL_NO_CHILDREN = "https://mockUrlNoChildren.nl";
|
|
5
5
|
export declare const MOCK_URL_WITH_NO_TITLE = "https://mockUrlWithNoTitle.nl";
|
|
@@ -85,4 +85,4 @@ export declare const mockLayersDefault2: {
|
|
|
85
85
|
children: never[];
|
|
86
86
|
};
|
|
87
87
|
export declare const getLayersFromService: (url: string) => Promise<LayerTree>;
|
|
88
|
-
export declare const getLayersFlattenedFromService: (url: string) => Promise<ServiceLayer[]>;
|
|
88
|
+
export declare const getLayersFlattenedFromService: (url: string) => Promise<serviceTypes.ServiceLayer[]>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CoordinateReferenceSystem, LayerOptions, Style, WMLayer } from '@opengeoweb/webmap';
|
|
2
2
|
import { Service } from '../components/WMSLoader/services';
|
|
3
|
-
import {
|
|
4
|
-
import { Layer, LayerType, Services } from '../store/mapStore/types';
|
|
3
|
+
import { layerTypes, serviceTypes, layerSelectTypes } from '../store';
|
|
5
4
|
export declare const defaultReduxLayerRadarColor: {
|
|
6
5
|
service: string;
|
|
7
6
|
name: string;
|
|
@@ -9,7 +8,7 @@ export declare const defaultReduxLayerRadarColor: {
|
|
|
9
8
|
format: string;
|
|
10
9
|
style: string;
|
|
11
10
|
enabled: boolean;
|
|
12
|
-
layerType: LayerType;
|
|
11
|
+
layerType: layerTypes.LayerType;
|
|
13
12
|
dimensions: never[];
|
|
14
13
|
styles: {
|
|
15
14
|
title: string;
|
|
@@ -26,7 +25,7 @@ export declare const defaultReduxLayerRadarKNMI: {
|
|
|
26
25
|
format: string;
|
|
27
26
|
style: string;
|
|
28
27
|
enabled: boolean;
|
|
29
|
-
layerType: LayerType;
|
|
28
|
+
layerType: layerTypes.LayerType;
|
|
30
29
|
dimensions: {
|
|
31
30
|
name: string;
|
|
32
31
|
units: string;
|
|
@@ -45,17 +44,17 @@ export declare const makeGeoservicesRadarLayer: () => WMLayer;
|
|
|
45
44
|
export declare const styleListForRADNL25PCPCMLayer: Style[];
|
|
46
45
|
export declare const crsListForRADNL25PCPCMLayer: CoordinateReferenceSystem[];
|
|
47
46
|
export declare const styleListForRADNLOPERR25PCPRRL3KNMILayer: Style[];
|
|
48
|
-
export declare const defaultReduxServices: Services;
|
|
49
|
-
export declare const defaultReduxActiveLayers: ActiveLayerObject[];
|
|
50
|
-
export declare const defaultReduxActiveLayersWithoutOptionalVariables: ActiveLayerObject[];
|
|
51
|
-
export declare const multiDimensionLayer: Layer;
|
|
52
|
-
export declare const flDimensionLayer: Layer;
|
|
47
|
+
export declare const defaultReduxServices: serviceTypes.Services;
|
|
48
|
+
export declare const defaultReduxActiveLayers: layerSelectTypes.ActiveLayerObject[];
|
|
49
|
+
export declare const defaultReduxActiveLayersWithoutOptionalVariables: layerSelectTypes.ActiveLayerObject[];
|
|
50
|
+
export declare const multiDimensionLayer: layerTypes.Layer;
|
|
51
|
+
export declare const flDimensionLayer: layerTypes.Layer;
|
|
53
52
|
export declare const WmMultiDimensionLayer: WMLayer;
|
|
54
|
-
export declare const multiDimensionLayer2: Layer;
|
|
55
|
-
export declare const multiDimensionLayer3: Layer;
|
|
53
|
+
export declare const multiDimensionLayer2: layerTypes.Layer;
|
|
54
|
+
export declare const multiDimensionLayer3: layerTypes.Layer;
|
|
56
55
|
export declare const WmMultiDimensionLayer2: WMLayer;
|
|
57
56
|
export declare const WmMultiDimensionLayer3: WMLayer;
|
|
58
|
-
export declare const WmMultiDimensionServices: Services;
|
|
57
|
+
export declare const WmMultiDimensionServices: serviceTypes.Services;
|
|
59
58
|
export declare const layerWithoutTimeDimension: LayerOptions;
|
|
60
59
|
export declare const WmLayerWithoutTimeDimension: WMLayer;
|
|
61
60
|
export declare const defaultTestServices: Service[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Service } from '../components/WMSLoader/services';
|
|
2
|
-
import {
|
|
2
|
+
import { layerTypes } from '../store';
|
|
3
3
|
declare type FilteredLayerList = {
|
|
4
|
-
mapLayers: Layer[];
|
|
5
|
-
baseLayers: Layer[];
|
|
6
|
-
overLayers?: Layer[];
|
|
4
|
+
mapLayers: layerTypes.Layer[];
|
|
5
|
+
baseLayers: layerTypes.Layer[];
|
|
6
|
+
overLayers?: layerTypes.Layer[];
|
|
7
7
|
};
|
|
8
8
|
interface FilteredMapPresets extends FilteredLayerList {
|
|
9
9
|
services?: Service[];
|
|
@@ -15,15 +15,15 @@ export interface InitialAppPresetProps {
|
|
|
15
15
|
presetName?: string;
|
|
16
16
|
services?: Service[];
|
|
17
17
|
baseServices?: Service[];
|
|
18
|
-
layers?: Layer[];
|
|
19
|
-
baseLayers?: Layer[];
|
|
18
|
+
layers?: layerTypes.Layer[];
|
|
19
|
+
baseLayers?: layerTypes.Layer[];
|
|
20
20
|
}
|
|
21
21
|
export interface InitialAppPreset {
|
|
22
22
|
preset: InitialAppPresetProps;
|
|
23
23
|
}
|
|
24
24
|
export declare const parseBoolean: (value: string | boolean) => boolean;
|
|
25
|
-
export declare const parseLayer: (layer: Layer) => Layer;
|
|
26
|
-
export declare const filterLayers: (layers?: Layer[], layerParser?: (layer: Layer) => Layer) => FilteredLayerList;
|
|
25
|
+
export declare const parseLayer: (layer: layerTypes.Layer) => layerTypes.Layer;
|
|
26
|
+
export declare const filterLayers: (layers?: layerTypes.Layer[], layerParser?: (layer: layerTypes.Layer) => layerTypes.Layer) => FilteredLayerList;
|
|
27
27
|
export declare const filterServices: (presetArray: Service[]) => Service[];
|
|
28
28
|
export declare const filterMapPresets: (initialAppPreset: InitialAppPreset) => FilteredMapPresets;
|
|
29
29
|
export declare const getInitialAppPresets: (mapPreset: InitialAppPreset, defaultInitialPresets: InitialAppPreset) => InitialAppPresetProps;
|