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

Method whenLayersReady

src/mapml-viewer.js:1448–1455  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1446 });
1447 }
1448 whenLayersReady() {
1449 let layersReady = [];
1450 // check if all the children elements (map-extent, map-feature) of all map-layer are ready
1451 for (let layer of [...this.layers]) {
1452 layersReady.push(layer.whenReady());
1453 }
1454 return Promise.allSettled(layersReady);
1455 }
1456 whenProjectionDefined(projection) {
1457 return new Promise((resolve, reject) => {
1458 let interval, failureTimer;

Callers 1

_setUpEventsMethod · 0.95

Calls 1

whenReadyMethod · 0.45

Tested by

no test coverage detected