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

Method removeAllFeatures

src/openlayers/overlay/theme/Theme.js:262–268  ·  view source on GitHub ↗

* @function Theme.prototype.removeAllFeatures * @description 清除当前图层所有的矢量要素。

()

Source from the content-addressed store, hash-verified

260 * @description 清除当前图层所有的矢量要素。
261 */
262 removeAllFeatures() {
263 if (this.renderer) {
264 this.renderer.clear();
265 }
266 this.features = [];
267 this.dispatchEvent({type: 'featuresremoved', value: {features: [], succeed: true}});
268 }
269
270 /**
271 * @function Theme.prototype.getFeatures

Callers 1

removeFeaturesMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected