diff --git a/src/ol/format/geojsonformat.js b/src/ol/format/geojsonformat.js index 8f7d03007c..cee35613ff 100644 --- a/src/ol/format/geojsonformat.js +++ b/src/ol/format/geojsonformat.js @@ -325,8 +325,8 @@ ol.format.GeoJSON.prototype.getExtensions = function() { /** - * Read a feature from a GeoJSON Feature source. This method will throw - * an error if used with a FeatureCollection source. + * Read a feature from a GeoJSON Feature source. Only works for Feature, + * use `readFeatures` to read FeatureCollection source. * * @function * @param {ArrayBuffer|Document|Node|Object|string} source Source.