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

Options

Name Type Description
defaultStyle Object

Styles by default

readExtensions function

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 340

Callback to read extensions from options : readExtensions

Name Type Description
feature *

...

node *

...

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

OpenLayers/Formats/GPX.js, line 98

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 165

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