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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user