Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.filter(this.props.filterFunction);
childNodes = childLayers.map((childLayer) => {
return this.treeNodeFromLayer(childLayer);
});
childNodes.reverse();
} else {
if (!this.hasListener(layer, 'change:visible', this.onLayerChangeVisible)) {
const eventKey = layer.on('change:visible', this.onLayerChangeVisible);
this.olListenerKeys.push(eventKey);
}
}
treeNode =
{childNodes}
;
return treeNode;
}