Merge pull request #2583 from fredj/readFeature-doc

Update ol.format.GeoJSON#readFeature documentation
This commit is contained in:
Frédéric Junod
2014-08-21 13:30:56 +02:00

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.