From 4c9463cdccf772dc35dcb4fcc912037ab8e4c0e0 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 27 May 2014 14:13:55 +0200 Subject: [PATCH 1/3] Export ol.format.OSMXML#readFeatures --- src/ol/format/osmxmlformat.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ol/format/osmxmlformat.js b/src/ol/format/osmxmlformat.js index 987401104e..888b1daf52 100644 --- a/src/ol/format/osmxmlformat.js +++ b/src/ol/format/osmxmlformat.js @@ -180,6 +180,17 @@ ol.format.OSMXML.NODE_PARSERS_ = ol.xml.makeParsersNS( }); +/** + * Read all features from an OSM source. + * + * @function + * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @return {Array.} Features. + * @todo api + */ +ol.format.OSMXML.prototype.readFeatures; + + /** * @inheritDoc */ From 2bd1234359fbe16ab388758d8eb6ca49ac0ad11d Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 27 May 2014 14:17:45 +0200 Subject: [PATCH 2/3] Export ol.format.OSMXML#readProjection --- src/ol/format/osmxmlformat.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ol/format/osmxmlformat.js b/src/ol/format/osmxmlformat.js index 888b1daf52..80655c0cdc 100644 --- a/src/ol/format/osmxmlformat.js +++ b/src/ol/format/osmxmlformat.js @@ -209,6 +209,17 @@ ol.format.OSMXML.prototype.readFeaturesFromNode = function(node) { }; +/** + * Read the projection from an OSM source. + * + * @function + * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @return {ol.proj.Projection} Projection. + * @todo api + */ +ol.format.OSMXML.prototype.readProjection; + + /** * @inheritDoc */ From 8db43a969ba25181bb8b68e3a535d8b663364732 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 27 May 2014 15:05:34 +0200 Subject: [PATCH 3/3] Fix formating issue in doc --- externs/olx.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index 2302efb277..797c2e8c8d 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -1208,7 +1208,7 @@ olx.format.GMLOptions.prototype.srsName; /** * Write gml:Surface instead of gml:Polygon elements. This also affects the - * elements in multi-part geometries. Default is `false´. + * elements in multi-part geometries. Default is `false`. * @type {boolean|undefined} */ olx.format.GMLOptions.prototype.surface; @@ -1216,7 +1216,7 @@ olx.format.GMLOptions.prototype.surface; /** * Write gml:Curve instead of gml:LineString elements. This also affects the - * elements in multi-part geometries. Default is `false´. + * elements in multi-part geometries. Default is `false`. * @type {boolean|undefined} */ olx.format.GMLOptions.prototype.curve; @@ -1224,7 +1224,7 @@ olx.format.GMLOptions.prototype.curve; /** * Write gml:MultiCurve instead of gml:MultiLineString. Since the latter is - * deprecated in GML 3, the default is `true´. + * deprecated in GML 3, the default is `true`. * @type {boolean|undefined} */ olx.format.GMLOptions.prototype.multiCurve; @@ -1232,7 +1232,7 @@ olx.format.GMLOptions.prototype.multiCurve; /** * Write gml:multiSurface instead of gml:MultiPolygon. Since the latter is - * deprecated in GML 3, the default is `true´. + * deprecated in GML 3, the default is `true`. * @type {boolean|undefined} */ olx.format.GMLOptions.prototype.multiSurface;