diff --git a/src/ol/geom/flat/containsflatgeom.js b/src/ol/geom/flat/containsflatgeom.js index cb1f4401f0..18324dc256 100644 --- a/src/ol/geom/flat/containsflatgeom.js +++ b/src/ol/geom/flat/containsflatgeom.js @@ -16,6 +16,7 @@ ol.geom.flat.contains.linearRingContainsExtent = function(flatCoordinates, offse var outside = ol.extent.forEachCorner(extent, /** * @param {ol.Coordinate} coordinate Coordinate. + * @return {boolean} Contains (x, y). */ function(coordinate) { return !ol.geom.flat.contains.linearRingContainsXY(flatCoordinates, diff --git a/src/ol/interaction/selectinteraction.js b/src/ol/interaction/selectinteraction.js index 628a6c1c80..1abe851f69 100644 --- a/src/ol/interaction/selectinteraction.js +++ b/src/ol/interaction/selectinteraction.js @@ -285,6 +285,7 @@ ol.interaction.Select.handleEvent = function(mapBrowserEvent) { /** * @param {ol.Feature|ol.render.Feature} feature Feature. * @param {ol.layer.Layer} layer Layer. + * @return {boolean|undefined} Continue to iterate over the features. */ function(feature, layer) { if (this.filter_(feature, layer)) { diff --git a/src/ol/source/vectorsource.js b/src/ol/source/vectorsource.js index 9a3352726c..21e2112775 100644 --- a/src/ol/source/vectorsource.js +++ b/src/ol/source/vectorsource.js @@ -511,7 +511,7 @@ ol.source.Vector.prototype.forEachFeatureIntersectingExtent = function(extent, c return this.forEachFeatureInExtent(extent, /** * @param {ol.Feature} feature Feature. - * @return {S|undefined} + * @return {S|undefined} The return value from the last call to the callback. * @template S */ function(feature) {