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

Method clear

src/openlayers/overlay/theme/GeoFeature.js:226–231  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

224 * @description 清除的内容包括数据(features)、专题要素、缓存。
225 */
226 clear() {
227 this.renderer.clearAll();
228 this.renderer.refresh();
229 this.removeAllFeatures();
230 this.clearCache();
231 }
232
233 /**
234 * @function GeoFeature.prototype.getCacheCount

Callers 2

constructorMethod · 0.45
removeAllFeaturesMethod · 0.45

Calls 4

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

Tested by

no test coverage detected