From 97e59f0976e184fbbcaf96b687b9363f95e48b8e Mon Sep 17 00:00:00 2001 From: tsauerwein Date: Wed, 2 Jul 2014 13:48:51 +0200 Subject: [PATCH] Export ol.format.GeoJSON.writeGeometry() --- src/ol/format/geojsonformat.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/ol/format/geojsonformat.js b/src/ol/format/geojsonformat.js index f777f5d0f1..759a9e6531 100644 --- a/src/ol/format/geojsonformat.js +++ b/src/ol/format/geojsonformat.js @@ -449,7 +449,7 @@ ol.format.GeoJSON.prototype.readProjection = function(object) { * * @function * @param {ol.Feature} feature Feature. - * @return {ArrayBuffer|Node|Object|string} Result. + * @return {ArrayBuffer|Node|Object|string} GeoJSON. * @todo api */ ol.format.GeoJSON.prototype.writeFeature; @@ -485,7 +485,7 @@ ol.format.GeoJSON.prototype.writeFeatureObject = function(feature) { * * @function * @param {Array.} features Features. - * @return {ArrayBuffer|Node|Object|string} Result. + * @return {ArrayBuffer|Node|Object|string} GeoJSON. * @todo api */ ol.format.GeoJSON.prototype.writeFeatures; @@ -507,6 +507,17 @@ ol.format.GeoJSON.prototype.writeFeaturesObject = function(features) { }; +/** + * Encode a geometry as GeoJSON. + * + * @function + * @param {ol.geom.Geometry} geometry Geometry. + * @return {ArrayBuffer|Node|Object|string} GeoJSON. + * @todo api + */ +ol.format.GeoJSON.prototype.writeGeometry; + + /** * @inheritDoc */