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

Function getFilterFields

src/common/mapping/utils/L7LayerUtil.js:2084–2099  ·  view source on GitHub ↗
(filter)

Source from the content-addressed store, hash-verified

2082
2083
2084function getFilterFields(filter) {
2085 const result = [];
2086 for (const exp of filter) {
2087 if (exp instanceof Array && exp[1] && typeof exp[1] === 'string') {
2088 result.push(exp[1]);
2089 continue;
2090 }
2091 if (exp instanceof Array) {
2092 const subResult = getFilterFields(exp);
2093 if (subResult && subResult.length > 0) {
2094 result.push(...subResult);
2095 }
2096 }
2097 }
2098 return result;
2099}
2100

Callers 1

getL7FilterFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected