Geoportal Extension for OpenLayers
API Reference

Class: GeoJSONExtended

ol.format.GeoJSONExtended

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

SPEC
cf. https://github.com/mapbox/simplestyle-spec/
cf. https://geojson.org/

new GeoJSONExtended(options)

Formats/GeoJSON.js, line 24
Name Type Description
options Object

Options

Name Type Description
defaultStyle Object optional

Styles by default

extensions Object optional

Add properties to file root

Extends

  • ol.format.GeoJSON

Methods

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

Formats/GeoJSON.js, line 65

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

Name Type Description
source Object | String

Source.

options olx.format.ReadOptions optional

Options.

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

readRootExtensions(key){Object}

Formats/GeoJSON.js, line 141

...

Name Type Description
key *

...

writeFeatures(features, options){String}

Formats/GeoJSON.js, line 117

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

Name Type Description
features Array.<ol.Feature>

Features.

options Object optional

Options.

See:
  • ol.format.GeoJSON.prototype.writeFeatures