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
+2 -2
View File
@@ -325,8 +325,8 @@ ol.format.GeoJSON.prototype.getExtensions = function() {
/** /**
* Read a feature from a GeoJSON Feature source. This method will throw * Read a feature from a GeoJSON Feature source. Only works for Feature,
* an error if used with a FeatureCollection source. * use `readFeatures` to read FeatureCollection source.
* *
* @function * @function
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.