Unused getFeaturesByIds_ method
This commit is contained in:
@@ -413,23 +413,6 @@ ol.source.FeatureCache.prototype.forEach =
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get features by ids.
|
|
||||||
* @param {Array.<string>} ids Array of (internal) identifiers.
|
|
||||||
* @return {Array.<ol.Feature>} Array of features.
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
ol.source.FeatureCache.prototype.getFeaturesByIds_ = function(ids) {
|
|
||||||
var len = ids.length,
|
|
||||||
features = new Array(len),
|
|
||||||
i;
|
|
||||||
for (i = 0; i < len; ++i) {
|
|
||||||
features[i] = this.idLookup_[ids[i]];
|
|
||||||
}
|
|
||||||
return features;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a feature from the cache.
|
* Remove a feature from the cache.
|
||||||
* @param {ol.Feature} feature Feature.
|
* @param {ol.Feature} feature Feature.
|
||||||
|
|||||||
Reference in New Issue
Block a user