ol.format.TopoJSON

new TopoJSON

Stability: experimental
Parameters:
Name Type Argument Description
options olx.format.TopoJSONOptions <optional>

Options.

Properties
Name Type Description
defaultProjection ol.proj.ProjectionLike

Default projection.

Source:
  • topojsonformat.js, line 24

Extends

  • ol.format.JSONFeature

Methods

readFeatures

Stability: experimental

Read all features from a TopoJSON source.

Parameters:
Name Type Description
source ArrayBuffer | Document | Node | Object | string

Source.

Source:
  • topojsonformat.js, line 276
Returns:

Features.

Type
Array.<ol.Feature>

readProjection

Stability: experimental

Read the projection from a TopoJSON source.

Parameters:
Name Type Description
object ArrayBuffer | Document | Node | Object | string

Source.

Source:
  • topojsonformat.js, line 386
Returns:

Projection.

Type
ol.proj.Projection