diff --git a/src/ol/source/vectorsource.exports b/src/ol/source/vectorsource.exports index cc76d95621..1b55238538 100644 --- a/src/ol/source/vectorsource.exports +++ b/src/ol/source/vectorsource.exports @@ -1,5 +1,6 @@ @exportSymbol ol.source.Vector @exportProperty ol.source.Vector.prototype.addFeature +@exportProperty ol.source.Vector.prototype.addFeatures @exportProperty ol.source.Vector.prototype.getClosestFeatureToCoordinate @exportProperty ol.source.Vector.prototype.forEachFeature @exportProperty ol.source.Vector.prototype.getAllFeatures diff --git a/src/ol/source/vectorsource.js b/src/ol/source/vectorsource.js index 2e4b3240b2..b5e9df9e1b 100644 --- a/src/ol/source/vectorsource.js +++ b/src/ol/source/vectorsource.js @@ -102,6 +102,14 @@ ol.source.Vector.prototype.addFeatureInternal = function(feature) { } this.dispatchEvent( new ol.source.VectorEvent(ol.source.VectorEventType.ADDFEATURE, feature)); +}; + + +/** + * @param {Array.