@opengeoweb/core 9.27.0 → 9.28.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/README.md +2 -5
- package/index.esm.js +19 -9
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ This library was generated with [Nx](https://nx.dev).
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
npm install @opengeoweb/core @opengeoweb/store @opengeoweb/timeslider @redux-eggs/redux-toolkit
|
|
12
|
+
npm install @opengeoweb/core @opengeoweb/store @opengeoweb/timeslider @redux-eggs/redux-toolkit
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Use
|
|
@@ -27,11 +27,8 @@ import {
|
|
|
27
27
|
import { mapActions } from '@opengeoweb/store';
|
|
28
28
|
import { TimeSliderConnect } from '@opengeoweb/timeslider';
|
|
29
29
|
import { createStore } from '@redux-eggs/redux-toolkit';
|
|
30
|
-
import { getSagaExtension } from '@redux-eggs/saga-extension';
|
|
31
30
|
|
|
32
|
-
const store = createStore({
|
|
33
|
-
extensions: [getSagaExtension()],
|
|
34
|
-
});
|
|
31
|
+
const store = createStore({});
|
|
35
32
|
|
|
36
33
|
const ConnectedMapWithTimeSlider = ({ mapId }) => {
|
|
37
34
|
const dispatch = useDispatch();
|
package/index.esm.js
CHANGED
|
@@ -11,7 +11,7 @@ import { WEBMAP_REACT_NAMESPACE, webmapReactTranslations, WEBMAP_NAMESPACE, webm
|
|
|
11
11
|
import { useDispatch, useSelector, connect, useStore, Provider } from 'react-redux';
|
|
12
12
|
import { ReactSortable } from 'react-sortablejs';
|
|
13
13
|
import Sortable from 'sortablejs';
|
|
14
|
-
import { layerTypes, layerUtils, layerActions, layerSelectors, serviceSelectors, serviceActions,
|
|
14
|
+
import { layerTypes, layerUtils, mapSelectors, layerActions, layerSelectors, serviceSelectors, serviceActions, mapActions, mapEnums, uiSelectors, uiTypes, useSetupDialog, filterLayers, getUserAddedServices, uiActions, genericActions, drawtoolSelectors, syncConstants, loadingIndicatorActions, IS_LEGEND_OPEN_BY_DEFAULT, defaultLayers, mapStoreActions, getSingularDrawtoolDrawLayerId, syncGroupsSelectors, syncGroupsSelector, coreModuleConfig, routerUtils, routerModuleConfig } from '@opengeoweb/store';
|
|
15
15
|
import { webmapUtils, getCapabilities, WMGetServiceFromStore, LayerType, handleDateUtilsISOString, wmServiceListener, EVENT_GETCAPABILITIES_START, EVENT_GETCAPABILITIES_READY, getWMSGetFeatureInfoRequestURL, WMLayer } from '@opengeoweb/webmap';
|
|
16
16
|
import { Box as Box$1, styled as styled$1 } from '@mui/system';
|
|
17
17
|
import _, { isEqual, range } from 'lodash';
|
|
@@ -4273,14 +4273,16 @@ const DeleteLayerConnect = ({
|
|
|
4273
4273
|
icon: _icon = jsx(Delete, {})
|
|
4274
4274
|
}) => {
|
|
4275
4275
|
const dispatch = useDispatch();
|
|
4276
|
+
const layerIndex = useSelector(store => mapSelectors.getLayerIndexByLayerId(store, mapId, layerId));
|
|
4276
4277
|
const layerDelete = React.useCallback(({
|
|
4277
4278
|
mapId,
|
|
4278
4279
|
layerId
|
|
4279
4280
|
}) => dispatch(layerActions.layerDelete({
|
|
4280
4281
|
mapId,
|
|
4281
4282
|
layerId,
|
|
4283
|
+
layerIndex,
|
|
4282
4284
|
origin: layerTypes.LayerActionOrigin.layerManager
|
|
4283
|
-
})), [dispatch]);
|
|
4285
|
+
})), [dispatch, layerIndex]);
|
|
4284
4286
|
const isLayerEnabled = useSelector(store => layerSelectors.getLayerEnabled(store, layerId));
|
|
4285
4287
|
return jsx(CustomIconButton, Object.assign({
|
|
4286
4288
|
tooltipTitle: _tooltipTitle,
|
|
@@ -6027,13 +6029,21 @@ var preset = {
|
|
|
6027
6029
|
presetName: "Layer manager preset",
|
|
6028
6030
|
timeSeriesServices: [
|
|
6029
6031
|
{
|
|
6030
|
-
name: "KNMI",
|
|
6032
|
+
name: "KNMI OBS",
|
|
6031
6033
|
url: "https://gw-edr-dev-add-cfn.pub.dev.knmi.cloud/edr",
|
|
6032
6034
|
id: "knmi",
|
|
6033
6035
|
description: "KNMI EDR",
|
|
6034
6036
|
type: "EDR",
|
|
6035
6037
|
scope: "system"
|
|
6036
6038
|
},
|
|
6039
|
+
{
|
|
6040
|
+
name: "KNMI Geoservices",
|
|
6041
|
+
url: "https://geoservices.knmi.nl/edr",
|
|
6042
|
+
id: "knmi_geoservices_edr",
|
|
6043
|
+
description: "KNMI EDR on geoservices with UWCW HA43 DINI",
|
|
6044
|
+
type: "EDR",
|
|
6045
|
+
scope: "system"
|
|
6046
|
+
},
|
|
6037
6047
|
{
|
|
6038
6048
|
name: "FMI",
|
|
6039
6049
|
url: "https://opendata.fmi.fi/edr",
|
|
@@ -6073,14 +6083,14 @@ var preset = {
|
|
|
6073
6083
|
id: "ecmwf"
|
|
6074
6084
|
},
|
|
6075
6085
|
{
|
|
6076
|
-
name: "
|
|
6077
|
-
url: "https://geoservices.knmi.nl/
|
|
6078
|
-
id: "
|
|
6086
|
+
name: "Harmonie HA43 DINI",
|
|
6087
|
+
url: "https://geoservices.knmi.nl/adagucserver?dataset=uwcw_ha43_dini_5p5km&",
|
|
6088
|
+
id: "knmi_uwcw_ha43_dini_5p5km"
|
|
6079
6089
|
},
|
|
6080
6090
|
{
|
|
6081
|
-
name: "
|
|
6082
|
-
url: "https://geoservices.knmi.nl/
|
|
6083
|
-
id: "
|
|
6091
|
+
name: "Harmonie HA43 NL",
|
|
6092
|
+
url: "https://geoservices.knmi.nl/adagucserver?dataset=uwcw_ha43_nl_2km&",
|
|
6093
|
+
id: "knmi_uwcw_ha43_nl_2km"
|
|
6084
6094
|
},
|
|
6085
6095
|
{
|
|
6086
6096
|
name: "KNMIgeoservicesObs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.28.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
22
|
"react-sortablejs": "^6.1.4",
|
|
23
23
|
"sortablejs": "^1.15.1",
|
|
24
|
-
"@mui/system": "^
|
|
24
|
+
"@mui/system": "^6.1.1",
|
|
25
25
|
"@opengeoweb/snackbar": "*",
|
|
26
26
|
"react-router-dom": "^6.21.0",
|
|
27
27
|
"react-draggable": "^4.4.6",
|
|
28
28
|
"i18next": "^23.11.5",
|
|
29
29
|
"react-i18next": "^14.1.2",
|
|
30
30
|
"dompurify": "^3.0.6",
|
|
31
|
-
"@mui/material": "^
|
|
31
|
+
"@mui/material": "^6.1.1",
|
|
32
32
|
"@sentry/react": "^7.109.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|