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

Function cb

test/maplibregl/overlay/FGBLayerSpec.js:62–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 // fgblayer.onAdd(map);
61 map.addLayer(fgblayer);
62 var cb = () => {
63 if (fgblayer && map.getLayer(fgblayer.layerId)) {
64 map.off('sourcedata', cb);
65 expect(fgblayer.strategy).toBe('bbox');
66 expect(fgblayer).not.toBeNull();
67 expect(fgblayer.url).toBe(fgbUrl);
68 expect(count).toBe(2);
69 done();
70 }
71 };
72 map.on('sourcedata', cb);
73 });
74

Callers

nothing calls this directly

Calls 9

expectFunction · 0.85
doneFunction · 0.50
getLayerMethod · 0.45
offMethod · 0.45
moveLayerMethod · 0.45
setVisibilityMethod · 0.45
removeLayerMethod · 0.45
onMethod · 0.45
onceMethod · 0.45

Tested by

no test coverage detected