* @function Theme.prototype.destroy * @description 释放资源,将引用资源的属性置空。
()
| 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 |
no test coverage detected