@evergis/react 2.0.152 → 2.0.154

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/dist/react.esm.js CHANGED
@@ -3725,11 +3725,10 @@ function useFeatureLayer(_ref) {
3725
3725
  }),
3726
3726
  destructor: layer => map.indexOf(layer) !== -1 && map.removeLayer(layer),
3727
3727
  update: (layer, _ref2) => {
3728
- let [features, opacity] = _ref2;
3728
+ let [features] = _ref2;
3729
3729
  layer.features = features;
3730
- layer.opacity = opacity != null ? opacity : 1;
3731
3730
  }
3732
- }, [features, opacity]);
3731
+ }, [features]);
3733
3732
  useLayerOrder(layer, zIndex);
3734
3733
  useLayerVisibility(layer, isDisplayed);
3735
3734
  useLayerOpacity(layer, opacity);
@@ -5104,7 +5103,6 @@ const MapLegendDescription = _ref => {
5104
5103
  const isSize = isParameterType("size", parameter);
5105
5104
  const isStrokeWidth = isParameterType(["strokeWidth", "stroke.width"], parameter);
5106
5105
  const isStrokeColor = isParameterType(["strokeColor", "stroke.color"], parameter);
5107
- console.info("MapLegendDescription", parameter, isSize, isStrokeWidth, isStrokeColor);
5108
5106
  return React.createElement(MapLegendDescriptionContainer, null, isStrokeWidth || isStrokeColor ? isStrokeWidth ? "Толщина обводки" : "Цвет обводки" : isSize ? "Размер знака" : "Цвет символа");
5109
5107
  };
5110
5108
 
@@ -5208,7 +5206,8 @@ const MapLegend = _ref => {
5208
5206
  parameter: item.parameter
5209
5207
  }));
5210
5208
  })), React.createElement(MapLegendExpandButton, {
5211
- onClick: toggleExpanded
5209
+ onClick: toggleExpanded,
5210
+ "data-html2canvas-ignore": true
5212
5211
  }, isExpanded ? "Свернуть" : "Развернуть"))));
5213
5212
  };
5214
5213