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

Method clear

src/openlayers/overlay/Graph.js:427–434  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

425 * @description 清除的内容包括数据(features)、专题要素、缓存。
426 */
427 clear() {
428 if (this.renderer) {
429 this.renderer.clearAll();
430 this.renderer.refresh();
431 }
432 this.removeAllFeatures();
433 this.clearCache();
434 }
435
436 canvasFunctionInternal_(extent, resolution, pixelRatio, size, projection) { // eslint-disable-line no-unused-vars
437 return Theme.prototype.canvasFunctionInternal_.apply(this, arguments);

Callers 15

createMigrationLayerMethod · 0.45
mapbox-gl.jsFile · 0.45
ieFunction · 0.45
$iFunction · 0.45
moFunction · 0.45
AoFunction · 0.45
drawFunction · 0.45
mapv.min.jsFile · 0.45
mapv.jsFile · 0.45
draw$2Function · 0.45
draw$3Function · 0.45
draw$4Function · 0.45

Calls 4

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

Tested by

no test coverage detected