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

Method destroy

src/leaflet/overlay/mapv/MapVRenderer.js:91–97  ·  view source on GitHub ↗

* @function MapVRenderer.prototype.destroy * @description 释放资源。

()

Source from the content-addressed store, hash-verified

89 * @description 释放资源。
90 */
91 destroy() {
92 this.unbindEvent();
93 this.clearData();
94 this.animator && this.animator.stop();
95 this.animator = null;
96 this.canvasLayer = null;
97 }
98 /**
99 * @function MapVRenderer.prototype.unbindEvent
100 * @description 移除鼠标事件。

Callers 2

MapVLayer.jsFile · 0.45
ThemeLayer.jsFile · 0.45

Calls 3

unbindEventMethod · 0.95
clearDataMethod · 0.95
stopMethod · 0.45

Tested by

no test coverage detected