From b5a3e90bb4a7580eb9cc6f720a67afbd6b53ca3f Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 21 Aug 2014 12:36:51 +0200 Subject: [PATCH] Update ol.format.GeoJSON#readFeature documentation An error is only thrown in development mode: goog.asserts.assert are removed by the compiler. --- src/ol/format/geojsonformat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.