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

Method removeFeatures

src/mapboxgl/overlay/GraphThemeLayer.js:374–377  ·  view source on GitHub ↗

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

(features)

Source from the content-addressed store, hash-verified

372 * @param {Array.<FeatureVector>|FeatureVector|Function} features - 要删除的要素。
373 */
374 removeFeatures(features) {
375 this.clearCache();
376 super.removeFeatures(features);
377 }
378
379 /**
380 * @function GraphThemeLayer.prototype.removeAllFeatures

Callers

nothing calls this directly

Calls 1

clearCacheMethod · 0.95

Tested by

no test coverage detected