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

Function successCallback

test/openlayers/mapping/WebMap2Spec.js:454–461  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

452 var datavizWebmap = new WebMap(id, options);
453
454 async function successCallback() {
455 setTimeout(() => {
456 expect(datavizWebmap.map.getLayers().getLength()).toBe(2);
457 expect(datavizWebmap.layers[0].autoUpdateInterval).not.toBeNull();
458 clearInterval(datavizWebmap.layers[0].autoUpdateInterval);
459 done();
460 }, 30);
461 }
462 });
463
464 it('webmap_relationRestMap', (done) => {

Callers

nothing calls this directly

Calls 6

expectFunction · 0.85
getLengthMethod · 0.80
getArrayMethod · 0.80
addVectorTileLayerMethod · 0.80
doneFunction · 0.50
getLayersMethod · 0.45

Tested by

no test coverage detected