new ol.format.GPX() experimental
Extends
Methods
-
readFeature(source){ol.Feature} experimental
-
Read the first feature from a GPX source.
Name Type Description sourceArrayBuffer | Document | Node | Object | string Source.
Returns:
Feature.
-
readFeatures(source){Array.<ol.Feature>} experimental
-
Read all features from a GPX source.
Name Type Description sourceArrayBuffer | Document | Node | Object | string Source.
Returns:
Features.
-
readProjection(source){ol.proj.Projection} experimental
-
Read the projection from a GPX source.
Name Type Description sourceArrayBuffer | Document | Node | Object | string Source.
Returns:
Projection.
-
writeFeatures(features){ArrayBuffer|Node|Object|string} experimental
-
Encode an array of features in the GPX format.
Name Type Description featuresArray.<ol.Feature> Features.
Returns:
Result.
OpenLayers 3