@opengeoweb/core 9.27.0 → 9.27.1
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 +4 -2
- package/package.json +1 -1
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,
|