MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / destroy

Method destroy

src/openlayers/overlay/theme/Theme.js:137–150  ·  view source on GitHub ↗

* @function Theme.prototype.destroy * @description 释放资源,将引用资源的属性置空。

()

Source from the content-addressed store, hash-verified

135 * @description 释放资源,将引用资源的属性置空。
136 */
137 destroy() {
138 this.EVENT_TYPES = null;
139 this.isBaseLayer = null;
140 this.TFEvents = null;
141 this.destroyFeatures();
142 this.features = null;
143 if (this.renderer) {
144 this.renderer.dispose();
145 }
146 this.renderer = null;
147 this.levelRenderer = null;
148 this.movingOffset = null;
149 this.currentMousePosition = null;
150 }
151
152 /**
153 * @function Theme.prototype.destroyFeatures

Callers 1

destroyFeaturesMethod · 0.45

Calls 2

destroyFeaturesMethod · 0.95
disposeMethod · 0.45

Tested by

no test coverage detected