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

Method clear

src/mapboxgl/overlay/GraphThemeLayer.js:405–412  ·  view source on GitHub ↗

* @function GraphThemeLayer.prototype.clear * @description 清除的内容包括数据(features) 、专题要素、缓存。

()

Source from the content-addressed store, hash-verified

403 * @description 清除的内容包括数据(features) 、专题要素、缓存。
404 */
405 clear() {
406 if (this.renderer) {
407 this.renderer.clearAll();
408 this.renderer.refresh();
409 }
410 this.removeAllFeatures();
411 this.clearCache();
412 }
413}

Callers 1

onRemoveMethod · 0.45

Calls 4

removeAllFeaturesMethod · 0.95
clearCacheMethod · 0.95
clearAllMethod · 0.45
refreshMethod · 0.45

Tested by

no test coverage detected