Merge pull request #7863 from fredj/rm_forEachFeature

Add note about null geom in VectorSource.forEachFeature
This commit is contained in:
Frédéric Junod
2018-04-13 14:16:23 +02:00
committed by GitHub

View File

@@ -487,6 +487,7 @@ VectorSource.prototype.clear = function(opt_fast) {
* Iterate through all features on the source, calling the provided callback
* with each one. If the callback returns any "truthy" value, iteration will
* stop and the function will return the same value.
* Note: this function only iterate through the feature that have a defined geometry.
*
* @param {function(module:ol/Feature~Feature): T} callback Called with each feature
* on the source. Return a truthy value to stop iteration.