Geoportal Extension for OpenLayers API Reference

Class: GPXExtended

ol.format.GPXExtended

Extended Styles GPX format to export (internal use only !)

SPEC
cf. https://www.topografix.com/gpx.asp

new GPXExtended(options)

OpenLayers/Formats/GPX.js, line 29
Name Type Description
options Object

Options

Name Type Description
defaultStyle Object optional

Styles by default

orderBy String optional

Sort by key the feature before writing. By default, no sorting

extensions Object optional

Add properties to file root

readExtensions function optional

Reading extensions (native)

Extends

  • ol.format.GPX

Members

constructor

Constructor (alias)

Methods

readExtensions(feature, node)

OpenLayers/Formats/GPX.js, line 237

Callback to read extensions from options : readExtensions

Name Type Description
feature *

...

node *

...

readFeatures(source, options){Array.<ol.Feature>}

OpenLayers/Formats/GPX.js, line 93

Read Extend Styles for Features.
This function overloads ol.format.GPX.readFeatures ...

Name Type Description
source Document | Node

Source.

options olx.format.ReadOptions optional

options.

See:
  • ol.format.GPX.prototype.readFeatures

readRootExtensions(key){Object}

OpenLayers/Formats/GPX.js, line 289

...

Name Type Description
key *

...

TODO

writeFeatures(features, options){String}

OpenLayers/Formats/GPX.js, line 142

Write Extend Styles for Features.
This function overloads ol.format.GPX.writeFeatures ...

Name Type Description
features Array.<Object>

Features.

options Object

Options.

See:
  • ol.format.GPX.prototype.writeFeatures
Returns:
or null.