Fix ol.format.GeoJSON#writeFeatureObject return type

This commit is contained in:
Frederic Junod
2016-02-25 10:09:37 +01:00
parent b19aa01b72
commit 916127d8f6
+3 -4
View File
@@ -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();