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 31
Name Type Description
options Object

Options

Name Type Description
defaultStyle Object optional

Styles by default

extensions Object optional

Add properties to file root

readExtensions function optional

Reading extensions (native)

Extends

  • ol.format.GPX

Members

staticol.format.GPXExtended.SIMPLESTYLE_TAGS

Balises autorisées selon la specification "simplestyle"

constructor

Constructor (alias)

Methods

readExtensions(feature, node)

OpenLayers/Formats/GPX.js, line 348

Callback to read extensions from options : readExtensions

Name Type Description
feature *

...

node *

...

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

OpenLayers/Formats/GPX.js, line 107

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

Name Type Description
source Document | Node | ArrayBuffer | Object | String

Source.

options olx.format.ReadOptions optional

options.

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

writeFeatures(features, options){String}

OpenLayers/Formats/GPX.js, line 174

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.