destroy
Destroys the resources held by all data sources in this collection. Explicitly destroying this object allows for deterministic release of WebGL resources, instead of relying on the garbage collector. Once this object is destroyed, it should not be used; calling any function other than isDestroyed
will result in a DeveloperError exception. Therefore, assign the return value (undefined
) to the object as done in the example.
dataSourceCollection = dataSourceCollection && dataSourceCollection.destroy();
Content copied to clipboard