Merge pull request #2123 from fredj/export-osmxml

Export ol.format.OSMXML#readFeatures and ol.format.OSMXML#readProjection
This commit is contained in:
Frédéric Junod
2014-05-27 15:40:35 +02:00
2 changed files with 26 additions and 4 deletions

View File

@@ -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.<ol.Feature>} Features.
* @todo api
*/
ol.format.OSMXML.prototype.readFeatures;
/**
* @inheritDoc
*/
@@ -198,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
*/