Module: ol/format/GeoJSON

ol/format/GeoJSON


Classes

GeoJSON

Type Definitions

GeoJSONGeometryCollection{module:geojson~GeoJSON}

Options{Object}

Properties:
Name Type Argument Default Description
dataProjection ProjectionLike <optional>
'EPSG:4326'

Default data projection.

featureProjection ProjectionLike <optional>

Projection for features read or written by the format. Options passed to read or write methods will take precedence.

geometryName string <optional>

Geometry name to use when creating features.

extractGeometryName boolean <optional>
false

Certain GeoJSON providers include the geometry_name field in the feature GeoJSON. If set to true the GeoJSON reader will look for that field to set the geometry name. If both this field is set to true and a geometryName is provided, the geometryName will take precedence.