Class: TopoJSON

ol.format.TopoJSON

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

new ol.format.TopoJSON(opt_options)

src/ol/format/topojsonformat.js, line 27
Name Type Description
options

Options.

Name Type Description
defaultDataProjection ol.proj.ProjectionLike

Default data projection.

Extends

Methods

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

src/ol/format/topojsonformat.js, line 282

Read all features from a TopoJSON source.

Name Type Description
source Document | Node | Object | string

Source.

Returns:
Features.

readProjection(object){ol.proj.Projection}

src/ol/format/topojsonformat.js, line 393

Read the projection from a TopoJSON source.

Name Type Description
object Document | Node | Object | string

Source.

Returns:
Projection.