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