Update ol.format.GeoJSON#readFeature documentation

An error is only thrown in development mode: goog.asserts.assert are removed
by the compiler.
This commit is contained in:
Frederic Junod
2014-08-21 12:36:51 +02:00
parent 55db958290
commit b5a3e90bb4

View File

@@ -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.