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

Method _findLayerCatalog

src/common/mapping/WebMapV3.js:617–630  ·  view source on GitHub ↗
(items, id)

Source from the content-addressed store, hash-verified

615 }
616
617 _findLayerCatalog(items, id) {
618 for (const item of items) {
619 if (item.id === id) {
620 return item;
621 }
622 if (item.children) {
623 const found = this._findLayerCatalog(item.children, id);
624 if (found) {
625 return found;
626 }
627 }
628 }
629 return null;
630 }
631
632 _deleteLayerCatalog(catalogs, id) {
633 for (let index = 0; index < catalogs.length; index++) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected