Class: TopoJSON

ol.format.TopoJSON

Feature format for reading and writing data in the TopoJSON format.

new ol.format.TopoJSON(opt_options)

Name Type Description
options

Options.

Name Type Description
defaultDataProjection ol.proj.ProjectionLike

Default data projection.

Extends

Methods

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

Read all features from a TopoJSON source.

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

Source.

Returns:
Features.

Read the projection from a TopoJSON source.

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

Source.

Returns:
Projection.