MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / _parseUniqueStyle

Method _parseUniqueStyle

src/common/mapping/WebMapV3.js:1166–1189  ·  view source on GitHub ↗
({ legendRenderType, styleField, simpleStyle, defaultSetting, custom, interpolateInfo, shape })

Source from the content-addressed store, hash-verified

1164 }
1165
1166 _parseUniqueStyle({ legendRenderType, styleField, simpleStyle, defaultSetting, custom, interpolateInfo, shape }) {
1167 const styleGroup = custom.map((c) => {
1168 const itemStyle = this._getSettingStyle(styleField, c.value, simpleStyle);
1169 const resData = this._parseLegendtyle({ legendRenderType, customValue: itemStyle });
1170 return {
1171 fieldValue: c.key,
1172 style: {
1173 ...resData,
1174 shape
1175 }
1176 };
1177 });
1178 if (!interpolateInfo.type || interpolateInfo.type === 'custom') {
1179 const resData = this._parseLegendtyle({ legendRenderType, customValue: defaultSetting });
1180 styleGroup.push({
1181 fieldValue: null,
1182 style: {
1183 ...resData,
1184 shape
1185 }
1186 });
1187 }
1188 return styleGroup;
1189 }
1190
1191 _parseRangeStyle({ legendRenderType, styleField, simpleStyle, defaultSetting, custom, shape }) {
1192 const styleGroup = custom.map((c) => {

Callers 1

Calls 4

_getSettingStyleMethod · 0.95
_parseLegendtyleMethod · 0.95
mapMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected