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

Options

Name Type Description
defaultStyle Object

Styles by default

Extends

  • ol.format.GeoJSON

Members

constructor

Constructor (alias)

Methods

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

OpenLayers/Formats/GeoJSON.js, line 69

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

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

Source.

options olx.format.ReadOptions optional

options.

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

writeFeatures(features, options){String}

OpenLayers/Formats/GeoJSON.js, line 268

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

Name Type Description
features Array.<Object>

Features.

options Object

Options.

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