@opengeoweb/core 2.9.0 → 2.10.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 +3293 -3939
- package/index.umd.js +2792 -3404
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +1 -1
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +2 -2
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerManager.d.ts +2 -0
- package/lib/components/LayerManager/LayerManager.stories.d.ts +9 -0
- package/lib/components/Providers/Providers.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +0 -1
- package/lib/index.d.ts +4 -6
- package/lib/store/generic/sagas.d.ts +5 -5
- package/lib/store/generic/synchronizationGroups/types.d.ts +7 -0
- package/lib/store/generic/synchronizationGroups/utils.d.ts +0 -5
- package/lib/store/generic/types.d.ts +3 -1
- package/lib/store/index.d.ts +3 -0
- package/lib/store/layerSelect/reducer.d.ts +12 -2
- package/lib/store/layerSelect/sagas.d.ts +3 -3
- package/lib/store/layerSelect/types.d.ts +0 -31
- package/lib/store/mapStore/actions.d.ts +7 -3
- package/lib/store/mapStore/index.d.ts +1 -0
- package/lib/store/mapStore/layers/index.d.ts +1 -0
- package/lib/store/mapStore/layers/reducer.d.ts +42 -4
- package/lib/store/mapStore/layers/types.d.ts +24 -72
- package/lib/store/mapStore/map/actions.d.ts +8 -0
- package/lib/store/mapStore/map/reducer.d.ts +82 -12
- package/lib/store/mapStore/map/sagas.d.ts +8 -3
- package/lib/store/mapStore/map/selectors.d.ts +82 -2
- package/lib/store/mapStore/map/types.d.ts +27 -10
- package/lib/store/mapStore/map/utils.d.ts +2 -3
- package/lib/store/mapStore/service/reducer.d.ts +9 -4
- package/lib/store/mapStore/service/types.d.ts +0 -12
- package/lib/store/ui/reducer.d.ts +19 -2
- package/lib/store/ui/types.d.ts +0 -27
- package/lib/storybookUtils/defaultStorySettings.d.ts +2 -1
- package/lib/{store.d.ts → storybookUtils/store.d.ts} +0 -0
- package/lib/utils/jsonPresetFilter.d.ts +1 -0
- package/package.json +7 -8
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButton.d.ts +0 -9
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButton.spec.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.d.ts +0 -15
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.spec.d.ts +0 -1
- package/lib/store/layerSelect/actions.d.ts +0 -26
- package/lib/store/layerSelect/constants.d.ts +0 -7
- package/lib/store/mapStore/constants.d.ts +0 -2
- package/lib/store/mapStore/layers/actions.d.ts +0 -134
- package/lib/store/mapStore/layers/constants.d.ts +0 -17
- package/lib/store/mapStore/service/actions.d.ts +0 -15
- package/lib/store/mapStore/service/constants.d.ts +0 -2
- package/lib/store/ui/actions.d.ts +0 -43
- package/lib/store/ui/constants.d.ts +0 -6
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { SetLayerOpacityPayload, SetLayerEnabledPayload, SetLayerDimensionPayload, SetLayerNamePayload, SetLayerStylePayload, LayerActions, AddLayerPayload, DeleteLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, ErrorLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetLayerDimensionsPayload, UpdateLayerInfoPayload, SetLayerGeojsonPayload } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Set the layers for a map. Erases all previous layers.
|
|
4
|
-
* The following action types are triggered after the getCapabilities are parsed:
|
|
5
|
-
* - serviceSetLayers
|
|
6
|
-
* - layerSetStyles
|
|
7
|
-
* - layerChangeStyle
|
|
8
|
-
* - layerChangeDimension
|
|
9
|
-
*
|
|
10
|
-
* Example: setLayers ({layers: someLayerObjectArray, mapId: 'mapId1'});
|
|
11
|
-
* @param {object} payload Object containing the mapId: string and layers: Layer[] properties
|
|
12
|
-
*/
|
|
13
|
-
export declare const setLayers: (payload: SetLayersPayload) => LayerActions;
|
|
14
|
-
/**
|
|
15
|
-
* Set the baselayers and overlayers for a map. Erases all previous baselayers and overlayers if one of these types is passed.
|
|
16
|
-
* Ensure the passed layers have a layertype baseLayer or overLayer otherwise they'll be ignored
|
|
17
|
-
* The following action types are triggered after the getCapabilities are parsed:
|
|
18
|
-
* - serviceSetLayers
|
|
19
|
-
* - layerSetStyles
|
|
20
|
-
* - layerChangeStyle
|
|
21
|
-
* - layerChangeDimension
|
|
22
|
-
*
|
|
23
|
-
* Example: setBaseLayers({layers: someLayerObjectArray, mapId:'mapId1'})
|
|
24
|
-
* @param {object} payload Object with layers: Layer[] and mapId: string.
|
|
25
|
-
*/
|
|
26
|
-
export declare const setBaseLayers: (payload: SetBaseLayersPayload) => LayerActions;
|
|
27
|
-
/**
|
|
28
|
-
* Add a single baselayer or overlayer to a map. Keeps all previous baselayers or overlayers.
|
|
29
|
-
* Ensure the passed layers have a layertype baseLayer or overLayer otherwise nothing will be added
|
|
30
|
-
*
|
|
31
|
-
* Example: setBaseLayers({layerId: 'layerId', layer: someLayerObject, mapId:'mapId1'})
|
|
32
|
-
* @param {object} payload Object with a layer, layerId and mapId
|
|
33
|
-
*/
|
|
34
|
-
export declare const addBaseLayer: (payload: AddBaseLayerPayload) => LayerActions;
|
|
35
|
-
/**
|
|
36
|
-
* Add a single layer to a map. Keeps all previous layers.
|
|
37
|
-
* The following action types are triggered after the getCapabilities are parsed:
|
|
38
|
-
* - serviceSetLayers
|
|
39
|
-
* - layerSetStyles
|
|
40
|
-
* - layerChangeStyle
|
|
41
|
-
* - layerChangeDimension
|
|
42
|
-
*
|
|
43
|
-
* Example: addLayer ({layerId: 'someLayerId', layer: someLayerObject, mapId:'mapId1'});
|
|
44
|
-
* @param {object} payload Object with a layer, layerId and mapId
|
|
45
|
-
*/
|
|
46
|
-
export declare const addLayer: (payload: AddLayerPayload) => LayerActions;
|
|
47
|
-
/**
|
|
48
|
-
* Sets opacity for a layer in the map
|
|
49
|
-
*
|
|
50
|
-
* Example: layerChangeOpacity ({layerId: 'layerid1', opacity: 0.5});
|
|
51
|
-
* @param {object} payload Object with a layerId and opacity (between 0.0 and 1.0) property.
|
|
52
|
-
*/
|
|
53
|
-
export declare const layerChangeOpacity: (payload: SetLayerOpacityPayload) => LayerActions;
|
|
54
|
-
/**
|
|
55
|
-
* Shows or hide a layer in the map.
|
|
56
|
-
*
|
|
57
|
-
* Example: layerChangeEnabled ({layerId: 'layerid1', enabled: false});
|
|
58
|
-
* @param {object} payload Object with a layerId and enabled property.
|
|
59
|
-
*/
|
|
60
|
-
export declare const layerChangeEnabled: (payload: SetLayerEnabledPayload) => LayerActions;
|
|
61
|
-
/**
|
|
62
|
-
* Changes the dimension of a layer. Can be used to change the time. The map will follow (if linking is set) accordingly.
|
|
63
|
-
*
|
|
64
|
-
* Example: layerChangeDimension( {layerId: 'layerId1', dimension: dimensionObject } )
|
|
65
|
-
* @param {object} payload Object with layerId: string, dimension: Dimension, origin?: string, service?: string
|
|
66
|
-
*/
|
|
67
|
-
export declare const layerChangeDimension: (payload: SetLayerDimensionPayload) => LayerActions;
|
|
68
|
-
/**
|
|
69
|
-
* Changes the dimensions of a layer. Can be used to change the time.
|
|
70
|
-
*
|
|
71
|
-
* Example: layerSetDimensions( {layerId: 'layerId1', dimensions: [dimensionObject] } )
|
|
72
|
-
* @param {object} payload Object with layerId: string, dimensions: [Dimension], origin?: string
|
|
73
|
-
*/
|
|
74
|
-
export declare const layerSetDimensions: (payload: SetLayerDimensionsPayload) => LayerActions;
|
|
75
|
-
/**
|
|
76
|
-
* Changes the name of the layer
|
|
77
|
-
*
|
|
78
|
-
* Example: layerChangeName( { layerId: 'layerId1', name: 'NewLayerName' } )
|
|
79
|
-
* @param {object} payload Object with a layerId: string, name: string, origin?: string
|
|
80
|
-
*/
|
|
81
|
-
export declare const layerChangeName: (payload: SetLayerNamePayload) => LayerActions;
|
|
82
|
-
/**
|
|
83
|
-
* Changes the style of a layer
|
|
84
|
-
*
|
|
85
|
-
* Example: layerChangeStyle({ layerId: 'layerId1', style: 'SomeStyle' })
|
|
86
|
-
* @param {object} payload Object with a layerId: string, style: string, origin?: string, service?: string;
|
|
87
|
-
*/
|
|
88
|
-
export declare const layerChangeStyle: (payload: SetLayerStylePayload) => LayerActions;
|
|
89
|
-
/**
|
|
90
|
-
* Changes the geojson of a layer
|
|
91
|
-
*
|
|
92
|
-
* Example: layerChangeGeojson({ layerId: 'layerId1', geojson: geojson })
|
|
93
|
-
* @param {object} payload Object with a layerId: string, geojson: FeatureCollection;
|
|
94
|
-
*/
|
|
95
|
-
export declare const layerChangeGeojson: (payload: SetLayerGeojsonPayload) => LayerActions;
|
|
96
|
-
/**
|
|
97
|
-
* Deletes a layer
|
|
98
|
-
*
|
|
99
|
-
* Example: layerDelete({ mapId: 'mapI1', layerId: 'layerId1' })
|
|
100
|
-
* @param {object} payload Object with a mapId: string, layerId: string, origin?: string
|
|
101
|
-
*/
|
|
102
|
-
export declare const layerDelete: (payload: DeleteLayerPayload) => LayerActions;
|
|
103
|
-
/**
|
|
104
|
-
* Deletes a baselayer or an overlayer
|
|
105
|
-
* Ensure the passed in layer type is an overLayer or a baseLayer otherwise nothing gets deleted
|
|
106
|
-
*
|
|
107
|
-
* Example: baseLayerDelete({ mapId: 'mapI1', layerId: 'layerId1' })
|
|
108
|
-
* @param {object} payload Object with a mapId: string, layerId: string, origin?: string
|
|
109
|
-
*/
|
|
110
|
-
export declare const baseLayerDelete: (payload: DeleteLayerPayload) => LayerActions;
|
|
111
|
-
/**
|
|
112
|
-
* Handles layer error
|
|
113
|
-
*
|
|
114
|
-
* Example: layerError({ layerId: 'layer-1', error: new Error() })
|
|
115
|
-
* @param {object} payload Object with a layerId: string, error: Error
|
|
116
|
-
*/
|
|
117
|
-
export declare const layerError: (payload: ErrorLayerPayload) => LayerActions;
|
|
118
|
-
/**
|
|
119
|
-
* Add a single baselayer available to be selected
|
|
120
|
-
* Ensure the passed layers have a layertype baseLayer and a mapId otherwise nothing will be added
|
|
121
|
-
*
|
|
122
|
-
* Example: addAvailableBaseLayer({layer: someLayerObject})
|
|
123
|
-
* @param {object} payload Object with a layer
|
|
124
|
-
*/
|
|
125
|
-
export declare const addAvailableBaseLayer: (payload: AddAvailableBaseLayerPayload) => LayerActions;
|
|
126
|
-
/**
|
|
127
|
-
* Add multiple baselayers available to be selected
|
|
128
|
-
* Ensure the passed layers have a layertype baseLayer and a mapId otherwise nothing will be added
|
|
129
|
-
*
|
|
130
|
-
* Example: addAvailableBaseLayers({layers: [someLayerObject, secondLayerObject]})
|
|
131
|
-
* @param {object} payload Object with a layer
|
|
132
|
-
*/
|
|
133
|
-
export declare const addAvailableBaseLayers: (payload: AddAvailableBaseLayersPayload) => LayerActions;
|
|
134
|
-
export declare const onUpdateLayerInformation: (payload: UpdateLayerInfoPayload) => LayerActions;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const WEBMAP_LAYER_CHANGE_OPACITY = "WEBMAP_LAYER_CHANGE_OPACITY";
|
|
2
|
-
export declare const WEBMAP_LAYER_CHANGE_NAME = "WEBMAP_LAYER_CHANGE_NAME";
|
|
3
|
-
export declare const WEBMAP_LAYER_CHANGE_STYLE = "WEBMAP_LAYER_CHANGE_STYLE";
|
|
4
|
-
export declare const WEBMAP_LAYER_CHANGE_DIMENSION = "WEBMAP_LAYER_CHANGE_DIMENSION";
|
|
5
|
-
export declare const WEBMAP_LAYER_CHANGE_GEOJSON = "WEBMAP_LAYER_CHANGE_GEOJSON";
|
|
6
|
-
export declare const WEBMAP_LAYER_SET_DIMENSIONS = "WEBMAP_LAYER_SET_DIMENSIONS";
|
|
7
|
-
export declare const WEBMAP_LAYER_CHANGE_ENABLED = "WEBMAP_LAYER_CHANGE_ENABLED";
|
|
8
|
-
export declare const WEBMAP_LAYER_DELETE = "WEBMAP_LAYER_DELETE";
|
|
9
|
-
export declare const WEBMAP_LAYER_ERROR = "WEBMAP_LAYER_ERROR";
|
|
10
|
-
export declare const WEBMAP_BASELAYER_DELETE = "WEBMAP_BASELAYER_DELETE";
|
|
11
|
-
export declare const WEBMAP_ADD_LAYER = "WEBMAP_ADD_LAYER";
|
|
12
|
-
export declare const WEBMAP_SET_LAYERS = "WEBMAP_SET_LAYERS";
|
|
13
|
-
export declare const WEBMAP_SET_BASELAYERS = "WEBMAP_SET_BASELAYERS";
|
|
14
|
-
export declare const WEBMAP_ADD_BASELAYER = "WEBMAP_ADD_BASELAYER";
|
|
15
|
-
export declare const WEBMAP_ADD_AVAILABLE_BASELAYER = "WEBMAP_ADD_AVAILABLE_BASELAYER";
|
|
16
|
-
export declare const WEBMAP_ADD_AVAILABLE_BASELAYERS = "WEBMAP_ADD_AVAILABLE_BASELAYERS";
|
|
17
|
-
export declare const WEBMAP_UPDATE_LAYER_INFO = "WEBMAP_UPDATE_LAYER_INFO";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ServiceActions, SetLayersForServicePayload, MapStoreRemoveServicePayload } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Action serviceSetLayers is used automatically after calling the setLayers action. Contents is based on WMS GetCapabilities
|
|
4
|
-
*
|
|
5
|
-
* Example: serviceSetLayers({service: someService, layers: serviceLayerArray})
|
|
6
|
-
* @param {object} payload consisting of service: string, layers: ServiceLayer[]
|
|
7
|
-
*/
|
|
8
|
-
export declare const serviceSetLayers: (payload: SetLayersForServicePayload) => ServiceActions;
|
|
9
|
-
/**
|
|
10
|
-
* Action mapStoreRemoveService is used in ServiceOptionsDialogConnect after clicking the remove button. Action layerSelectServiceRemoved is used automatically after calling the mapStoreRemoveService action
|
|
11
|
-
*
|
|
12
|
-
* Example: mapStoreRemoveService({serviceUrl: someService})
|
|
13
|
-
* @param {object} payload consisting of serviceUrl: string
|
|
14
|
-
*/
|
|
15
|
-
export declare const mapStoreRemoveService: (payload: MapStoreRemoveServicePayload) => ServiceActions;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { SetActiveMapIdForDialogPayload, SetActiveWindowIdPayload, UIActions, UIOrderDialogPayload, UIRegisterDialogPayload, UIToggleDialogPayload, UIUnRegisterDialogPayload } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Registers the dialog in the store and creates the dialog state
|
|
4
|
-
*
|
|
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
|
-
*/
|
|
8
|
-
export declare const registerDialog: (payload: UIRegisterDialogPayload) => UIActions;
|
|
9
|
-
/**
|
|
10
|
-
* Deletes the dialog from the store (from both allIds and byId)
|
|
11
|
-
*
|
|
12
|
-
* Example: unregisterDialog({type: 'legend'})
|
|
13
|
-
* @param {string} payload {type: 'legend' | 'layerManager' | 'dimensionSelect-elevation'}
|
|
14
|
-
*/
|
|
15
|
-
export declare const unregisterDialog: (payload: UIUnRegisterDialogPayload) => UIActions;
|
|
16
|
-
/**
|
|
17
|
-
* Sets the active map id for a dialogtype
|
|
18
|
-
*
|
|
19
|
-
* Example: setActiveMapIdForDialog({ activeMapId: 'mapId1', type: 'legend'})
|
|
20
|
-
* @param {object} payload object with activeMapId: string, type: 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
21
|
-
*/
|
|
22
|
-
export declare const setActiveMapIdForDialog: (payload: SetActiveMapIdForDialogPayload) => UIActions;
|
|
23
|
-
/**
|
|
24
|
-
* Toggles the open state to the boolean you pass in
|
|
25
|
-
*
|
|
26
|
-
* Example: setToggleOpenDialog({ type: 'legend', setOpen: true})
|
|
27
|
-
* @param {object} payload object with type: 'legend' | 'layerManager' | 'dimensionSelect-elevation', setOpen: boolean (new state of dialog)
|
|
28
|
-
*/
|
|
29
|
-
export declare const setToggleOpenDialog: (payload: UIToggleDialogPayload) => UIActions;
|
|
30
|
-
/**
|
|
31
|
-
* Orders UI element to top
|
|
32
|
-
*
|
|
33
|
-
* Example: orderDialog({ type: 'legend'})
|
|
34
|
-
* @param {object} payload object with type: 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
35
|
-
*/
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const UI_SET_ACTIVE_MAPID_FOR_DIALOG = "UI_SET_ACTIVE_MAPID_FOR_DIALOG";
|
|
2
|
-
export declare const UI_REGISTER_DIALOG = "UI_REGISTER_DIALOG";
|
|
3
|
-
export declare const UI_UNREGISTER_DIALOG = "UI_UNREGISTER_DIALOG";
|
|
4
|
-
export declare const UI_TOGGLE_DIALOG = "UI_TOGGLE_DIALOG";
|
|
5
|
-
export declare const UI_ORDER_DIALOG = "UI_ORDER_DIALOG";
|
|
6
|
-
export declare const UI_SET_ACTIVE_WINDOW_ID = "UI_SET_ACTIVE_WINDOW_ID";
|