@evergis/react 2.0.151 → 2.0.152
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/components/MapLegend/MapLegendDescription.d.ts +2 -1
- package/dist/components/MapLegend/styled.d.ts +6 -1
- package/dist/components/MapLegend/types.d.ts +2 -2
- package/dist/react.cjs.development.js +107 -53
- package/dist/react.cjs.development.js.map +1 -1
- package/dist/react.cjs.production.min.js +1 -1
- package/dist/react.cjs.production.min.js.map +1 -1
- package/dist/react.esm.js +107 -53
- package/dist/react.esm.js.map +1 -1
- package/dist/utils/isParameterType.d.ts +3 -2
- package/package.json +2 -2
package/dist/react.esm.js
CHANGED
|
@@ -1945,10 +1945,14 @@ const polygonCircleFromPoint = (center, diameter) => {
|
|
|
1945
1945
|
|
|
1946
1946
|
const isNumeric = number => !isNaN(parseFloat(number)) && isFinite(number);
|
|
1947
1947
|
|
|
1948
|
-
const isParameterType = (
|
|
1948
|
+
const isParameterType = (types, parameter) => {
|
|
1949
1949
|
var _parameter$toLowerCas;
|
|
1950
1950
|
|
|
1951
|
-
return (_parameter$toLowerCas = parameter.toLowerCase()) == null ? void 0 : _parameter$toLowerCas.includes(type
|
|
1951
|
+
return (typeof types === "string" ? parameter == null ? void 0 : (_parameter$toLowerCas = parameter.toLowerCase()) == null ? void 0 : _parameter$toLowerCas.includes(types.toLowerCase()) : types.some(type => {
|
|
1952
|
+
var _parameter$toLowerCas2;
|
|
1953
|
+
|
|
1954
|
+
return parameter == null ? void 0 : (_parameter$toLowerCas2 = parameter.toLowerCase()) == null ? void 0 : _parameter$toLowerCas2.includes(type.toLowerCase());
|
|
1955
|
+
})) || false;
|
|
1952
1956
|
};
|
|
1953
1957
|
|
|
1954
1958
|
let CircleLineMiterRender = /*#__PURE__*/function (_LineMiterRender) {
|
|
@@ -4889,13 +4893,13 @@ const Legend = _ref => {
|
|
|
4889
4893
|
className: className
|
|
4890
4894
|
}, searchable && searchLayer && React.createElement(SearchInput, {
|
|
4891
4895
|
onChange: searchLayer
|
|
4892
|
-
}), renderCustomLegend && layer ? renderCustomLegend(layer) : children ? legend && children(legend) : legend && legend.items.map(legendItem => React.createElement(LegendSection, {
|
|
4896
|
+
}), renderCustomLegend && layer ? renderCustomLegend(layer) : children ? legend && children(legend) : legend && legend.items.map((legendItem, index) => React.createElement(LegendSection, {
|
|
4893
4897
|
key: legendItem.attribute + "-" + legendItem.parameter,
|
|
4894
4898
|
item: legendItem,
|
|
4895
4899
|
hideTitle: (layer == null ? void 0 : layer.alias) === legendItem.title,
|
|
4896
4900
|
renderLegendTitle: config && config.renderLegendTitle
|
|
4897
4901
|
}, legendValue => React.createElement(LegendValue, {
|
|
4898
|
-
key: legendValue.title,
|
|
4902
|
+
key: legendValue.title + "-" + index,
|
|
4899
4903
|
value: legendValue,
|
|
4900
4904
|
parameter: legendItem.parameter,
|
|
4901
4905
|
maxSize: getSymbolSize({
|
|
@@ -5022,55 +5026,86 @@ const Fullscreen = () => {
|
|
|
5022
5026
|
}));
|
|
5023
5027
|
};
|
|
5024
5028
|
|
|
5025
|
-
var _templateObject$6, _templateObject2$6, _templateObject3$4, _templateObject4$4, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17, _templateObject18, _templateObject19;
|
|
5029
|
+
var _templateObject$6, _templateObject2$6, _templateObject3$4, _templateObject4$4, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
|
|
5026
5030
|
const MapLegendControl = /*#__PURE__*/styled(MapControl)(_templateObject$6 || (_templateObject$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: default;\n"])));
|
|
5027
5031
|
const MapLegendContainer = /*#__PURE__*/styled.div(_templateObject2$6 || (_templateObject2$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 12.5rem;\n padding-bottom: 1rem;\n box-sizing: border-box;\n\n canvas {\n height: 1.625rem;\n width: 1.625rem;\n }\n"])));
|
|
5028
5032
|
const MapLegendHeader = /*#__PURE__*/styled(LegendSectionHeader)(_templateObject3$4 || (_templateObject3$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-width: 15rem;\n margin-bottom: 0.25rem;\n font-weight: 500;\n"])));
|
|
5029
5033
|
const MapLegendDescriptionContainer = /*#__PURE__*/styled.div(_templateObject4$4 || (_templateObject4$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 0.5rem;\n font-weight: 400;\n font-size: 0.625rem;\n color: rgba(255, 255, 255, 0.65);\n"])));
|
|
5030
|
-
const
|
|
5031
|
-
const
|
|
5034
|
+
const MinimizedLegendContainer = /*#__PURE__*/styled.div(_templateObject5$4 || (_templateObject5$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n :not(:first-child) {\n margin-top: 1rem;\n }\n"])));
|
|
5035
|
+
const MapLegendValueDescr = /*#__PURE__*/styled.div(_templateObject6$2 || (_templateObject6$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n min-height: 1rem;\n margin-bottom: 0.25rem;\n font-size: 0.75rem;\n font-weight: 600;\n line-height: 1rem;\n"])));
|
|
5036
|
+
|
|
5037
|
+
const SizeLegendItemMixin = function SizeLegendItemMixin(value) {
|
|
5038
|
+
if (value === void 0) {
|
|
5039
|
+
value = 0;
|
|
5040
|
+
}
|
|
5041
|
+
|
|
5042
|
+
return css(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 50%;\n flex: none;\n height: inherit;\n width: inherit;\n margin: 0 0 0 -1rem;\n background: none;\n border: none;\n\n :after {\n content: \"\";\n position: absolute;\n top: 0;\n left: 50%;\n border: 1px rgba(48, 69, 79, 0.28) solid;\n border-radius: 50%;\n margin: 0 0 0 -", "px;\n width: ", "px;\n height: ", "px;\n }\n"])), value / 2, value, value);
|
|
5043
|
+
};
|
|
5044
|
+
|
|
5045
|
+
const StrokeWidthLegendItemMixin = function StrokeWidthLegendItemMixin(value) {
|
|
5046
|
+
if (value === void 0) {
|
|
5047
|
+
value = 0;
|
|
5048
|
+
}
|
|
5049
|
+
|
|
5050
|
+
return css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n position: relative;\n background: none;\n border: none;\n display: flex;\n align-items: center;\n flex: none;\n min-height: 1rem;\n height: auto;\n width: calc(100% - 2rem);\n margin: 0 0 0.25rem 0;\n padding-left: 2rem;\n font-size: 0.75rem;\n \n :after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 0;\n width: 1.5rem;\n height: ", "px;\n margin-top: -", ";\n background: rgb(224, 224, 224);\n }\n"])), value, Math.round(value / 2));
|
|
5051
|
+
};
|
|
5052
|
+
|
|
5053
|
+
const MapLegendItem = /*#__PURE__*/styled.div(_templateObject9$1 || (_templateObject9$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n height: ", "rem;\n background: ", ";\n border: 1px rgba(48, 69, 79, 0.1) solid;\n margin-right: -1px;\n\n ", "\n\n ", "\n"])), _ref => {
|
|
5032
5054
|
let {
|
|
5033
|
-
|
|
5055
|
+
parameter
|
|
5034
5056
|
} = _ref;
|
|
5035
|
-
return
|
|
5057
|
+
return isParameterType(["strokeColor", "stroke.color"], parameter) ? 0.25 : 1;
|
|
5036
5058
|
}, _ref2 => {
|
|
5037
5059
|
let {
|
|
5038
5060
|
value
|
|
5039
5061
|
} = _ref2;
|
|
5040
|
-
return
|
|
5041
|
-
}
|
|
5042
|
-
const MapLegendOther = /*#__PURE__*/styled(MapLegendItem)(_templateObject7$2 || (_templateObject7$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: none;\n width: 1rem;\n margin-left: 0.25rem;\n border-radius: 0.125rem;\n"])));
|
|
5043
|
-
const SizeOverlayLegendMixin = /*#__PURE__*/css(_templateObject8$2 || (_templateObject8$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n width: 2rem;\n height: 2rem;\n margin: 0 auto;\n \n ", ", ", " {\n flex: none;\n position: absolute;\n top: 0;\n left: 50%;\n width: inherit;\n height: inherit;\n margin-left: -1rem;\n \n :after {\n top: 0;\n margin-top: 0;\n }\n }\n"])), MapLegendItem, MapLegendOther);
|
|
5044
|
-
const SizeMinimizedLegend = /*#__PURE__*/styled.div(_templateObject9$1 || (_templateObject9$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: nowrap;\n align-items: center;\n margin-top: 0.5rem;\n \n ", " {\n margin: 0 auto;\n }\n"])), MapLegendItem);
|
|
5045
|
-
const SizeMinimizedLegendSymbol = /*#__PURE__*/styled.div(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 4rem;\n margin-right: 0.75rem;\n"])));
|
|
5046
|
-
const SizeMinimizedLegendLabel = /*#__PURE__*/styled.div(_templateObject11$1 || (_templateObject11$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 0.75rem;\n"])));
|
|
5047
|
-
const SizeMinimizedLegendDown = /*#__PURE__*/styled.div(_templateObject12$1 || (_templateObject12$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: white;\n opacity: 0.28;\n"])));
|
|
5048
|
-
const SizeMinimizedLegendUp = /*#__PURE__*/styled.div(_templateObject13$1 || (_templateObject13$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: white;\n opacity: 0.65;\n"])));
|
|
5049
|
-
const MapLegendItems = /*#__PURE__*/styled.div(_templateObject14$1 || (_templateObject14$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: 0.125rem;\n\n ", ";\n"])), _ref3 => {
|
|
5062
|
+
return typeof value === "number" ? "none" : value;
|
|
5063
|
+
}, _ref3 => {
|
|
5050
5064
|
let {
|
|
5051
|
-
|
|
5065
|
+
value,
|
|
5066
|
+
parameter
|
|
5052
5067
|
} = _ref3;
|
|
5053
|
-
return
|
|
5068
|
+
return isParameterType("size", parameter) && SizeLegendItemMixin(value);
|
|
5069
|
+
}, _ref4 => {
|
|
5070
|
+
let {
|
|
5071
|
+
value,
|
|
5072
|
+
parameter
|
|
5073
|
+
} = _ref4;
|
|
5074
|
+
return isParameterType(["strokeWidth", "stroke.width"], parameter) && StrokeWidthLegendItemMixin(value);
|
|
5054
5075
|
});
|
|
5055
|
-
|
|
5056
|
-
const
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5076
|
+
const MapLegendOther = /*#__PURE__*/styled(MapLegendItem)(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: none;\n position: relative;\n width: 1rem;\n margin-left: 0.25rem;\n border-radius: 0.125rem;\n"])));
|
|
5077
|
+
const SizeLegendItemsMixin = /*#__PURE__*/css(_templateObject11$1 || (_templateObject11$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n width: 2rem;\n height: 2rem;\n margin: 0 auto;\n\n ", " {\n width: auto;\n margin-left: 0;\n }\n"])), MapLegendOther);
|
|
5078
|
+
const StrokeWidthLegendItemsMixin = /*#__PURE__*/css(_templateObject12$1 || (_templateObject12$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n flex-direction: column;\n\n ", " {\n width: calc(100% - 2rem);\n margin-left: 0;\n }\n"])), MapLegendOther);
|
|
5079
|
+
const SizeMinimizedLegend = /*#__PURE__*/styled.div(_templateObject13$1 || (_templateObject13$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: nowrap;\n align-items: center;\n margin-top: 0.5rem;\n"])));
|
|
5080
|
+
const SizeMinimizedLegendSymbol = /*#__PURE__*/styled.div(_templateObject14$1 || (_templateObject14$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 4rem;\n margin-right: 0.75rem;\n"])));
|
|
5081
|
+
const SizeMinimizedLegendLabel = /*#__PURE__*/styled.div(_templateObject15$1 || (_templateObject15$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 0.75rem;\n"])));
|
|
5082
|
+
const SizeMinimizedLegendDown = /*#__PURE__*/styled.div(_templateObject16$1 || (_templateObject16$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: white;\n opacity: 0.28;\n"])));
|
|
5083
|
+
const SizeMinimizedLegendUp = /*#__PURE__*/styled.div(_templateObject17 || (_templateObject17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: white;\n opacity: 0.65;\n"])));
|
|
5084
|
+
const MapLegendItems = /*#__PURE__*/styled.div(_templateObject18 || (_templateObject18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: 0.125rem;\n\n ", ";\n ", ";\n"])), _ref5 => {
|
|
5085
|
+
let {
|
|
5086
|
+
isSize
|
|
5087
|
+
} = _ref5;
|
|
5088
|
+
return isSize && SizeLegendItemsMixin;
|
|
5089
|
+
}, _ref6 => {
|
|
5090
|
+
let {
|
|
5091
|
+
isStrokeWidth
|
|
5092
|
+
} = _ref6;
|
|
5093
|
+
return isStrokeWidth && StrokeWidthLegendItemsMixin;
|
|
5094
|
+
});
|
|
5095
|
+
const MapLegendValues = /*#__PURE__*/styled.div(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n font-size: 0.75rem;\n color: rgba(48, 69, 79, 0.65);\n"])));
|
|
5096
|
+
const MapLegendValuesRange = /*#__PURE__*/styled.div(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n"])));
|
|
5097
|
+
const MapLegendValuesOther = /*#__PURE__*/styled(MapLegendOther)(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 0;\n text-align: center;\n overflow: visible;\n"])));
|
|
5098
|
+
const MapLegendExpandButton = /*#__PURE__*/styled.div(_templateObject22 || (_templateObject22 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n margin: 0.1rem 0 0.5rem;\n font-size: 0.625rem;\n color: #1FB3AA;\n"])));
|
|
5068
5099
|
|
|
5069
5100
|
const MapLegendDescription = _ref => {
|
|
5070
5101
|
let {
|
|
5071
|
-
|
|
5102
|
+
parameter
|
|
5072
5103
|
} = _ref;
|
|
5073
|
-
|
|
5104
|
+
const isSize = isParameterType("size", parameter);
|
|
5105
|
+
const isStrokeWidth = isParameterType(["strokeWidth", "stroke.width"], parameter);
|
|
5106
|
+
const isStrokeColor = isParameterType(["strokeColor", "stroke.color"], parameter);
|
|
5107
|
+
console.info("MapLegendDescription", parameter, isSize, isStrokeWidth, isStrokeColor);
|
|
5108
|
+
return React.createElement(MapLegendDescriptionContainer, null, isStrokeWidth || isStrokeColor ? isStrokeWidth ? "Толщина обводки" : "Цвет обводки" : isSize ? "Размер знака" : "Цвет символа");
|
|
5074
5109
|
};
|
|
5075
5110
|
|
|
5076
5111
|
const getValueFromLegendTitle = (title, minOrMax) => {
|
|
@@ -5090,31 +5125,50 @@ const MinimizedLegend = _ref => {
|
|
|
5090
5125
|
let {
|
|
5091
5126
|
values,
|
|
5092
5127
|
title,
|
|
5093
|
-
|
|
5128
|
+
parameter
|
|
5094
5129
|
} = _ref;
|
|
5095
5130
|
const currentValues = [...values];
|
|
5096
5131
|
const other = currentValues.pop();
|
|
5097
|
-
|
|
5098
|
-
|
|
5132
|
+
const isSize = isParameterType("size", parameter);
|
|
5133
|
+
const isStrokeWidth = isParameterType(["strokeWidth", "stroke.width"], parameter);
|
|
5134
|
+
const titleMax = getValueFromLegendTitle((_currentValues$ = currentValues[0]) == null ? void 0 : _currentValues$.title, "max");
|
|
5135
|
+
const titleMin = getValueFromLegendTitle((_currentValues = currentValues[currentValues.length - 1]) == null ? void 0 : _currentValues.title, "min");
|
|
5136
|
+
return React.createElement(MinimizedLegendContainer, null, !!title && React.createElement(MapLegendValueDescr, null, title), React.createElement(MapLegendDescription, {
|
|
5137
|
+
parameter: parameter
|
|
5099
5138
|
}), isSize ? React.createElement(React.Fragment, null, React.createElement(SizeMinimizedLegend, null, React.createElement(SizeMinimizedLegendSymbol, null, React.createElement(MapLegendItems, {
|
|
5100
|
-
|
|
5101
|
-
}, currentValues.map(value => React.createElement(MapLegendItem, {
|
|
5102
|
-
key: value.title,
|
|
5139
|
+
isSize: true
|
|
5140
|
+
}, currentValues.map((value, index) => React.createElement(MapLegendItem, {
|
|
5141
|
+
key: "" + value.title + index,
|
|
5103
5142
|
title: value.title,
|
|
5104
|
-
value: value.parameterValue
|
|
5105
|
-
|
|
5143
|
+
value: value.parameterValue,
|
|
5144
|
+
parameter: parameter
|
|
5145
|
+
})))), React.createElement(SizeMinimizedLegendLabel, null, React.createElement(SizeMinimizedLegendDown, null, (_currentValues$2 = currentValues[0]) == null ? void 0 : _currentValues$2.title), React.createElement(SizeMinimizedLegendUp, null, (_currentValues2 = currentValues[currentValues.length - 1]) == null ? void 0 : _currentValues2.title))), React.createElement(SizeMinimizedLegend, null, React.createElement(SizeMinimizedLegendSymbol, null, React.createElement(MapLegendItems, {
|
|
5146
|
+
isSize: true
|
|
5147
|
+
}, React.createElement(MapLegendOther, {
|
|
5106
5148
|
title: "\u0414\u0440\u0443\u0433\u043E\u0435",
|
|
5107
|
-
value: other == null ? void 0 : other.parameterValue
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5149
|
+
value: other == null ? void 0 : other.parameterValue,
|
|
5150
|
+
parameter: parameter
|
|
5151
|
+
}))), React.createElement(SizeMinimizedLegendLabel, null, React.createElement(SizeMinimizedLegendUp, null, "\u0414\u0440\u0443\u0433\u043E\u0435")))) : isStrokeWidth ? React.createElement(MapLegendItems, {
|
|
5152
|
+
isStrokeWidth: true
|
|
5153
|
+
}, currentValues.map((value, index) => React.createElement(MapLegendItem, {
|
|
5154
|
+
key: "" + value.title + index,
|
|
5155
|
+
title: value.title,
|
|
5156
|
+
value: value.parameterValue,
|
|
5157
|
+
parameter: parameter
|
|
5158
|
+
}, (!index || index === currentValues.length - 1) && value.title)), React.createElement(MapLegendOther, {
|
|
5159
|
+
title: "\u0414\u0440\u0443\u0433\u043E\u0435",
|
|
5160
|
+
value: other == null ? void 0 : other.parameterValue,
|
|
5161
|
+
parameter: parameter
|
|
5162
|
+
}, "\u0414\u0440\u0443\u0433\u043E\u0435")) : React.createElement(MapLegendItems, null, currentValues.map((value, index) => React.createElement(MapLegendItem, {
|
|
5163
|
+
key: "" + value.title + index,
|
|
5112
5164
|
title: value.title,
|
|
5113
|
-
value: value.parameterValue
|
|
5165
|
+
value: value.parameterValue,
|
|
5166
|
+
parameter: parameter
|
|
5114
5167
|
})), React.createElement(MapLegendOther, {
|
|
5115
5168
|
title: "\u0414\u0440\u0443\u0433\u043E\u0435",
|
|
5116
|
-
value: other == null ? void 0 : other.parameterValue
|
|
5117
|
-
|
|
5169
|
+
value: other == null ? void 0 : other.parameterValue,
|
|
5170
|
+
parameter: parameter
|
|
5171
|
+
})), typeof (other == null ? void 0 : other.parameterValue) === "string" && (titleMax || titleMin) && React.createElement(MapLegendValues, null, React.createElement(MapLegendValuesRange, null, React.createElement("div", null, titleMax), React.createElement("div", null, titleMin)), React.createElement(MapLegendValuesOther, null, "-")));
|
|
5118
5172
|
};
|
|
5119
5173
|
|
|
5120
5174
|
const MapLegend = _ref => {
|
|
@@ -5151,7 +5205,7 @@ const MapLegend = _ref => {
|
|
|
5151
5205
|
values: item.values,
|
|
5152
5206
|
defaultValue: (_symbol$fill = symbol.fill) == null ? void 0 : _symbol$fill.color,
|
|
5153
5207
|
title: item.title !== (layer == null ? void 0 : layer.alias) ? item.title : "",
|
|
5154
|
-
|
|
5208
|
+
parameter: item.parameter
|
|
5155
5209
|
}));
|
|
5156
5210
|
})), React.createElement(MapLegendExpandButton, {
|
|
5157
5211
|
onClick: toggleExpanded
|