@opengeoweb/core 1.3.0 → 2.1.3
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/README.md +11 -12
- package/core.esm.js +7809 -5270
- package/core.umd.js +7897 -5209
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +48 -0
- package/lib/components/ComponentsLookUp/componentsLookUp.stories.d.ts +7 -0
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectConnect.spec.d.ts → ComponentsLookUp/componentsLookup.spec.d.ts} +0 -0
- package/lib/components/ComponentsLookUp/index.d.ts +1 -0
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts +37 -0
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectDialog.spec.d.ts → ConfigurableConnectedMap/ConfigurableConnectedMap.spec.d.ts} +0 -0
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.stories.d.ts +6 -0
- package/lib/components/ConfigurableConnectedMap/index.d.ts +1 -0
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +5 -0
- package/lib/components/CustomSwitch/CustomSwitch.d.ts +3 -0
- package/lib/components/{MultiDimensionSelect/VerticalDimensionSelect.spec.d.ts → CustomSwitch/CustomSwitch.spec.d.ts} +0 -0
- package/lib/components/CustomSwitch/CustomSwitch.stories.d.ts +3 -0
- package/lib/components/CustomSwitch/index.d.ts +1 -0
- package/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +4 -5
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +5 -5
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerManager.d.ts +2 -0
- package/lib/components/LayerManager/LayerManager.stories.d.ts +7 -6
- package/lib/components/LayerManager/LayerManagerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +5 -0
- package/lib/components/LayerManager/LayerManagerStories.stories.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +8 -0
- package/lib/components/{TimeSlider/TimeSliderButtons/ToggleIconButton.spec.d.ts → LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButtonConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +16 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.stories.d.ts +13 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +7 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +10 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +9 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +7 -7
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.stories.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectStories.stories.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchField.d.ts +7 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchField.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldConnect.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.stories.d.ts +7 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +13 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +13 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +13 -0
- package/lib/components/Legend/LegendConnect.d.ts +4 -2
- package/lib/components/Legend/LegendDialog.d.ts +2 -0
- package/lib/components/Legend/LegendMapButtonConnect.d.ts +2 -0
- package/lib/components/MapView/MapView.Error.stories.d.ts +4 -0
- package/lib/components/MapView/{MapView.MapCursor.stories.d.ts → MapView.MapPin.stories.d.ts} +1 -1
- package/lib/components/MapView/MapView.ShowLayerInfo.stories.d.ts +5 -0
- package/lib/components/MapView/MapView.stories.d.ts +2 -1
- package/lib/components/MapView/MapViewConnect.MapPin.stories.d.ts +5 -0
- package/lib/components/MapView/MapViewConnect.d.ts +5 -3
- package/lib/components/MapView/MapViewConnect.stories.d.ts +1 -0
- package/lib/components/Mapcontrols/MapControlButton.d.ts +11 -0
- package/lib/components/Mapcontrols/MapControlButton.spec.d.ts +1 -0
- package/lib/components/Mapcontrols/MapControls.d.ts +7 -0
- package/lib/components/Mapcontrols/MapControls.spec.d.ts +1 -0
- package/lib/components/Mapcontrols/ZoomControls.d.ts +0 -8
- package/lib/components/Mapcontrols/index.d.ts +2 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButton.d.ts +8 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButton.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.d.ts +9 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +14 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.stories.d.ts +25 -0
- package/lib/components/{MultiDimensionSelect/VerticalDimensionSelect.d.ts → MultiMapDimensionSelect/DimensionSelectSlider.d.ts} +5 -4
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSlider.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSliderConnect.d.ts +11 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSliderConnect.spec.d.ts +1 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/EnsembleDimensionExample.stories.d.ts +0 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/MultiDimensionSelect.stories.d.ts +2 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConfig.d.ts +11 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/MultiDimensionSelectConnect.stories.d.ts +0 -1
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.d.ts +8 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelect.stories.d.ts +2 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelectConnect.d.ts +9 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelectConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapSingleDimensionSelectConnect.d.ts +8 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapSingleDimensionSelectConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/index.d.ts +2 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +2 -5
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +1 -4
- package/lib/components/MultiMapView/MultiMapView.stories.d.ts +2 -0
- package/lib/components/MultiMapView/MultiMapView10x10.stories.d.ts +2 -0
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +5 -3
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +3 -2
- package/lib/components/ReactMapView/types.d.ts +6 -13
- package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +3 -3
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +0 -2
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonComponents.stories.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +4 -4
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +10 -1
- package/lib/components/{TimeSlider/TimeSliderButtons → ToggleIconButton}/ToggleIconButton.d.ts +1 -0
- package/lib/components/ToggleIconButton/ToggleIconButton.spec.d.ts +1 -0
- package/lib/components/{TimeSlider/TimeSliderButtons → ToggleIconButton}/ToggleIconButton.stories.d.ts +4 -0
- package/lib/components/ToggleIconButton/index.d.ts +1 -0
- package/lib/index.d.ts +9 -5
- package/lib/store/coreModuleConfig.d.ts +1 -1
- package/lib/store/generic/sagas.d.ts +8 -2
- package/lib/store/generic/synchronizationGroups/index.d.ts +2 -1
- package/lib/store/generic/synchronizationGroups/sagas.d.ts +0 -1
- package/lib/store/generic/synchronizationGroups/utils.d.ts +79 -2
- package/lib/store/generic/types.d.ts +3 -3
- package/lib/store/layerSelect/actions.d.ts +15 -0
- package/lib/store/layerSelect/config.d.ts +4 -0
- package/lib/store/layerSelect/constants.d.ts +2 -0
- package/lib/store/layerSelect/reducer.d.ts +3 -0
- package/lib/store/layerSelect/reducer.spec.d.ts +1 -0
- package/lib/store/layerSelect/sagas.d.ts +5 -0
- package/lib/store/layerSelect/sagas.spec.d.ts +1 -0
- package/lib/store/layerSelect/selectors.d.ts +4 -0
- package/lib/store/layerSelect/selectors.spec.d.ts +1 -0
- package/lib/store/layerSelect/types.d.ts +35 -0
- package/lib/store/mapStore/layers/actions.d.ts +8 -4
- package/lib/store/mapStore/layers/constants.d.ts +1 -0
- package/lib/store/mapStore/layers/selectors.d.ts +39 -1
- package/lib/store/mapStore/layers/types.d.ts +28 -10
- package/lib/store/mapStore/layers/utils.d.ts +4 -2
- package/lib/store/mapStore/layers/utils.spec.d.ts +1 -0
- package/lib/store/mapStore/map/actions.d.ts +12 -5
- package/lib/store/mapStore/map/constants.d.ts +1 -0
- package/lib/store/mapStore/map/reducer.d.ts +7 -0
- package/lib/store/mapStore/map/selectors.d.ts +48 -6
- package/lib/store/mapStore/map/types.d.ts +21 -7
- package/lib/store/mapStore/service/actions.d.ts +1 -17
- package/lib/store/mapStore/service/constants.d.ts +0 -2
- package/lib/store/mapStore/service/reducer.d.ts +4 -2
- package/lib/store/mapStore/service/selectors.d.ts +9 -39
- package/lib/store/mapStore/service/types.d.ts +11 -30
- package/lib/store/mapStore/types.d.ts +1 -1
- package/lib/store/mapStore/utils/helpers.d.ts +4 -3
- package/lib/store/ui/actions.d.ts +6 -6
- package/lib/store/ui/sagas.d.ts +5 -0
- package/lib/store/ui/sagas.test.d.ts +1 -0
- package/lib/store/ui/selectors.d.ts +5 -5
- package/lib/store/ui/types.d.ts +2 -1
- package/lib/storybookUtils/HelperComponents.d.ts +1 -1
- package/lib/types/types.d.ts +2 -1
- package/lib/utils/__mocks__/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -0
- package/lib/utils/defaultTestSettings.d.ts +56 -233
- package/lib/utils/dimensionUtils.d.ts +5 -1
- package/lib/utils/getCapabilities.d.ts +8 -0
- package/lib/utils/testUtils.d.ts +3 -2
- package/package.json +9 -9
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectConfig.d.ts +0 -3
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectConnect.d.ts +0 -15
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectDialog.d.ts +0 -15
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectDialogConnect.d.ts +0 -8
- package/lib/components/MultiDimensionSelect/index.d.ts +0 -2
- package/lib/components/MultiDimensionSelect/types.d.ts +0 -18
- package/lib/components/SyncGroups/ConfigurableConnectedMap.d.ts +0 -17
- package/lib/components/SyncGroups/SyncGroupDialog.d.ts +0 -7
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
1
|
import { Scale, WebMap, WebMapState } from './types';
|
|
3
2
|
import { AppStore } from '../../../types/types';
|
|
4
3
|
import { Layer } from '../types';
|
|
@@ -11,6 +10,14 @@ import { Layer } from '../types';
|
|
|
11
10
|
* @returns {object} object containing map state (isAnimating, bbox, baseLayers, layers etc.)
|
|
12
11
|
*/
|
|
13
12
|
export declare const getMapById: (store: AppStore, mapId: string) => WebMap;
|
|
13
|
+
/**
|
|
14
|
+
* Gets all mapIds
|
|
15
|
+
*
|
|
16
|
+
* Example: getAllMapIds(store)
|
|
17
|
+
* @param {object} store store object from which the map state wll be extracted
|
|
18
|
+
* @returns {array} array containing all map ids
|
|
19
|
+
*/
|
|
20
|
+
export declare const getAllMapIds: (store: AppStore) => string[];
|
|
14
21
|
/**
|
|
15
22
|
* Gets the map state of the first map in the store
|
|
16
23
|
*
|
|
@@ -19,6 +26,14 @@ export declare const getMapById: (store: AppStore, mapId: string) => WebMap;
|
|
|
19
26
|
* @returns {object} object containing map state (isAnimating, bbox, baseLayers, layers etc.)
|
|
20
27
|
*/
|
|
21
28
|
export declare const getFirstMap: (store: AppStore) => WebMap;
|
|
29
|
+
/**
|
|
30
|
+
* Gets the id of first map in store
|
|
31
|
+
*
|
|
32
|
+
* Example: getFirstMapId(store)
|
|
33
|
+
* @param {object} store store object from which the map state wll be extracted
|
|
34
|
+
* @returns {object} map id
|
|
35
|
+
*/
|
|
36
|
+
export declare const getFirstMapId: import("reselect").OutputSelector<AppStore, string, (res: WebMap) => string>;
|
|
22
37
|
/**
|
|
23
38
|
* Determines if map is present
|
|
24
39
|
*
|
|
@@ -90,6 +105,16 @@ export declare const getMapOverLayers: import("reselect").OutputParametricSelect
|
|
|
90
105
|
* @returns {array} returnType: array - array containing map dimensions
|
|
91
106
|
*/
|
|
92
107
|
export declare const getMapDimensions: import("reselect").OutputParametricSelector<AppStore, string, import("./types").Dimension[], (res: WebMap) => import("./types").Dimension[]>;
|
|
108
|
+
/**
|
|
109
|
+
* Gets the map dimension requested
|
|
110
|
+
*
|
|
111
|
+
* Example: mapDimensions = getMapDimension(store, 'mapid_1', 'elevation')
|
|
112
|
+
* @param {object} store store: object - store object
|
|
113
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
114
|
+
* @param {string} dimensionName dimensionName: string - name of the dimension
|
|
115
|
+
* @returns {object} returnType: object - object containing the map dimension details
|
|
116
|
+
*/
|
|
117
|
+
export declare const getMapDimension: import("reselect").OutputParametricSelector<AppStore, string, import("./types").Dimension, (res1: WebMap, res2: string) => import("./types").Dimension>;
|
|
93
118
|
/**
|
|
94
119
|
* Gets map srs
|
|
95
120
|
*
|
|
@@ -123,18 +148,18 @@ export declare const isAnimating: import("reselect").OutputParametricSelector<Ap
|
|
|
123
148
|
* Example: endTimeOfAnimetion = getAnimationStartTime(store, 'mapid_1')
|
|
124
149
|
* @param {object} store store: object - store object
|
|
125
150
|
* @param {string} mapId mapId: string - Id of the map
|
|
126
|
-
* @returns {
|
|
151
|
+
* @returns {string} returnType: string
|
|
127
152
|
*/
|
|
128
|
-
export declare const getAnimationStartTime: import("reselect").OutputParametricSelector<AppStore, string,
|
|
153
|
+
export declare const getAnimationStartTime: import("reselect").OutputParametricSelector<AppStore, string, string, (res: WebMap) => string>;
|
|
129
154
|
/**
|
|
130
155
|
* Gets end time of animation
|
|
131
156
|
*
|
|
132
|
-
* Example:
|
|
157
|
+
* Example: endTimeOfAnimation = getAnimationEndTime(store, 'mapid_1')
|
|
133
158
|
* @param {object} store store: object - store object
|
|
134
159
|
* @param {string} mapId mapId: string - Id of the map
|
|
135
|
-
* @returns {
|
|
160
|
+
* @returns {string} returnType: string
|
|
136
161
|
*/
|
|
137
|
-
export declare const getAnimationEndTime: import("reselect").OutputParametricSelector<AppStore, string,
|
|
162
|
+
export declare const getAnimationEndTime: import("reselect").OutputParametricSelector<AppStore, string, string, (res: WebMap) => string>;
|
|
138
163
|
/**
|
|
139
164
|
* Returns map is auto updating
|
|
140
165
|
*
|
|
@@ -282,3 +307,20 @@ export declare const getLayerIndexByLayerId: import("reselect").OutputParametric
|
|
|
282
307
|
* @returns {object} returnType: layer, or null if not found
|
|
283
308
|
*/
|
|
284
309
|
export declare const getLayerByLayerIndex: import("reselect").OutputParametricSelector<AppStore, string, Layer, (res1: Layer[], res2: number) => Layer>;
|
|
310
|
+
/**
|
|
311
|
+
* Returns name of all unique dimensions present in all maps
|
|
312
|
+
*
|
|
313
|
+
* Example getAllUniqueDimensions(store);
|
|
314
|
+
* @param {object} store store: object - store object
|
|
315
|
+
* @returns {array} returnType: array of dimension names
|
|
316
|
+
*/
|
|
317
|
+
export declare const getAllUniqueDimensions: import("reselect").OutputSelector<AppStore, string[], (res1: string[], res2: AppStore) => string[]>;
|
|
318
|
+
/**
|
|
319
|
+
* Returns the mapPinLocation for the current map
|
|
320
|
+
*
|
|
321
|
+
* Example getAllUniqueDimensions(store);
|
|
322
|
+
* @param {object} store store: object - store object
|
|
323
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
324
|
+
* @returns {object} returnType: latitude and longitude of pin
|
|
325
|
+
*/
|
|
326
|
+
export declare const getPinLocation: import("reselect").OutputParametricSelector<AppStore, string, import("./types").MapLocation, (res: WebMap) => import("./types").MapLocation>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DateInterval } from '@opengeoweb/webmap';
|
|
2
|
-
import { Moment } from 'moment';
|
|
3
2
|
import { Action } from 'redux';
|
|
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 } 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 } from './constants';
|
|
5
4
|
export interface Dimension {
|
|
6
5
|
name?: string;
|
|
7
6
|
units?: string;
|
|
@@ -10,6 +9,7 @@ export interface Dimension {
|
|
|
10
9
|
minValue?: string;
|
|
11
10
|
timeInterval?: DateInterval;
|
|
12
11
|
synced?: boolean;
|
|
12
|
+
validSyncSelection?: boolean;
|
|
13
13
|
values?: string;
|
|
14
14
|
}
|
|
15
15
|
export interface WebMap {
|
|
@@ -35,11 +35,16 @@ export interface WebMap {
|
|
|
35
35
|
timeSliderDataScaleToSecondsPerPx?: number;
|
|
36
36
|
isTimestepAuto?: boolean;
|
|
37
37
|
isTimeSliderHoverOn?: boolean;
|
|
38
|
+
mapPinLocation?: MapLocation;
|
|
38
39
|
}
|
|
39
40
|
export interface WebMapState {
|
|
40
41
|
byId: Record<string, WebMap>;
|
|
41
42
|
allIds: string[];
|
|
42
43
|
}
|
|
44
|
+
export interface MapLocation {
|
|
45
|
+
lat: number;
|
|
46
|
+
lon: number;
|
|
47
|
+
}
|
|
43
48
|
export interface Bbox {
|
|
44
49
|
left: number;
|
|
45
50
|
right: number;
|
|
@@ -73,6 +78,7 @@ export interface MoveLayerPayload {
|
|
|
73
78
|
mapId: string;
|
|
74
79
|
oldIndex: number;
|
|
75
80
|
newIndex: number;
|
|
81
|
+
origin: string;
|
|
76
82
|
}
|
|
77
83
|
export interface MoveLayer extends Action {
|
|
78
84
|
type: typeof WEBMAP_LAYER_MOVE;
|
|
@@ -107,8 +113,8 @@ export declare type TimeListType = {
|
|
|
107
113
|
};
|
|
108
114
|
export interface SetMapAnimationStartPayload {
|
|
109
115
|
mapId: string;
|
|
110
|
-
start?:
|
|
111
|
-
end?:
|
|
116
|
+
start?: string;
|
|
117
|
+
end?: string;
|
|
112
118
|
interval?: number;
|
|
113
119
|
timeList?: TimeListType[];
|
|
114
120
|
}
|
|
@@ -181,7 +187,7 @@ export interface SetAnimationStartTime extends Action {
|
|
|
181
187
|
}
|
|
182
188
|
export interface SetAnimationStartTimePayload {
|
|
183
189
|
mapId: string;
|
|
184
|
-
animationStartTime:
|
|
190
|
+
animationStartTime: string;
|
|
185
191
|
}
|
|
186
192
|
export interface SetAnimationEndTime extends Action {
|
|
187
193
|
type: typeof WEBMAP_SET_ANIMATION_END_TIME;
|
|
@@ -189,7 +195,7 @@ export interface SetAnimationEndTime extends Action {
|
|
|
189
195
|
}
|
|
190
196
|
export interface SetAnimationEndTimePayload {
|
|
191
197
|
mapId: string;
|
|
192
|
-
animationEndTime:
|
|
198
|
+
animationEndTime: string;
|
|
193
199
|
}
|
|
194
200
|
export interface ToggleTimestepAutoPayload {
|
|
195
201
|
mapId: string;
|
|
@@ -231,4 +237,12 @@ export interface SetTimeSliderDataScaleToSecondsPerPxPayload {
|
|
|
231
237
|
mapId: string;
|
|
232
238
|
timeSliderDataScaleToSecondsPerPx: number;
|
|
233
239
|
}
|
|
234
|
-
export
|
|
240
|
+
export interface SetMapPinLocation extends Action {
|
|
241
|
+
type: typeof WEBMAP_SET_PIN;
|
|
242
|
+
payload: MapPinLocationPayload;
|
|
243
|
+
}
|
|
244
|
+
export interface MapPinLocationPayload {
|
|
245
|
+
mapId: string;
|
|
246
|
+
mapPinLocation: MapLocation;
|
|
247
|
+
}
|
|
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;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import { ServiceActions,
|
|
2
|
-
/**
|
|
3
|
-
* Action setLayerDimensionsForService is used automatically after calling the setLayers action.
|
|
4
|
-
* It is populating the intial list of dimensions for the layer.
|
|
5
|
-
* Contents is based on WMS GetCapabilities
|
|
6
|
-
*
|
|
7
|
-
* Example: setLayerDimensionsForService({origin: 'someOrigin', service: someService, name: 'layerName', dimensions: dimensionObjecttArray})
|
|
8
|
-
* @param {object} payload consisting of service: string, name: string (layerName) and dimensions: Dimension[]
|
|
9
|
-
*/
|
|
10
|
-
export declare const setLayerDimensionsForService: (payload: SetLayerDimensionsForServicePayload) => ServiceActions;
|
|
1
|
+
import { ServiceActions, SetLayersForServicePayload } from './types';
|
|
11
2
|
/**
|
|
12
3
|
* Action serviceSetLayers is used automatically after calling the setLayers action. Contents is based on WMS GetCapabilities
|
|
13
4
|
*
|
|
@@ -15,10 +6,3 @@ export declare const setLayerDimensionsForService: (payload: SetLayerDimensionsF
|
|
|
15
6
|
* @param {object} payload consisting of service: string, layers: ServiceLayer[]
|
|
16
7
|
*/
|
|
17
8
|
export declare const serviceSetLayers: (payload: SetLayersForServicePayload) => ServiceActions;
|
|
18
|
-
/**
|
|
19
|
-
* Action layerSetStyles is used automatically after calling the setLayers action. Contents is based on WMS GetCapabilities
|
|
20
|
-
*
|
|
21
|
-
* Example: layerSetStyles({service: someService, name: 'layerName', styles: styleArray})
|
|
22
|
-
* @param {object} payload consisting of service: string, name: string, styles: Style[]
|
|
23
|
-
*/
|
|
24
|
-
export declare const layerSetStyles: (payload: SetLayerStylesForServicePayload) => ServiceActions;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ServiceActions } from '../types';
|
|
2
2
|
import { ServiceState } from './types';
|
|
3
3
|
export declare const initialState: {
|
|
4
|
-
|
|
4
|
+
byId: {};
|
|
5
|
+
allIds: any[];
|
|
5
6
|
};
|
|
6
7
|
export declare const WEBMAPJS_REDUCERNAME = "react-webmapjs";
|
|
7
8
|
export declare const reducer: (state: {
|
|
8
|
-
|
|
9
|
+
byId: {};
|
|
10
|
+
allIds: any[];
|
|
9
11
|
}, action: ServiceActions) => ServiceState;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { AppStore } from '../../../types/types';
|
|
2
2
|
import { ServiceState, ServiceLayer } from './types';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves all serviceIds
|
|
5
|
+
*
|
|
6
|
+
* Example: serviceIds = getServiceIds(store)
|
|
7
|
+
* @param {object} store store: object - object from which the service state will be extracted
|
|
8
|
+
* @returns {array} returnType: array - an array of all serviceIds
|
|
9
|
+
*/
|
|
10
|
+
export declare const getServiceIds: import("reselect").OutputSelector<AppStore, string[], (res: ServiceState) => string[]>;
|
|
4
11
|
/**
|
|
5
12
|
* Gets map services
|
|
6
13
|
*
|
|
@@ -8,7 +15,7 @@ import { Dimension, Layer } from '../types';
|
|
|
8
15
|
* @param {object} store store: object - Store object
|
|
9
16
|
* @returns {object} returnType: ServiceState
|
|
10
17
|
*/
|
|
11
|
-
export declare const getServices: import("reselect").OutputSelector<AppStore,
|
|
18
|
+
export declare const getServices: import("reselect").OutputSelector<AppStore, import("./types").Services, (res: ServiceState) => import("./types").Services>;
|
|
12
19
|
/**
|
|
13
20
|
* Gets map layers from servicename
|
|
14
21
|
*
|
|
@@ -17,40 +24,3 @@ export declare const getServices: import("reselect").OutputSelector<AppStore, an
|
|
|
17
24
|
* @returns {array} returnType: ServiceLayer[]
|
|
18
25
|
*/
|
|
19
26
|
export declare const getServiceLayersByName: (store: AppStore, serviceName: string) => ServiceLayer[];
|
|
20
|
-
/**
|
|
21
|
-
* Gets all dimensions of a layer from a service
|
|
22
|
-
*
|
|
23
|
-
* Example: dimensions = getServiceLayerDimensions(store, 'layer-id')
|
|
24
|
-
* @param {object} store store: object - Store object
|
|
25
|
-
* @param {string} layerId layerId: string - Id of the layer
|
|
26
|
-
* @returns {array} returnType: Dimension[]
|
|
27
|
-
*/
|
|
28
|
-
export declare const getServiceLayerDimensions: (store: AppStore, layerId: string) => Dimension[];
|
|
29
|
-
/**
|
|
30
|
-
* Gets all non time dimensions of a layer from a service
|
|
31
|
-
*
|
|
32
|
-
* Example: nonTimeDimensions = getServiceLayerNonTimeDimensions(store, 'layer-id')
|
|
33
|
-
* @param {object} store store: object - Store object
|
|
34
|
-
* @param {string} layerId layerId: string - Id of the layer
|
|
35
|
-
* @returns {array} returnType: Dimension[]
|
|
36
|
-
*/
|
|
37
|
-
export declare const getServiceLayerNonTimeDimensions: import("reselect").OutputParametricSelector<AppStore, string, Dimension[], (res: Dimension[]) => Dimension[]>;
|
|
38
|
-
/**
|
|
39
|
-
* Gets layers from store by dimension name
|
|
40
|
-
*
|
|
41
|
-
* Example: layer = getServiceLayersByDimension(store, 'dimName')
|
|
42
|
-
* @param {object} store object from which the layer state will be extracted
|
|
43
|
-
* @param {string} dimName dimension Name that the returned layers should contain
|
|
44
|
-
* @returns {array} returnType:Layer[] array containing layers with desired dimension name
|
|
45
|
-
*/
|
|
46
|
-
export declare const getServiceLayersByDimension: (store: AppStore, dimName: string) => Layer[];
|
|
47
|
-
/**
|
|
48
|
-
* Gets layers from store by dimension name for a certain map
|
|
49
|
-
*
|
|
50
|
-
* Example: layer = getMapServiceLayersByDimension(store, 'dimName')
|
|
51
|
-
* @param {object} store object from which the layer state will be extracted
|
|
52
|
-
* @param {string} mapId ]Id of the map
|
|
53
|
-
* @param {string} dimName dimension Name that the returned layers should contain
|
|
54
|
-
* @returns {array} returnType:Layer[] array containing layers containting requested dimension for specified map
|
|
55
|
-
*/
|
|
56
|
-
export declare const getMapServiceLayersByDimension: (store: AppStore, mapId: string, dimName: string) => Layer[];
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { Style } from '@opengeoweb/webmap';
|
|
2
1
|
import { Action } from 'redux';
|
|
3
|
-
import {
|
|
4
|
-
import { MAP_SERVICES_SET_LAYERS, MAP_SERVICES_LAYER_SET_STYLES, MAP_SERVICES_LAYER_SET_DIMENSIONS } from './constants';
|
|
5
|
-
export interface ServicesLayerStyles {
|
|
6
|
-
styles: Record<string, unknown>[];
|
|
7
|
-
dimensions?: Dimension[];
|
|
8
|
-
}
|
|
2
|
+
import { MAP_SERVICES_SET_LAYERS } from './constants';
|
|
9
3
|
export interface Services {
|
|
10
4
|
[key: string]: Service;
|
|
11
5
|
}
|
|
12
6
|
export interface Service {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
service?: string;
|
|
13
10
|
layers?: ServiceLayer[];
|
|
14
|
-
layer?: Record<string, ServicesLayerStyles>;
|
|
15
11
|
}
|
|
16
12
|
/**
|
|
17
13
|
* Used in the services object of webmap to keep a list of available layers in the service
|
|
@@ -21,21 +17,16 @@ export interface ServiceLayer {
|
|
|
21
17
|
text: string;
|
|
22
18
|
leaf: boolean;
|
|
23
19
|
path: string;
|
|
20
|
+
abstract?: string;
|
|
21
|
+
keywords?: string[];
|
|
24
22
|
}
|
|
25
23
|
export interface ServiceState {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export interface SetLayerDimensionsForServicePayload {
|
|
29
|
-
origin?: string;
|
|
30
|
-
service: string;
|
|
31
|
-
name: string;
|
|
32
|
-
dimensions: Dimension[];
|
|
33
|
-
}
|
|
34
|
-
interface SetLayerDimensionsForService extends Action {
|
|
35
|
-
type: typeof MAP_SERVICES_LAYER_SET_DIMENSIONS;
|
|
36
|
-
payload: SetLayerDimensionsForServicePayload;
|
|
24
|
+
byId: Services;
|
|
25
|
+
allIds: string[];
|
|
37
26
|
}
|
|
38
27
|
export interface SetLayersForServicePayload {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
39
30
|
service: string;
|
|
40
31
|
layers: ServiceLayer[];
|
|
41
32
|
}
|
|
@@ -43,15 +34,5 @@ interface SetLayersForService extends Action {
|
|
|
43
34
|
type: typeof MAP_SERVICES_SET_LAYERS;
|
|
44
35
|
payload: SetLayersForServicePayload;
|
|
45
36
|
}
|
|
46
|
-
export
|
|
47
|
-
origin?: string;
|
|
48
|
-
service: string;
|
|
49
|
-
name: string;
|
|
50
|
-
styles: Style[];
|
|
51
|
-
}
|
|
52
|
-
interface SetLayerStylesForService extends Action {
|
|
53
|
-
type: typeof MAP_SERVICES_LAYER_SET_STYLES;
|
|
54
|
-
payload: SetLayerStylesForServicePayload;
|
|
55
|
-
}
|
|
56
|
-
export declare type ServiceActions = SetLayerDimensionsForService | SetLayersForService | SetLayerStylesForService;
|
|
37
|
+
export declare type ServiceActions = SetLayersForService;
|
|
57
38
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WMJSMap, WMLayer } from '@opengeoweb/webmap';
|
|
2
2
|
import { Dimension, WMJSDimension } from '../types';
|
|
3
|
+
export declare const dateFormat = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
3
4
|
export declare const generateLayerId: () => string;
|
|
4
5
|
export declare const generateMapId: () => string;
|
|
5
6
|
export declare const generateTimesliderId: () => string;
|
|
@@ -27,11 +28,11 @@ export declare const registerWMJSMap: (wmjsMap: WMJSMap, wmjsMapId: string) => v
|
|
|
27
28
|
*/
|
|
28
29
|
export declare const getWMJSMapById: (wmjsMapId: string) => WMJSMap;
|
|
29
30
|
/**
|
|
30
|
-
* Returns the WMJSDimension object for given layerId and
|
|
31
|
+
* Returns the WMJSDimension object for given layerId and dimension name
|
|
31
32
|
* @param layerId The layerId
|
|
32
|
-
* @param
|
|
33
|
+
* @param dimensionName The dimension to lookup
|
|
33
34
|
*/
|
|
34
|
-
export declare const getWMJSDimensionForLayerAndDimension: (layerId: string,
|
|
35
|
+
export declare const getWMJSDimensionForLayerAndDimension: (layerId: string, dimensionName: string) => WMJSDimension;
|
|
35
36
|
/**
|
|
36
37
|
* Returns the list of dimensions without the time dimension
|
|
37
38
|
* @param dimensions Dimension[]
|
|
@@ -2,35 +2,35 @@ import { SetActiveMapIdForDialogPayload, UIActions, UIOrderDialogPayload, UIRegi
|
|
|
2
2
|
/**
|
|
3
3
|
* Registers the dialog in the store and creates the dialog state
|
|
4
4
|
*
|
|
5
|
-
* Example: registerDialog({'dialogId1', type: 'legend}) you can optionally specify the activeMapId
|
|
6
|
-
* @param {string} payload {type: 'legend' | 'layerManager' | '
|
|
5
|
+
* Example: registerDialog({'dialogId1', type: 'legend}) you can optionally specify the activeMapId, whether the dialog is open and the souce ('app' or 'module', default is 'app')
|
|
6
|
+
* @param {string} payload {type: 'legend' | 'layerManager' | 'dimensionSelect-elevation', activeMapId?: string, setOpen?: boolean, source?: Source}
|
|
7
7
|
*/
|
|
8
8
|
export declare const registerDialog: (payload: UIRegisterDialogPayload) => UIActions;
|
|
9
9
|
/**
|
|
10
10
|
* Deletes the dialog from the store (from both allIds and byId)
|
|
11
11
|
*
|
|
12
12
|
* Example: unregisterDialog({type: 'legend'})
|
|
13
|
-
* @param {string} payload {type: 'legend' | 'layerManager' | '
|
|
13
|
+
* @param {string} payload {type: 'legend' | 'layerManager' | 'dimensionSelect-elevation'}
|
|
14
14
|
*/
|
|
15
15
|
export declare const unregisterDialog: (payload: UIUnRegisterDialogPayload) => UIActions;
|
|
16
16
|
/**
|
|
17
17
|
* Sets the active map id for a dialogtype
|
|
18
18
|
*
|
|
19
19
|
* Example: setActiveMapIdForDialog({ activeMapId: 'mapId1', type: 'legend'})
|
|
20
|
-
* @param {object} payload object with activeMapId: string, type: 'legend' | 'layerManager' | '
|
|
20
|
+
* @param {object} payload object with activeMapId: string, type: 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
21
21
|
*/
|
|
22
22
|
export declare const setActiveMapIdForDialog: (payload: SetActiveMapIdForDialogPayload) => UIActions;
|
|
23
23
|
/**
|
|
24
24
|
* Toggles the open state to the boolean you pass in
|
|
25
25
|
*
|
|
26
26
|
* Example: setToggleOpenDialog({ type: 'legend', setOpen: true})
|
|
27
|
-
* @param {object} payload object with type: 'legend' | 'layerManager' | '
|
|
27
|
+
* @param {object} payload object with type: 'legend' | 'layerManager' | 'dimensionSelect-elevation', setOpen: boolean (new state of dialog)
|
|
28
28
|
*/
|
|
29
29
|
export declare const setToggleOpenDialog: (payload: UIToggleDialogPayload) => UIActions;
|
|
30
30
|
/**
|
|
31
31
|
* Orders UI element to top
|
|
32
32
|
*
|
|
33
33
|
* Example: orderDialog({ type: 'legend'})
|
|
34
|
-
* @param {object} payload object with type: 'legend' | 'layerManager' | '
|
|
34
|
+
* @param {object} payload object with type: 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
35
35
|
*/
|
|
36
36
|
export declare const orderDialog: (payload: UIOrderDialogPayload) => UIActions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import { DialogType, UIType } from './types';
|
|
|
5
5
|
*
|
|
6
6
|
* Example: getDialogDetailsByType(store, 'legend')
|
|
7
7
|
* @param {object} store store object from which the ui state wll be extracted
|
|
8
|
-
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | '
|
|
8
|
+
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
9
9
|
* @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
|
|
10
10
|
*/
|
|
11
11
|
export declare const getDialogDetailsByType: (store: AppStore, dialogType: string) => UIType;
|
|
@@ -13,7 +13,7 @@ export declare const getDialogDetailsByType: (store: AppStore, dialogType: strin
|
|
|
13
13
|
* For a given ui component: gets wether the dialog is open or closed
|
|
14
14
|
*
|
|
15
15
|
* @param {object} store store object from which the ui state wll be extracted
|
|
16
|
-
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | '
|
|
16
|
+
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
17
17
|
* @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
|
|
18
18
|
*/
|
|
19
19
|
export declare const getisDialogOpen: import("reselect").OutputParametricSelector<AppStore, string, boolean, (res: UIType) => boolean>;
|
|
@@ -21,7 +21,7 @@ export declare const getisDialogOpen: import("reselect").OutputParametricSelecto
|
|
|
21
21
|
*For a given ui component: gets the active map Id
|
|
22
22
|
*
|
|
23
23
|
* @param {object} store store object from which the ui state wll be extracted
|
|
24
|
-
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | '
|
|
24
|
+
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
25
25
|
* @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
|
|
26
26
|
*/
|
|
27
27
|
export declare const getDialogMapId: import("reselect").OutputParametricSelector<AppStore, string, string, (res: UIType) => string>;
|
|
@@ -29,7 +29,7 @@ export declare const getDialogMapId: import("reselect").OutputParametricSelector
|
|
|
29
29
|
*For a given ui component: gets the order of visible dialog
|
|
30
30
|
*
|
|
31
31
|
* @param {object} store store object from which the ui state wll be extracted
|
|
32
|
-
* @param {DialogType} dialogType type of the dialog 'legend' | 'layerManager' | '
|
|
32
|
+
* @param {DialogType} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation' | dimensionSelect-ensemble_member
|
|
33
33
|
* @returns {number} the higher the order number the higher the zIndex
|
|
34
34
|
*/
|
|
35
35
|
export declare const getDialogOrder: import("reselect").OutputParametricSelector<AppStore, DialogType, number, (res: number) => number>;
|
|
@@ -37,7 +37,7 @@ export declare const getDialogOrder: import("reselect").OutputParametricSelector
|
|
|
37
37
|
*For a given ui component: returns if ordered on top
|
|
38
38
|
*
|
|
39
39
|
* @param {object} store store object from which the ui state wll be extracted
|
|
40
|
-
* @param {DialogType} dialogType type of the dialog 'legend' | 'layerManager' | '
|
|
40
|
+
* @param {DialogType} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation' | dimensionSelect-ensemble_member
|
|
41
41
|
* @returns {boolean}
|
|
42
42
|
*/
|
|
43
43
|
export declare const getDialogIsOrderedOnTop: import("reselect").OutputParametricSelector<AppStore, DialogType, boolean, (res: boolean) => boolean>;
|
package/lib/store/ui/types.d.ts
CHANGED
|
@@ -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' | '
|
|
3
|
+
export declare type DialogType = 'legend' | 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter';
|
|
4
4
|
export declare type Source = 'app' | 'module';
|
|
5
5
|
export interface UIType {
|
|
6
6
|
type: DialogType;
|
|
@@ -29,6 +29,7 @@ export interface UIRegisterDialogPayload {
|
|
|
29
29
|
type: DialogType;
|
|
30
30
|
activeMapId?: string;
|
|
31
31
|
setOpen?: boolean;
|
|
32
|
+
source?: Source;
|
|
32
33
|
}
|
|
33
34
|
export interface UIRegisterDialog extends Action {
|
|
34
35
|
type: typeof UI_REGISTER_DIALOG;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Layer } from '../store/mapStore/layers/types';
|
|
3
|
-
export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"content" | "
|
|
3
|
+
export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"content" | "root" | "title" | "chips">;
|
|
4
4
|
declare type ExampleLayer = {
|
|
5
5
|
title: string;
|
|
6
6
|
layers: Layer[];
|
package/lib/types/types.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import { WebMapStateModuleState } from '../store/mapStore/types';
|
|
|
2
2
|
import { AdvancedLayerStoreModuleState } from '../store/advancedLayerStore/types';
|
|
3
3
|
import { SynchronizationGroupModuleState } from '../store/generic/synchronizationGroups/types';
|
|
4
4
|
import { UIModuleState } from '../store/ui/types';
|
|
5
|
-
|
|
5
|
+
import { LayerSelectModuleState } from '../store/layerSelect/types';
|
|
6
|
+
export interface AppStore extends AdvancedLayerStoreModuleState, SynchronizationGroupModuleState, UIModuleState, WebMapStateModuleState, LayerSelectModuleState {
|
|
6
7
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE WMT_MS_Capabilities SYSTEM \"http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd\" [\n <!ELEMENT VendorSpecificCapabilities EMPTY>\n]>\n<!-- end of DOCTYPE declaration -->\n<WMT_MS_Capabilities version=\"1.1.1\">\n <Service>\n <Name>OGC:WMS</Name>\n <Title>RADAR</Title>\n <Abstract>This service demonstrates how the ADAGUC server can be used to create OGC services.</Abstract>\n <ServerInfo>ADAGUCServer version 2.5.8, of Apr 13 2021 07:55:43</ServerInfo>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n <ContactInformation />\n </Service>\n <Capability>\n <Request>\n <GetCapabilities>\n <Format>application/vnd.ogc.wms_xml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetCapabilities>\n <GetMap>\n <Format>image/png</Format>\n <Format>image/gif</Format>\n <Format>image/png32</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetMap>\n <GetFeatureInfo>\n <Format>text/plain</Format>\n <Format>text/html</Format>\n <Format>text/xml</Format>\n <Format>application/vnd.ogc.gml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetFeatureInfo>\n <DescribeLayer>\n <Format>text/xml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </DescribeLayer>\n <GetLegendGraphic>\n <Format>image/png</Format>\n <Format>image/gif</Format>\n <Format>image/png32</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetLegendGraphic>\n <GetStyles>\n <Format>text/xml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetStyles>\n </Request>\n <Exception>\n <Format>application/vnd.ogc.se_xml</Format>\n <Format>application/vnd.ogc.se_inimage</Format>\n <Format>application/vnd.ogc.se_blank</Format>\n </Exception>\n <VendorSpecificCapabilities />\n <UserDefinedSymbolization SupportSLD=\"1\" UserLayer=\"0\" UserStyle=\"1\" RemoteWFS=\"0\" />\n <Layer>\n <Title>WMS of RADAR</Title>\n <SRS>EPSG:3411</SRS>\n <SRS>EPSG:3412</SRS>\n <SRS>EPSG:3575</SRS>\n <SRS>EPSG:3857</SRS>\n <SRS>EPSG:4258</SRS>\n <SRS>EPSG:4326</SRS>\n <SRS>CRS:84</SRS>\n <SRS>EPSG:25831</SRS>\n <SRS>EPSG:25832</SRS>\n <SRS>EPSG:28992</SRS>\n <SRS>EPSG:7399</SRS>\n <SRS>EPSG:50001</SRS>\n <SRS>EPSG:54030</SRS>\n <SRS>EPSG:32661</SRS>\n <SRS>EPSG:40000</SRS>\n <SRS>EPSG:900913</SRS>\n <SRS>PROJ4:%2Bproj%3Dstere%20%2Blat_0%3D90%20%2Blon_0%3D0%20%2Blat_ts%3D60%20%2Ba%3D6378%2E14%20%2Bb%3D6356%2E75%20%2Bx_0%3D0%20y_0%3D0</SRS>\n <Layer queryable=\"1\" opaque=\"1\" cascaded=\"0\">\n <Name>RAD_NL25_PCP_CM</Name>\n <Title>Precipitation Radar NL</Title>\n <Abstract>Radar NL</Abstract>\n <KeywordList>\n <Keyword>Radar</Keyword>\n </KeywordList>\n <SRS>EPSG:3411</SRS>\n <BoundingBox SRS=\"EPSG:3411\" minx=\"2682754.743620\" miny=\"-3245034.014141\" maxx=\"3759536.917562\" maxy=\"-2168251.989038\" />\n <SRS>EPSG:3412</SRS>\n <BoundingBox SRS=\"EPSG:3412\" minx=\"0.000000\" miny=\"32318824.826266\" maxx=\"7413041.166015\" maxy=\"40075258.815074\" />\n <SRS>EPSG:3575</SRS>\n <BoundingBox SRS=\"EPSG:3575\" minx=\"-770622.801471\" miny=\"-4485814.811314\" maxx=\"56845.766135\" maxy=\"-3684039.443620\" />\n <SRS>EPSG:3857</SRS>\n <BoundingBox SRS=\"EPSG:3857\" minx=\"0.000000\" miny=\"6257115.219364\" maxx=\"1208534.698398\" maxy=\"7553161.958695\" />\n <SRS>EPSG:4258</SRS>\n <BoundingBox SRS=\"EPSG:4258\" minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <SRS>EPSG:4326</SRS>\n <BoundingBox SRS=\"EPSG:4326\" minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <SRS>CRS:84</SRS>\n <BoundingBox SRS=\"CRS:84\" minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <SRS>EPSG:25831</SRS>\n <BoundingBox SRS=\"EPSG:25831\" minx=\"282182.345905\" miny=\"5433247.394267\" maxx=\"997135.658653\" maxy=\"6207204.592736\" />\n <SRS>EPSG:25832</SRS>\n <BoundingBox SRS=\"EPSG:25832\" minx=\"-153083.019482\" miny=\"5415817.312927\" maxx=\"617595.626092\" maxy=\"6239769.309937\" />\n <SRS>EPSG:28992</SRS>\n <BoundingBox SRS=\"EPSG:28992\" minx=\"-236275.338083\" miny=\"106727.731651\" maxx=\"501527.918656\" maxy=\"900797.079725\" />\n <SRS>EPSG:7399</SRS>\n <BoundingBox SRS=\"EPSG:7399\" minx=\"0.000000\" miny=\"5757301.056717\" maxx=\"763611.971696\" maxy=\"6483919.801602\" />\n <SRS>EPSG:50001</SRS>\n <BoundingBox SRS=\"EPSG:50001\" minx=\"-2000000.000000\" miny=\"-2000000.000000\" maxx=\"10000000.000000\" maxy=\"8500000.000000\" />\n <SRS>EPSG:54030</SRS>\n <BoundingBox SRS=\"EPSG:54030\" minx=\"0.000000\" miny=\"5211855.054125\" maxx=\"853649.695106\" maxy=\"5936394.291427\" />\n <SRS>EPSG:32661</SRS>\n <BoundingBox SRS=\"EPSG:32661\" minx=\"2000000.000000\" miny=\"-2703305.597319\" maxx=\"2745713.040381\" maxy=\"-1888346.216710\" />\n <SRS>EPSG:40000</SRS>\n <BoundingBox SRS=\"EPSG:40000\" minx=\"0.000000\" miny=\"-4731695.771951\" maxx=\"750214.326339\" maxy=\"-3911817.119426\" />\n <SRS>EPSG:900913</SRS>\n <BoundingBox SRS=\"EPSG:900913\" minx=\"0.000000\" miny=\"6257115.219364\" maxx=\"1208534.698398\" maxy=\"7553161.958695\" />\n <SRS>PROJ4:%2Bproj%3Dstere%20%2Blat_0%3D90%20%2Blon_0%3D0%20%2Blat_ts%3D60%20%2Ba%3D6378%2E14%20%2Bb%3D6356%2E75%20%2Bx_0%3D0%20y_0%3D0</SRS>\n <BoundingBox SRS=\"PROJ4:%2Bproj%3Dstere%20%2Blat_0%3D90%20%2Blon_0%3D0%20%2Blat_ts%3D60%20%2Ba%3D6378%2E14%20%2Bb%3D6356%2E75%20%2Bx_0%3D0%20y_0%3D0\" minx=\"0.000000\" miny=\"-3649.999338\" maxx=\"700.002420\" maxy=\"-4415.002986\" />\n <LatLonBoundingBox minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <Dimension name=\"time\" units=\"ISO8601\" />\n <Extent name=\"time\" default=\"2021-05-17T00:00:00Z\" multipleValues=\"1\" nearestValue=\"0\">2021-03-31T09:25:00Z/2021-05-18T07:45:00Z/PT5M</Extent>\n <Style>\n <Name>radar/nearest</Name>\n <Title>radar/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=radar/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-rainbow/nearest</Name>\n <Title>precip-rainbow/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-rainbow/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-gray/nearest</Name>\n <Title>precip-gray/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-gray/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-blue/nearest</Name>\n <Title>precip-blue/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-blue/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-blue-transparent/nearest</Name>\n <Title>precip-blue-transparent/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-blue-transparent/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-with-range/nearest</Name>\n <Title>precip-with-range/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-with-range/nearest\" />\n </LegendURL>\n </Style>\n <ScaleHint min=\"0\" max=\"10000\" />\n </Layer>\n </Layer>\n </Capability>\n</WMT_MS_Capabilities>";
|
|
2
|
+
export default _default;
|