OpenLayers v4.0.1 API - Class: TopoJSON

# Class: TopoJSON

This documentation is for OpenLayers v4.0.1. The latest is v.

## ol.format.TopoJSON

Feature format for reading data in the TopoJSON format.

#### new ol.format.TopoJSON(opt_options)

src/ol/format/topojson.js, line 26

  Name | Type | Description
  --- | --- | ---

  `options`

  Options.

  Name | Type | Description
  --- | --- | ---
  `defaultDataProjection` | ol.ProjectionLike | Default data projection. Default is `EPSG:4326`.

### Extends

- ol.format.JSONFeature

### Members

#### readProjection

  Read the projection from a TopoJSON source.

### Methods

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

src/ol/format/topojson.js, line 264

  Read all features from a TopoJSON source.

  Name | Type | Description
  --- | --- | ---
  `source` | Document | Node | Object | string | Source.

  ##### Returns:

  Features.