Merge pull request #4916 from fredj/writeFeatureObject_return

Fix ol.format.GeoJSON#writeFeatureObject return type
This commit is contained in:
Frédéric Junod
2016-02-25 10:22:28 +01:00

View File

@@ -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();