From 916127d8f69eb163bf354ad8124a7797cbbdae98 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 25 Feb 2016 10:09:37 +0100 Subject: [PATCH] Fix ol.format.GeoJSON#writeFeatureObject return type --- src/ol/format/geojsonformat.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ol/format/geojsonformat.js b/src/ol/format/geojsonformat.js index 3c09b3e1cb..dcb6881cca 100644 --- a/src/ol/format/geojsonformat.js +++ b/src/ol/format/geojsonformat.js @@ -518,14 +518,13 @@ ol.format.GeoJSON.prototype.writeFeature; * * @param {ol.Feature} feature Feature. * @param {olx.format.WriteOptions=} opt_options Write options. - * @return {GeoJSONObject} Object. + * @return {GeoJSONFeature} Object. * @api stable */ -ol.format.GeoJSON.prototype.writeFeatureObject = function( - feature, opt_options) { +ol.format.GeoJSON.prototype.writeFeatureObject = function(feature, opt_options) { opt_options = this.adaptOptions(opt_options); - var object = /** @type {GeoJSONObject} */ ({ + var object = /** @type {GeoJSONFeature} */ ({ 'type': 'Feature' }); var id = feature.getId();