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

Method destroyFeatures

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

* @function Theme.prototype.destroyFeatures * @description 销毁要素。 * @param {Array. |FeatureVector} features - 将被销毁的要素。

(features)

Source from the content-addressed store, hash-verified

155 * @param {Array.<FeatureVector>|FeatureVector} features - 将被销毁的要素。
156 */
157 destroyFeatures(features) {
158 var all = (features == undefined);
159 if (all) {
160 features = this.features;
161 }
162 if (features) {
163 this.removeFeatures(features);
164 if (!Array.isArray(features)) {
165 features = [features];
166 }
167 for (var i = features.length - 1; i >= 0; i--) {
168 features[i].destroy();
169 }
170 }
171 }
172
173 /**
174 * @function Theme.prototype.setOpacity

Callers 5

destroyMethod · 0.95
GraphSpec.jsFile · 0.45

Calls 2

removeFeaturesMethod · 0.95
destroyMethod · 0.45

Tested by

no test coverage detected