@opengeoweb/core 9.19.0 → 9.19.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/index.esm.js CHANGED
@@ -4956,7 +4956,6 @@ const LayerRowConnect = /*#__PURE__*/React.memo(({
4956
4956
 
4957
4957
  const DragHandle = ({
4958
4958
  isDisabled: _isDisabled = false,
4959
- index: _index = undefined,
4960
4959
  hideTooltip: _hideTooltip = true,
4961
4960
  isSorting: _isSorting = false,
4962
4961
  icon: _icon = /*#__PURE__*/React__default.createElement(DragHandle$1, {
@@ -4967,7 +4966,7 @@ const DragHandle = ({
4967
4966
  const usedTooltipTitle = _hideTooltip ? '' : _tooltipTitle;
4968
4967
  return /*#__PURE__*/React__default.createElement(CustomIconButton, {
4969
4968
  tooltipTitle: usedTooltipTitle,
4970
- "data-testid": `dragHandle${_index !== undefined ? `-${_index}` : ''}`,
4969
+ "data-testid": "dragHandle",
4971
4970
  className: "handle",
4972
4971
  tabIndex: -1,
4973
4972
  disableTouchRipple: true,
@@ -5066,14 +5065,13 @@ const LayerContainerRow = /*#__PURE__*/React.memo(_a => {
5066
5065
  }
5067
5066
  return () => window.removeEventListener('wheel', preventDefault);
5068
5067
  }, [keyPressed, preventDefault]);
5069
- const contents = layerIds.map((layerId, index) => {
5068
+ const contents = layerIds.map(layerId => {
5070
5069
  var _a, _b;
5071
5070
  return /*#__PURE__*/React.createElement(LayerRowConnect, {
5072
5071
  mapId: mapId,
5073
5072
  layerId: layerId,
5074
5073
  key: `layerRowConnect-${layerId}`,
5075
5074
  dragHandle: /*#__PURE__*/React.createElement(DragHandle, {
5076
- index: index,
5077
5075
  isDisabled: isDragDisabled,
5078
5076
  hideTooltip: isSorting || isDragDisabled,
5079
5077
  isSorting: isSorting,
@@ -8462,15 +8460,6 @@ const getLayersToUpdate = (layers, mapId) => {
8462
8460
  Otherwise we risk making a getfeatureinfo call with outdated dimension values.
8463
8461
  */
8464
8462
  const wmjsLayer = webmapUtils.getWMLayerById(layer.id).cloneLayer();
8465
- layer.dimensions && layer.dimensions.forEach(dim => {
8466
- const wmDim = wmjsLayer.getDimension(dim.name);
8467
- if (wmDim && wmDim.getValue() !== dim.currentValue) {
8468
- wmDim.setValue(dim.currentValue);
8469
- }
8470
- });
8471
- if (layer.name) {
8472
- wmjsLayer.setName(layer.name);
8473
- }
8474
8463
  return {
8475
8464
  layerId: layer.id,
8476
8465
  url: wmjsMap.getWMSGetFeatureInfoRequestURL(wmjsLayer, wmjsMap.getMapPin().getXY().x, wmjsMap.getMapPin().getXY().y, 'text/html'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "9.19.0",
3
+ "version": "9.19.1",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,7 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  interface DragHandleProps {
3
3
  isDisabled?: boolean;
4
- index?: number | string;
5
4
  hideTooltip?: boolean;
6
5
  isSorting?: boolean;
7
6
  icon?: ReactNode;