Merge pull request #7863 from fredj/rm_forEachFeature
Add note about null geom in VectorSource.forEachFeature
This commit is contained in:
@@ -487,6 +487,7 @@ VectorSource.prototype.clear = function(opt_fast) {
|
|||||||
* Iterate through all features on the source, calling the provided callback
|
* Iterate through all features on the source, calling the provided callback
|
||||||
* with each one. If the callback returns any "truthy" value, iteration will
|
* with each one. If the callback returns any "truthy" value, iteration will
|
||||||
* stop and the function will return the same value.
|
* 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
|
* @param {function(module:ol/Feature~Feature): T} callback Called with each feature
|
||||||
* on the source. Return a truthy value to stop iteration.
|
* on the source. Return a truthy value to stop iteration.
|
||||||
|
|||||||
Reference in New Issue
Block a user