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)

OpenLayers/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

Members

constructor

Constructor (alias)

Methods

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

OpenLayers/Formats/GeoJSON.js, line 74

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}

OpenLayers/Formats/GeoJSON.js, line 150

...

Name Type Description
key *

...

writeFeatures(features, options){String}

OpenLayers/Formats/GeoJSON.js, line 126

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