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