Add ol.source.Vector#addFeatures
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
@exportSymbol ol.source.Vector
|
@exportSymbol ol.source.Vector
|
||||||
@exportProperty ol.source.Vector.prototype.addFeature
|
@exportProperty ol.source.Vector.prototype.addFeature
|
||||||
|
@exportProperty ol.source.Vector.prototype.addFeatures
|
||||||
@exportProperty ol.source.Vector.prototype.getClosestFeatureToCoordinate
|
@exportProperty ol.source.Vector.prototype.getClosestFeatureToCoordinate
|
||||||
@exportProperty ol.source.Vector.prototype.forEachFeature
|
@exportProperty ol.source.Vector.prototype.forEachFeature
|
||||||
@exportProperty ol.source.Vector.prototype.getAllFeatures
|
@exportProperty ol.source.Vector.prototype.getAllFeatures
|
||||||
|
|||||||
@@ -102,6 +102,14 @@ ol.source.Vector.prototype.addFeatureInternal = function(feature) {
|
|||||||
}
|
}
|
||||||
this.dispatchEvent(
|
this.dispatchEvent(
|
||||||
new ol.source.VectorEvent(ol.source.VectorEventType.ADDFEATURE, feature));
|
new ol.source.VectorEvent(ol.source.VectorEventType.ADDFEATURE, feature));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {Array.<ol.Feature>} features Features.
|
||||||
|
*/
|
||||||
|
ol.source.Vector.prototype.addFeatures = function(features) {
|
||||||
|
this.addFeaturesInternal(features);
|
||||||
this.dispatchChangeEvent();
|
this.dispatchChangeEvent();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user