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

Method _deleteLayerCatalog

src/common/mapping/WebMapV3.js:632–643  ·  view source on GitHub ↗
(catalogs, id)

Source from the content-addressed store, hash-verified

630 }
631
632 _deleteLayerCatalog(catalogs, id) {
633 for (let index = 0; index < catalogs.length; index++) {
634 const catalog = catalogs[index];
635 if (catalog.id === id) {
636 catalogs.splice(index, 1);
637 break;
638 }
639 if (catalog.children) {
640 this._deleteLayerCatalog(catalog.children, id);
641 }
642 }
643 }
644
645 _updateLayerCatalogsId({
646 loopData,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected