MCPcopy Create free account
hub / github.com/Maps4HTML/MapML.js / whenElemsReady

Method whenElemsReady

src/layer.js:912–922  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

910 }
911 // check if all child elements are ready
912 whenElemsReady() {
913 let elemsReady = [];
914 let target = this.src ? this.shadowRoot : this;
915 for (let elem of [
916 ...target.querySelectorAll('map-extent'),
917 ...target.querySelectorAll('map-feature')
918 ]) {
919 elemsReady.push(elem.whenReady());
920 }
921 return Promise.allSettled(elemsReady);
922 }
923}

Callers 1

map-extent.test.jsFile · 0.80

Calls 1

whenReadyMethod · 0.45

Tested by

no test coverage detected