@opengeoweb/core 2.5.0 → 2.8.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.esm.js +10415 -10230
- package/index.umd.js +10446 -10229
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +7 -21
- package/lib/components/{ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts → ConfigurableMap/ConfigurableMapConnect.d.ts} +10 -16
- package/lib/components/{ConfigurableConnectedMap/ConfigurableConnectedMap.spec.d.ts → ConfigurableMap/ConfigurableMapConnect.spec.d.ts} +0 -0
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.stories.d.ts +7 -0
- package/lib/components/ConfigurableMap/index.d.ts +1 -0
- package/lib/components/LayerManager/LayerManager.d.ts +2 -1
- package/lib/components/LayerManager/LayerManagerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +18 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +2 -1
- package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +4 -0
- package/lib/components/{ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.spec.d.ts → LayerManager/LayerSelect/LayerSelectUtils.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +4 -3
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +4 -3
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -2
- package/lib/components/MapWarning/MapWarningProperties.d.ts +6 -0
- package/lib/components/{MultiMapView/HarmoniePresets/HarmRefTimePreset.spec.d.ts → MapWarning/MapWarningProperties.spec.d.ts} +0 -0
- package/lib/components/MultiMapView/HarmoniePresets/index.d.ts +0 -1
- package/lib/components/MultiMapView/{HarmoniePresets/HarmRefTimePreset.d.ts → ModelRunInterval/ModelRunInterval.d.ts} +4 -2
- package/lib/components/{TimeSlider/TimeSliderButtons/LoopButton/LoopButton.spec.d.ts → MultiMapView/ModelRunInterval/ModelRunInterval.spec.d.ts} +0 -0
- package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.stories.d.ts +4 -0
- package/lib/components/MultiMapView/ModelRunInterval/index.d.ts +1 -0
- package/lib/components/MultiMapView/MultiMapView.stories.d.ts +2 -3
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +1 -1
- package/lib/components/ReactMapView/AdagucMapDraw.d.ts +1 -1
- package/lib/components/ReactMapView/AdagucMapDrawTools.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSlider.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +1 -2
- package/lib/components/WMSLoader/WMSServerList/WMSServerList.d.ts +1 -1
- package/lib/index.d.ts +6 -5
- package/lib/store/layerSelect/sagas.d.ts +2 -1
- package/lib/store/mapStore/layers/actions.d.ts +8 -1
- package/lib/store/mapStore/layers/constants.d.ts +1 -0
- package/lib/store/mapStore/layers/types.d.ts +11 -3
- package/lib/store/mapStore/map/actions.d.ts +17 -8
- package/lib/store/mapStore/map/constants.d.ts +3 -0
- package/lib/store/mapStore/map/sagas.d.ts +4 -2
- package/lib/store/mapStore/map/selectors.d.ts +42 -21
- package/lib/store/mapStore/map/types.d.ts +57 -2
- package/lib/store/mapStore/map/utils.d.ts +2 -1
- package/lib/store/mapStore/service/reducer.d.ts +2 -8
- package/lib/store/mapStore/service/selectors.d.ts +6 -8
- package/lib/store/mapStore/service/types.d.ts +5 -8
- package/lib/store/mapStore/utils/helpers.d.ts +2 -0
- package/lib/store/ui/actions.d.ts +8 -1
- package/lib/store/ui/constants.d.ts +1 -0
- package/lib/store/ui/reducer.d.ts +2 -8
- package/lib/store/ui/selectors.d.ts +8 -0
- package/lib/store/ui/types.d.ts +10 -2
- package/lib/utils/defaultConfigurations.d.ts +2 -2
- package/lib/utils/defaultTestSettings.d.ts +10 -199
- package/lib/utils/jsonPresetFilter.d.ts +23 -7
- package/lib/utils/localStorage.d.ts +3 -3
- package/lib/{components/TimeSlider/TimeSliderButtons/LoopButton/LoopButtonConnect.spec.d.ts → utils/localStorage.spec.d.ts} +0 -0
- package/lib/utils/types.d.ts +3 -42
- package/package.json +9 -9
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.stories.d.ts +0 -6
- package/lib/components/ConfigurableConnectedMap/index.d.ts +0 -1
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +0 -22
- package/lib/components/ConfigurableMapWithSlider/index.d.ts +0 -1
- package/lib/components/LayerManager/tooltipContainerStyles.d.ts +0 -2
- package/lib/components/TimeSlider/TimeSliderButtons/LoopButton/LoopButton.d.ts +0 -8
- package/lib/components/TimeSlider/TimeSliderButtons/LoopButton/LoopButtonConnect.d.ts +0 -10
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +0 -14
- package/lib/components/TooltipSelect/TooltipSelect.spec.d.ts +0 -1
|
@@ -401,27 +401,6 @@ export declare const isAutoUpdating: ((state: {
|
|
|
401
401
|
}> & {
|
|
402
402
|
clearCache: () => void;
|
|
403
403
|
};
|
|
404
|
-
/**
|
|
405
|
-
* Tells whether the "loop" behavior of animation is on/off
|
|
406
|
-
*
|
|
407
|
-
* Example: isLooping = isLooping(store, 'mapid_1')
|
|
408
|
-
* @param {object} store store: object - store object
|
|
409
|
-
* @param {string} mapId mapId: string - Id of the map
|
|
410
|
-
* @returns {boolean} returnType: boolean
|
|
411
|
-
*/
|
|
412
|
-
export declare const isLooping: ((state: {
|
|
413
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
414
|
-
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
415
|
-
ui?: import("../../ui/types").UIStoreType;
|
|
416
|
-
webmap?: WebMapState;
|
|
417
|
-
services?: import("../types").ServiceState;
|
|
418
|
-
layers?: import("../types").LayerState;
|
|
419
|
-
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
420
|
-
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
|
|
421
|
-
clearCache: () => void;
|
|
422
|
-
}> & {
|
|
423
|
-
clearCache: () => void;
|
|
424
|
-
};
|
|
425
404
|
/**
|
|
426
405
|
* Gets activeLayerId for map
|
|
427
406
|
*
|
|
@@ -781,3 +760,45 @@ export declare const getDisableMapPin: ((state: {
|
|
|
781
760
|
}> & {
|
|
782
761
|
clearCache: () => void;
|
|
783
762
|
};
|
|
763
|
+
/**
|
|
764
|
+
* Returns the selected geojson feature for the given map
|
|
765
|
+
*
|
|
766
|
+
* Example const selectedFeature = getSelectedFeature(store, 'mapId1')
|
|
767
|
+
* @param {object} store store: object - store object
|
|
768
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
769
|
+
* @returns {number} selectedFeatureIndex: the index of the selected geojson feature
|
|
770
|
+
*/
|
|
771
|
+
export declare const getSelectedFeatureIndex: ((state: {
|
|
772
|
+
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
773
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
774
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
775
|
+
webmap?: WebMapState;
|
|
776
|
+
services?: import("../types").ServiceState;
|
|
777
|
+
layers?: import("../types").LayerState;
|
|
778
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
779
|
+
}, params_0: string) => number) & import("reselect").OutputSelectorFields<(args_0: WebMap) => number & {
|
|
780
|
+
clearCache: () => void;
|
|
781
|
+
}> & {
|
|
782
|
+
clearCache: () => void;
|
|
783
|
+
};
|
|
784
|
+
/**
|
|
785
|
+
* Returns the active map preset id
|
|
786
|
+
*
|
|
787
|
+
* Example getActivePresetId(store);
|
|
788
|
+
* @param {object} store store: object - store object
|
|
789
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
790
|
+
* @returns {boolean} returnType: boolean or undefined
|
|
791
|
+
*/
|
|
792
|
+
export declare const getActiveMapPresetId: ((state: {
|
|
793
|
+
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
794
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
795
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
796
|
+
webmap?: WebMapState;
|
|
797
|
+
services?: import("../types").ServiceState;
|
|
798
|
+
layers?: import("../types").LayerState;
|
|
799
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
800
|
+
}, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string & {
|
|
801
|
+
clearCache: () => void;
|
|
802
|
+
}> & {
|
|
803
|
+
clearCache: () => void;
|
|
804
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DateInterval } from '@opengeoweb/webmap';
|
|
2
2
|
import { Action } from 'redux';
|
|
3
|
-
import {
|
|
3
|
+
import type { Layer } from '../layers/types';
|
|
4
|
+
import { WEBMAP_LAYER_MOVE, WEBMAP_SET_BBOX, WEBMAP_MAP_UPDATE_ALL_DIMENSIONS, WEBMAP_MAP_CHANGE_DIMENSION, WEBMAP_START_ANIMATION, WEBMAP_STOP_ANIMATION, WEBMAP_REGISTER_MAP, WEBMAP_UNREGISTER_MAP, WEBMAP_SET_ACTIVELAYERID, WEBMAP_TOGGLE_AUTO_UPDATE, WEBMAP_TOGGLE_LOOP, WEBMAP_SET_TIME_SLIDER_SCALE, WEBMAP_SET_TIME_STEP, WEBMAP_SET_ANIMATION_DELAY, WEBMAP_SET_ANIMATION_START_TIME, WEBMAP_SET_ANIMATION_END_TIME, WEBMAP_TOGGLE_TIMESTEP_AUTO, WEBMAP_TOGGLE_TIME_SLIDER_HOVER, WEBMAP_SET_TIME_SLIDER_CENTER_TIME, WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX, WEBMAP_SET_TIME_SLIDER_DATA_SCALE_TO_SECONDS_PER_PX, WEBMAP_SET_PIN, WEBMAP_DISABLE_PIN, WEBMAP_SET_SELECTED_FEATURE_INDEX, WEBMAP_SET_MAPPRESET, WEBMAP_SET_ACTIVE_MAPPRESET_ID } from './constants';
|
|
4
5
|
export interface Dimension {
|
|
5
6
|
name?: string;
|
|
6
7
|
units?: string;
|
|
@@ -37,6 +38,8 @@ export interface WebMap {
|
|
|
37
38
|
isTimeSliderHoverOn?: boolean;
|
|
38
39
|
mapPinLocation?: MapLocation;
|
|
39
40
|
disableMapPin?: boolean;
|
|
41
|
+
selectedFeatureIndex?: number;
|
|
42
|
+
activePresetId?: string;
|
|
40
43
|
}
|
|
41
44
|
export interface WebMapState {
|
|
42
45
|
byId: Record<string, WebMap>;
|
|
@@ -63,6 +66,34 @@ export declare enum Scale {
|
|
|
63
66
|
Year = 7,
|
|
64
67
|
DataScale = 8
|
|
65
68
|
}
|
|
69
|
+
export declare type SpeedFactorType = 0.1 | 0.2 | 0.5 | 1 | 2 | 4 | 8 | 16;
|
|
70
|
+
export interface AnimationPayloadType {
|
|
71
|
+
duration?: number;
|
|
72
|
+
interval?: number;
|
|
73
|
+
speed?: SpeedFactorType;
|
|
74
|
+
}
|
|
75
|
+
export interface MapPreset {
|
|
76
|
+
layers?: Layer[];
|
|
77
|
+
overLayers?: Layer[];
|
|
78
|
+
baseLayer?: Layer;
|
|
79
|
+
activeLayerId?: string;
|
|
80
|
+
proj?: {
|
|
81
|
+
bbox: Bbox;
|
|
82
|
+
srs: string;
|
|
83
|
+
};
|
|
84
|
+
shouldAnimate?: boolean;
|
|
85
|
+
animationPayload?: AnimationPayloadType;
|
|
86
|
+
shouldShowZoomControls?: boolean;
|
|
87
|
+
shouldAutoUpdate?: boolean;
|
|
88
|
+
showTimeSlider?: boolean;
|
|
89
|
+
displayMapPin?: boolean;
|
|
90
|
+
toggleTimestepAuto?: boolean;
|
|
91
|
+
setTimestep?: number;
|
|
92
|
+
}
|
|
93
|
+
export interface MapPresetInitialProps {
|
|
94
|
+
mapPreset: MapPreset;
|
|
95
|
+
syncGroupsIds?: string[];
|
|
96
|
+
}
|
|
66
97
|
export interface RegisterMap extends Action {
|
|
67
98
|
type: typeof WEBMAP_REGISTER_MAP;
|
|
68
99
|
payload: {
|
|
@@ -254,4 +285,28 @@ export interface DisableMapPinPayload {
|
|
|
254
285
|
mapId: string;
|
|
255
286
|
disableMapPin: boolean;
|
|
256
287
|
}
|
|
257
|
-
export
|
|
288
|
+
export interface SetSelectedFeature {
|
|
289
|
+
type: typeof WEBMAP_SET_SELECTED_FEATURE_INDEX;
|
|
290
|
+
payload: SetSelectedFeaturePayload;
|
|
291
|
+
}
|
|
292
|
+
export interface SetSelectedFeaturePayload {
|
|
293
|
+
mapId: string;
|
|
294
|
+
selectedFeatureIndex: number;
|
|
295
|
+
}
|
|
296
|
+
export interface SetMapPresetPayload {
|
|
297
|
+
mapId: string;
|
|
298
|
+
initialProps: MapPresetInitialProps;
|
|
299
|
+
}
|
|
300
|
+
export interface SetMapPreset extends Action {
|
|
301
|
+
type: typeof WEBMAP_SET_MAPPRESET;
|
|
302
|
+
payload: SetMapPresetPayload;
|
|
303
|
+
}
|
|
304
|
+
export interface SetActiveMapPresetPayload {
|
|
305
|
+
mapId: string;
|
|
306
|
+
presetId: string;
|
|
307
|
+
}
|
|
308
|
+
export interface SetActiveMapPresetId extends Action {
|
|
309
|
+
type: typeof WEBMAP_SET_ACTIVE_MAPPRESET_ID;
|
|
310
|
+
payload: SetActiveMapPresetPayload;
|
|
311
|
+
}
|
|
312
|
+
export declare type MapActions = RegisterMap | UnregisterMap | SetMapDimension | UpdateAllMapDimensions | SetMapAnimationStart | SetMapAnimationStop | SetBbox | MoveLayer | SetActiveLayerId | ToggleAutoUpdate | ToggleLoop | SetTimeStep | SetTimeSliderScale | SetAnimationDelay | SetAnimationStartTime | SetAnimationEndTime | ToggleTimestepAuto | ToggleTimeSliderHover | SetTimeSliderCenterTime | SetTimeSliderSecondsPerPx | SetTimeSliderDataScaleToSecondsPerPx | SetMapPinLocation | SetDisableMapPin | SetSelectedFeature | SetMapPreset | SetActiveMapPresetId;
|
|
@@ -24,8 +24,9 @@ interface CreateMapProps {
|
|
|
24
24
|
timeSliderDataScaleToSecondsPerPx?: number;
|
|
25
25
|
isTimestepAuto?: boolean;
|
|
26
26
|
isTimeSliderHoverOn?: boolean;
|
|
27
|
+
activePresetId?: string;
|
|
27
28
|
}
|
|
28
|
-
export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, isLooping, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, activeLayerId, timeSliderScale, timeStep, animationDelay, timeSliderCenterTime, timeSliderSecondsPerPx, timeSliderDataScaleToSecondsPerPx, isTimestepAuto, isTimeSliderHoverOn, }: CreateMapProps) => WebMap;
|
|
29
|
+
export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, isLooping, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, activeLayerId, timeSliderScale, timeStep, animationDelay, timeSliderCenterTime, timeSliderSecondsPerPx, timeSliderDataScaleToSecondsPerPx, isTimestepAuto, isTimeSliderHoverOn, activePresetId, }: CreateMapProps) => WebMap;
|
|
29
30
|
export declare const checkValidLayersPayload: (layers: Layer[], mapId: string) => boolean;
|
|
30
31
|
/**
|
|
31
32
|
* This will get the map from the map draftstate.
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { ServiceActions } from '../types';
|
|
2
2
|
import { ServiceState } from './types';
|
|
3
|
-
export declare const initialState:
|
|
4
|
-
byId: {};
|
|
5
|
-
allIds: any[];
|
|
6
|
-
};
|
|
3
|
+
export declare const initialState: ServiceState;
|
|
7
4
|
export declare const WEBMAPJS_REDUCERNAME = "react-webmapjs";
|
|
8
|
-
export declare const reducer: (state:
|
|
9
|
-
byId: {};
|
|
10
|
-
allIds: any[];
|
|
11
|
-
}, action: ServiceActions) => ServiceState;
|
|
5
|
+
export declare const reducer: (state: ServiceState, action: ServiceActions) => ServiceState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Style } from '@opengeoweb/webmap';
|
|
2
|
-
import { ServiceState, ServiceLayer,
|
|
2
|
+
import { ServiceState, ServiceLayer, ReduxService } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves all serviceIds
|
|
5
5
|
*
|
|
@@ -45,7 +45,7 @@ export declare const getServices: ((state: {
|
|
|
45
45
|
*
|
|
46
46
|
* Example: service = getServiceByName(store, 'serviceName')
|
|
47
47
|
* @param {object} store store: object - Store object
|
|
48
|
-
* @returns {
|
|
48
|
+
* @returns {ReduxService} returnType: Service
|
|
49
49
|
*/
|
|
50
50
|
export declare const getServiceByName: ((state: {
|
|
51
51
|
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
@@ -55,7 +55,7 @@ export declare const getServiceByName: ((state: {
|
|
|
55
55
|
services?: ServiceState;
|
|
56
56
|
layers?: import("../types").LayerState;
|
|
57
57
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
58
|
-
}, params_0: string) =>
|
|
58
|
+
}, params_0: string) => ReduxService) & import("reselect").OutputSelectorFields<(args_0: ServiceState, args_1: string) => ReduxService & {
|
|
59
59
|
clearCache: () => void;
|
|
60
60
|
}> & {
|
|
61
61
|
clearCache: () => void;
|
|
@@ -76,7 +76,7 @@ export declare const getLayersFromService: ((state: {
|
|
|
76
76
|
services?: ServiceState;
|
|
77
77
|
layers?: import("../types").LayerState;
|
|
78
78
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
79
|
-
}, params_0: string) => ServiceLayer[]) & import("reselect").OutputSelectorFields<((args_0:
|
|
79
|
+
}, params_0: string) => ServiceLayer[]) & import("reselect").OutputSelectorFields<((args_0: ReduxService) => ServiceLayer[]) & {
|
|
80
80
|
clearCache: () => void;
|
|
81
81
|
}> & {
|
|
82
82
|
clearCache: () => void;
|
|
@@ -141,13 +141,11 @@ export declare const getServicesInArray: ((state: {
|
|
|
141
141
|
layers?: import("../types").LayerState;
|
|
142
142
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
143
143
|
}) => {
|
|
144
|
-
id: string;
|
|
145
144
|
name: string;
|
|
146
|
-
|
|
145
|
+
serviceUrl: string;
|
|
147
146
|
}[]) & import("reselect").OutputSelectorFields<((args_0: ServiceState) => {
|
|
148
|
-
id: string;
|
|
149
147
|
name: string;
|
|
150
|
-
|
|
148
|
+
serviceUrl: string;
|
|
151
149
|
}[]) & {
|
|
152
150
|
clearCache: () => void;
|
|
153
151
|
}> & {
|
|
@@ -3,12 +3,11 @@ import { Action } from 'redux';
|
|
|
3
3
|
import type { UpdateLayerInfo } from '../types';
|
|
4
4
|
import { MAP_SERVICES_SET_LAYERS, MAP_SERVICES_REMOVE_SERVICE } from './constants';
|
|
5
5
|
export interface Services {
|
|
6
|
-
[key: string]:
|
|
6
|
+
[key: string]: ReduxService;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
9
|
-
id?: string;
|
|
8
|
+
export interface ReduxService {
|
|
10
9
|
name?: string;
|
|
11
|
-
|
|
10
|
+
serviceUrl?: string;
|
|
12
11
|
active?: boolean;
|
|
13
12
|
layers?: ServiceLayer[];
|
|
14
13
|
}
|
|
@@ -29,9 +28,8 @@ export interface ServiceState {
|
|
|
29
28
|
allIds: string[];
|
|
30
29
|
}
|
|
31
30
|
export interface SetLayersForServicePayload {
|
|
32
|
-
id: string;
|
|
33
31
|
name: string;
|
|
34
|
-
|
|
32
|
+
serviceUrl: string;
|
|
35
33
|
layers: ServiceLayer[];
|
|
36
34
|
isUserAddedService: boolean;
|
|
37
35
|
}
|
|
@@ -42,9 +40,8 @@ export interface SetLayersForService extends Action {
|
|
|
42
40
|
export interface MapStoreRemoveServicePayload {
|
|
43
41
|
serviceUrl: string;
|
|
44
42
|
}
|
|
45
|
-
interface MapStoreRemoveService extends Action {
|
|
43
|
+
export interface MapStoreRemoveService extends Action {
|
|
46
44
|
type: typeof MAP_SERVICES_REMOVE_SERVICE;
|
|
47
45
|
payload: MapStoreRemoveServicePayload;
|
|
48
46
|
}
|
|
49
47
|
export declare type ServiceActions = SetLayersForService | UpdateLayerInfo | MapStoreRemoveService;
|
|
50
|
-
export {};
|
|
@@ -4,6 +4,8 @@ export declare const dateFormat = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
|
4
4
|
export declare const generateLayerId: () => string;
|
|
5
5
|
export declare const generateMapId: () => string;
|
|
6
6
|
export declare const generateTimesliderId: () => string;
|
|
7
|
+
export declare const generateServiceId: () => string;
|
|
8
|
+
export declare const generateTimeSeriesId: () => string;
|
|
7
9
|
/**
|
|
8
10
|
* Registers a WMJSLayer in a lookuptable with a layerId
|
|
9
11
|
* @param {WMLayer} wmLayer
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SetActiveMapIdForDialogPayload, UIActions, UIOrderDialogPayload, UIRegisterDialogPayload, UIToggleDialogPayload, UIUnRegisterDialogPayload } from './types';
|
|
1
|
+
import { SetActiveMapIdForDialogPayload, SetActiveWindowIdPayload, UIActions, UIOrderDialogPayload, UIRegisterDialogPayload, UIToggleDialogPayload, UIUnRegisterDialogPayload } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Registers the dialog in the store and creates the dialog state
|
|
4
4
|
*
|
|
@@ -34,3 +34,10 @@ export declare const setToggleOpenDialog: (payload: UIToggleDialogPayload) => UI
|
|
|
34
34
|
* @param {object} payload object with type: 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
35
35
|
*/
|
|
36
36
|
export declare const orderDialog: (payload: UIOrderDialogPayload) => UIActions;
|
|
37
|
+
/**
|
|
38
|
+
* Sets which window should receive keyboard shortcuts
|
|
39
|
+
*
|
|
40
|
+
* Example: setActiveWindowId({ activeMapId: 'activeWindowId'})
|
|
41
|
+
* @param {string} activeWindowId the windowId to receive keyboard shortcuts
|
|
42
|
+
*/
|
|
43
|
+
export declare const setActiveWindowId: (payload: SetActiveWindowIdPayload) => UIActions;
|
|
@@ -3,3 +3,4 @@ export declare const UI_REGISTER_DIALOG = "UI_REGISTER_DIALOG";
|
|
|
3
3
|
export declare const UI_UNREGISTER_DIALOG = "UI_UNREGISTER_DIALOG";
|
|
4
4
|
export declare const UI_TOGGLE_DIALOG = "UI_TOGGLE_DIALOG";
|
|
5
5
|
export declare const UI_ORDER_DIALOG = "UI_ORDER_DIALOG";
|
|
6
|
+
export declare const UI_SET_ACTIVE_WINDOW_ID = "UI_SET_ACTIVE_WINDOW_ID";
|
|
@@ -7,12 +7,6 @@ interface CreateUIDialogElementProps {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const moveToTop: <Type>(list: Type[], element: Type) => Type[];
|
|
9
9
|
export declare const createUIDialogElement: ({ activeMapId, type, setOpen, source, }: CreateUIDialogElementProps) => UIType;
|
|
10
|
-
export declare const initialState:
|
|
11
|
-
|
|
12
|
-
dialogs: {};
|
|
13
|
-
};
|
|
14
|
-
export declare const reducer: (state: {
|
|
15
|
-
order: any[];
|
|
16
|
-
dialogs: {};
|
|
17
|
-
}, action: UIActions) => UIStoreType;
|
|
10
|
+
export declare const initialState: UIStoreType;
|
|
11
|
+
export declare const reducer: (state: UIStoreType, action: UIActions) => UIStoreType;
|
|
18
12
|
export {};
|
|
@@ -102,3 +102,11 @@ export declare const getDialogSource: ((state: {
|
|
|
102
102
|
}> & {
|
|
103
103
|
clearCache: () => void;
|
|
104
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* Get the active window that should receive keyboard shortcuts
|
|
107
|
+
*
|
|
108
|
+
* Example: getActiveWindowId(store)
|
|
109
|
+
* @param {object} store store object from which the window state will be extracted
|
|
110
|
+
* @returns {string} active window id
|
|
111
|
+
*/
|
|
112
|
+
export declare const getActiveWindowId: (store: AppStore) => string;
|
package/lib/store/ui/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
|
-
import { UI_SET_ACTIVE_MAPID_FOR_DIALOG, UI_REGISTER_DIALOG, UI_TOGGLE_DIALOG, UI_UNREGISTER_DIALOG, UI_ORDER_DIALOG } from './constants';
|
|
2
|
+
import { UI_SET_ACTIVE_MAPID_FOR_DIALOG, UI_REGISTER_DIALOG, UI_TOGGLE_DIALOG, UI_UNREGISTER_DIALOG, UI_ORDER_DIALOG, UI_SET_ACTIVE_WINDOW_ID } from './constants';
|
|
3
3
|
export declare type DialogType = 'legend' | 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'timeSeriesSelect' | 'syncGroups';
|
|
4
4
|
export declare type Source = 'app' | 'module';
|
|
5
5
|
export interface UIType {
|
|
@@ -11,6 +11,7 @@ export interface UIType {
|
|
|
11
11
|
export interface UIStoreType {
|
|
12
12
|
order: DialogType[];
|
|
13
13
|
dialogs: Partial<Record<DialogType, UIType>>;
|
|
14
|
+
activeWindowId?: string;
|
|
14
15
|
}
|
|
15
16
|
export interface UIModuleState {
|
|
16
17
|
ui?: UIStoreType;
|
|
@@ -57,4 +58,11 @@ export interface UIOrderDialog extends Action {
|
|
|
57
58
|
type: typeof UI_ORDER_DIALOG;
|
|
58
59
|
payload: UIOrderDialogPayload;
|
|
59
60
|
}
|
|
60
|
-
export
|
|
61
|
+
export interface SetActiveWindowIdPayload {
|
|
62
|
+
activeWindowId: string;
|
|
63
|
+
}
|
|
64
|
+
export interface SetActiveWindowId extends Action {
|
|
65
|
+
type: typeof UI_SET_ACTIVE_WINDOW_ID;
|
|
66
|
+
payload: SetActiveWindowIdPayload;
|
|
67
|
+
}
|
|
68
|
+
export declare type UIActions = SetActiveMapIdForDialog | UIRegisterDialog | UIUnRegisterDialog | UIToggleDialog | UIOrderDialog | SetActiveWindowId;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const availableDefaultBaseLayers: import("../store/mapStore/types").Layer[];
|
|
2
|
-
export declare const preloadedDefaultBaseServices: import("
|
|
3
|
-
export declare const preloadedDefaultMapServices: import("
|
|
2
|
+
export declare const preloadedDefaultBaseServices: import("../components/WMSLoader/services").Service[];
|
|
3
|
+
export declare const preloadedDefaultMapServices: import("../components/WMSLoader/services").Service[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Style, WMLayer } from '@opengeoweb/webmap';
|
|
1
|
+
import { LayerOptions, Style, WMLayer } from '@opengeoweb/webmap';
|
|
2
2
|
import { Service } from '../components/WMSLoader/services';
|
|
3
|
-
import { LayerType } from '../store/mapStore/types';
|
|
3
|
+
import { Layer, LayerType, Services } from '../store/mapStore/types';
|
|
4
4
|
export declare const defaultReduxLayerRadarColor: {
|
|
5
5
|
service: string;
|
|
6
6
|
name: string;
|
|
@@ -18,209 +18,20 @@ export declare const defaultReduxLayerRadarColor: {
|
|
|
18
18
|
}[];
|
|
19
19
|
id: string;
|
|
20
20
|
};
|
|
21
|
-
export declare const defaultReduxLayerRadarKNMI:
|
|
22
|
-
service: string;
|
|
23
|
-
name: string;
|
|
24
|
-
title: string;
|
|
25
|
-
format: string;
|
|
26
|
-
style: string;
|
|
27
|
-
enabled: boolean;
|
|
28
|
-
layerType: LayerType;
|
|
29
|
-
dimensions: {
|
|
30
|
-
name: string;
|
|
31
|
-
units: string;
|
|
32
|
-
currentValue: string;
|
|
33
|
-
}[];
|
|
34
|
-
styles: {
|
|
35
|
-
title: string;
|
|
36
|
-
name: string;
|
|
37
|
-
legendURL: string;
|
|
38
|
-
abstract: string;
|
|
39
|
-
}[];
|
|
40
|
-
id: string;
|
|
41
|
-
};
|
|
21
|
+
export declare const defaultReduxLayerRadarKNMI: Layer;
|
|
42
22
|
export declare const WmdefaultReduxLayerRadarKNMI: WMLayer;
|
|
43
23
|
export declare const makeGeoservicesRadarLayer: () => WMLayer;
|
|
44
24
|
export declare const styleListForRADNL25PCPCMLayer: Style[];
|
|
45
25
|
export declare const styleListForRADNLOPERR25PCPRRL3KNMILayer: Style[];
|
|
46
|
-
export declare const defaultReduxServices:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
name: string;
|
|
50
|
-
service: string;
|
|
51
|
-
layers: ({
|
|
52
|
-
name: string;
|
|
53
|
-
text: string;
|
|
54
|
-
leaf: boolean;
|
|
55
|
-
path: any[];
|
|
56
|
-
keywords: string[];
|
|
57
|
-
abstract: string;
|
|
58
|
-
styles?: undefined;
|
|
59
|
-
} | {
|
|
60
|
-
name: string;
|
|
61
|
-
text: string;
|
|
62
|
-
leaf: boolean;
|
|
63
|
-
path: any[];
|
|
64
|
-
keywords: string[];
|
|
65
|
-
abstract: string;
|
|
66
|
-
styles: Style[];
|
|
67
|
-
} | {
|
|
68
|
-
name: string;
|
|
69
|
-
text: string;
|
|
70
|
-
leaf: boolean;
|
|
71
|
-
path: any[];
|
|
72
|
-
keywords: any[];
|
|
73
|
-
abstract?: undefined;
|
|
74
|
-
styles?: undefined;
|
|
75
|
-
})[];
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
export declare const multiDimensionLayer: {
|
|
79
|
-
service: string;
|
|
80
|
-
id: string;
|
|
81
|
-
name: string;
|
|
82
|
-
title: string;
|
|
83
|
-
layerType: LayerType;
|
|
84
|
-
enabled: boolean;
|
|
85
|
-
dimensions: ({
|
|
86
|
-
name: string;
|
|
87
|
-
units: string;
|
|
88
|
-
currentValue: string;
|
|
89
|
-
values: string;
|
|
90
|
-
} | {
|
|
91
|
-
name: string;
|
|
92
|
-
units: string;
|
|
93
|
-
currentValue: string;
|
|
94
|
-
values?: undefined;
|
|
95
|
-
})[];
|
|
96
|
-
styles: {
|
|
97
|
-
title: string;
|
|
98
|
-
name: string;
|
|
99
|
-
legendURL: string;
|
|
100
|
-
abstract: string;
|
|
101
|
-
}[];
|
|
102
|
-
};
|
|
103
|
-
export declare const flDimensionLayer: {
|
|
104
|
-
service: string;
|
|
105
|
-
id: string;
|
|
106
|
-
name: string;
|
|
107
|
-
title: string;
|
|
108
|
-
layerType: LayerType;
|
|
109
|
-
enabled: boolean;
|
|
110
|
-
dimensions: ({
|
|
111
|
-
name: string;
|
|
112
|
-
units: string;
|
|
113
|
-
currentValue: string;
|
|
114
|
-
values: string;
|
|
115
|
-
} | {
|
|
116
|
-
name: string;
|
|
117
|
-
units: string;
|
|
118
|
-
currentValue: string;
|
|
119
|
-
values?: undefined;
|
|
120
|
-
})[];
|
|
121
|
-
};
|
|
26
|
+
export declare const defaultReduxServices: Services;
|
|
27
|
+
export declare const multiDimensionLayer: Layer;
|
|
28
|
+
export declare const flDimensionLayer: Layer;
|
|
122
29
|
export declare const WmMultiDimensionLayer: WMLayer;
|
|
123
|
-
export declare const multiDimensionLayer2:
|
|
124
|
-
|
|
125
|
-
id: string;
|
|
126
|
-
name: string;
|
|
127
|
-
layerType: LayerType;
|
|
128
|
-
dimensions: ({
|
|
129
|
-
name: string;
|
|
130
|
-
units: string;
|
|
131
|
-
currentValue: string;
|
|
132
|
-
values: string;
|
|
133
|
-
} | {
|
|
134
|
-
name: string;
|
|
135
|
-
units: string;
|
|
136
|
-
currentValue: string;
|
|
137
|
-
values?: undefined;
|
|
138
|
-
})[];
|
|
139
|
-
styles: {
|
|
140
|
-
title: string;
|
|
141
|
-
name: string;
|
|
142
|
-
legendURL: string;
|
|
143
|
-
abstract: string;
|
|
144
|
-
}[];
|
|
145
|
-
};
|
|
146
|
-
export declare const multiDimensionLayer3: {
|
|
147
|
-
service: string;
|
|
148
|
-
id: string;
|
|
149
|
-
name: string;
|
|
150
|
-
layerType: LayerType;
|
|
151
|
-
dimensions: ({
|
|
152
|
-
name: string;
|
|
153
|
-
units: string;
|
|
154
|
-
currentValue: string;
|
|
155
|
-
values: string;
|
|
156
|
-
timeInterval?: undefined;
|
|
157
|
-
} | {
|
|
158
|
-
name: string;
|
|
159
|
-
units: string;
|
|
160
|
-
currentValue: string;
|
|
161
|
-
timeInterval: {
|
|
162
|
-
year: number;
|
|
163
|
-
month: number;
|
|
164
|
-
day: number;
|
|
165
|
-
hour: number;
|
|
166
|
-
minute: number;
|
|
167
|
-
second: number;
|
|
168
|
-
isRegularInterval: boolean;
|
|
169
|
-
getTime: any;
|
|
170
|
-
toISO8601: any;
|
|
171
|
-
};
|
|
172
|
-
values?: undefined;
|
|
173
|
-
})[];
|
|
174
|
-
styles: {
|
|
175
|
-
title: string;
|
|
176
|
-
name: string;
|
|
177
|
-
legendURL: string;
|
|
178
|
-
abstract: string;
|
|
179
|
-
}[];
|
|
180
|
-
};
|
|
30
|
+
export declare const multiDimensionLayer2: Layer;
|
|
31
|
+
export declare const multiDimensionLayer3: Layer;
|
|
181
32
|
export declare const WmMultiDimensionLayer2: WMLayer;
|
|
182
33
|
export declare const WmMultiDimensionLayer3: WMLayer;
|
|
183
|
-
export declare const WmMultiDimensionServices:
|
|
184
|
-
|
|
185
|
-
id: string;
|
|
186
|
-
name: string;
|
|
187
|
-
service: string;
|
|
188
|
-
layers: {
|
|
189
|
-
name: string;
|
|
190
|
-
text: string;
|
|
191
|
-
leaf: boolean;
|
|
192
|
-
path: any[];
|
|
193
|
-
}[];
|
|
194
|
-
};
|
|
195
|
-
'https://testservice': {
|
|
196
|
-
id: string;
|
|
197
|
-
name: string;
|
|
198
|
-
service: string;
|
|
199
|
-
layers: {
|
|
200
|
-
name: string;
|
|
201
|
-
text: string;
|
|
202
|
-
leaf: boolean;
|
|
203
|
-
path: any[];
|
|
204
|
-
}[];
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
export declare const layerWithoutTimeDimension: {
|
|
208
|
-
service: string;
|
|
209
|
-
id: string;
|
|
210
|
-
name: string;
|
|
211
|
-
layerType: LayerType;
|
|
212
|
-
dimensions: {
|
|
213
|
-
name: string;
|
|
214
|
-
units: string;
|
|
215
|
-
currentValue: string;
|
|
216
|
-
values: string;
|
|
217
|
-
}[];
|
|
218
|
-
styles: {
|
|
219
|
-
title: string;
|
|
220
|
-
name: string;
|
|
221
|
-
legendURL: string;
|
|
222
|
-
abstract: string;
|
|
223
|
-
}[];
|
|
224
|
-
};
|
|
34
|
+
export declare const WmMultiDimensionServices: Services;
|
|
35
|
+
export declare const layerWithoutTimeDimension: LayerOptions;
|
|
225
36
|
export declare const WmLayerWithoutTimeDimension: WMLayer;
|
|
226
37
|
export declare const defaultTestServices: Service[];
|
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Service } from '../components/WMSLoader/services';
|
|
2
|
+
import { Layer } from '../store/mapStore/types';
|
|
3
|
+
interface FilteredMapPresets {
|
|
4
|
+
services?: Service[];
|
|
5
|
+
baseServices?: Service[];
|
|
6
|
+
baseLayers: Layer[];
|
|
7
|
+
mapLayers: Layer[];
|
|
8
|
+
}
|
|
9
|
+
export interface InitialAppPresetProps {
|
|
10
|
+
presetType?: string;
|
|
11
|
+
presetId?: string;
|
|
12
|
+
presetName?: string;
|
|
13
|
+
services?: Service[];
|
|
14
|
+
baseServices?: Service[];
|
|
15
|
+
layers?: Layer[];
|
|
16
|
+
baseLayers?: Layer[];
|
|
17
|
+
}
|
|
18
|
+
export interface InitialAppPreset {
|
|
19
|
+
preset: InitialAppPresetProps;
|
|
20
|
+
}
|
|
3
21
|
export declare const filterBaseLayers: (presetArray: unknown[]) => Layer[];
|
|
4
22
|
export declare const filterMapLayers: (presetArray: unknown[]) => Layer[];
|
|
5
23
|
export declare const filterServices: (presetArray: Service[]) => Service[];
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export
|
|
9
|
-
export declare const filterMapPresets: (presets: MapPresets) => FilteredMapPresets;
|
|
10
|
-
export declare const getInitialPresets: (mapPresets: MapPresets, defaultInitialPresets: MapPresets) => FilteredMapPresets;
|
|
24
|
+
export declare const filterMapPresets: (presets: InitialAppPreset) => FilteredMapPresets;
|
|
25
|
+
export declare const getInitialPresets: (mapPreset: InitialAppPreset, defaultInitialPresets: InitialAppPreset) => InitialAppPresetProps;
|
|
26
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getUserAddedServices: () =>
|
|
3
|
-
export declare const setUserAddedServices: (services:
|
|
1
|
+
import { UserAddedServices } from './types';
|
|
2
|
+
export declare const getUserAddedServices: () => UserAddedServices;
|
|
3
|
+
export declare const setUserAddedServices: (services: UserAddedServices) => void;
|