Merge pull request #4916 from fredj/writeFeatureObject_return
Fix ol.format.GeoJSON#writeFeatureObject return type
This commit is contained in:
@@ -518,14 +518,13 @@ ol.format.GeoJSON.prototype.writeFeature;
|
|||||||
*
|
*
|
||||||
* @param {ol.Feature} feature Feature.
|
* @param {ol.Feature} feature Feature.
|
||||||
* @param {olx.format.WriteOptions=} opt_options Write options.
|
* @param {olx.format.WriteOptions=} opt_options Write options.
|
||||||
* @return {GeoJSONObject} Object.
|
* @return {GeoJSONFeature} Object.
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.format.GeoJSON.prototype.writeFeatureObject = function(
|
ol.format.GeoJSON.prototype.writeFeatureObject = function(feature, opt_options) {
|
||||||
feature, opt_options) {
|
|
||||||
opt_options = this.adaptOptions(opt_options);
|
opt_options = this.adaptOptions(opt_options);
|
||||||
|
|
||||||
var object = /** @type {GeoJSONObject} */ ({
|
var object = /** @type {GeoJSONFeature} */ ({
|
||||||
'type': 'Feature'
|
'type': 'Feature'
|
||||||
});
|
});
|
||||||
var id = feature.getId();
|
var id = feature.getId();
|
||||||
|
|||||||
Reference in New Issue
Block a user