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

Method removeFeatures

src/openlayers/overlay/Graph.js:396–399  ·  view source on GitHub ↗

* @function Graph.prototype.removeFeatures * @description 从专题图中删除要素。这个函数删除所有传递进来的矢量要素。参数中的要素数组中的每一项,必须是已经添加到当前图层中的 feature。 * @param {Array. |FeatureVector|Function} features - 要删除的要素。

(features)

Source from the content-addressed store, hash-verified

394 * @param {Array.<FeatureVector>|FeatureVector|Function} features - 要删除的要素。
395 */
396 removeFeatures(features) {
397 this.clearCache();
398 super.removeFeatures(features);
399 }
400
401 /**
402 * @function Graph.prototype.removeAllFeatures

Callers

nothing calls this directly

Calls 1

clearCacheMethod · 0.95

Tested by

no test coverage detected