MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / whenLayersReady

Method whenLayersReady

src/web-map.js:1491–1498  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1489 });
1490 }
1491 whenLayersReady() {
1492 let layersReady = [];
1493 // check if all the children elements (map-extent, map-feature) of all map-layer are ready
1494 for (let layer of [...this.layers]) {
1495 layersReady.push(layer.whenReady());
1496 }
1497 return Promise.allSettled(layersReady);
1498 }
1499 whenProjectionDefined(projection) {
1500 return new Promise((resolve, reject) => {
1501 let interval, failureTimer;

Calls 1

whenReadyMethod · 0.45

Tested by

no test coverage detected