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)

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

Methods

readExtensions(feature, node)

Formats/GPX.js, line 226

Callback to read extensions from options : readExtensions

Name Type Description
feature *

...

node *

...

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

Formats/GPX.js, line 82

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}

Formats/GPX.js, line 278

...

Name Type Description
key *

...

TODO

writeFeatures(features, options){String}

Formats/GPX.js, line 131

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.

writeRootExtensions_(doc, extensions, xml)

Formats/GPX.js, line 323

...

Name Type Default Description
doc *

...

extensions *

...

xml Boolean false optional

write tag xml or json