diff --git a/src/ol/format/gpxformat.exports b/src/ol/format/gpxformat.exports index 82582fd4ac..ac072e55dd 100644 --- a/src/ol/format/gpxformat.exports +++ b/src/ol/format/gpxformat.exports @@ -1,3 +1,5 @@ @exportSymbol ol.format.GPX @exportProperty ol.format.GPX.prototype.readFeature @exportProperty ol.format.GPX.prototype.readFeatures +@exportProperty ol.format.GPX.prototype.readProjection +@exportProperty ol.format.GPX.prototype.writeFeatures diff --git a/src/ol/format/gpxformat.js b/src/ol/format/gpxformat.js index 9217c15719..8dbe7cdba8 100644 --- a/src/ol/format/gpxformat.js +++ b/src/ol/format/gpxformat.js @@ -363,6 +363,16 @@ ol.format.GPX.WPT_PARSERS_ = ol.xml.makeParsersNS( }); +/** + * Read the first feature from a GPX source. + * + * @function + * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @return {ol.Feature} Feature. + */ +ol.format.GPX.prototype.readFeature; + + /** * @inheritDoc */ @@ -384,6 +394,16 @@ ol.format.GPX.prototype.readFeatureFromNode = function(node) { }; +/** + * Read all features from a GPX source. + * + * @function + * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @return {Array.