MCPcopy
hub / github.com/CesiumGS/cesium / destroy

Method destroy

packages/engine/Source/DataSources/KmlDataSource.js:3831–3836  ·  view source on GitHub ↗

* Cleans up any non-entity elements created by the data source. Currently this only affects ScreenOverlay elements.

()

Source from the content-addressed store, hash-verified

3829 * Cleans up any non-entity elements created by the data source. Currently this only affects ScreenOverlay elements.
3830 */
3831 destroy() {
3832 while (this._screenOverlays.length > 0) {
3833 const elem = this._screenOverlays.pop();
3834 elem.remove();
3835 }
3836 }
3837
3838 /**
3839 * Updates any NetworkLink that require updating.

Callers 15

PathVisualizer.jsFile · 0.45
createDeclutterCallbackFunction · 0.45
updateEnableFunction · 0.45
EntityCluster.jsFile · 0.45
removeItemFunction · 0.45
updateItemsFunction · 0.45

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected