Add note about null geom in VectorSource.forEachFeature

This commit is contained in:
Frederic Junod
2018-04-13 13:21:49 +02:00
parent 568b3d3559
commit 25af37bbd3

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.