new TopoJSON
Stability: experimental
Parameters:
| Name | Type | Argument | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
options |
olx.format.TopoJSONOptions |
<optional> |
Options. Properties
|
- Source:
- topojsonformat.js, line 24
Extends
- ol.format.JSONFeature
Methods
-
readFeatures
Stability: experimental -
Read all features from a TopoJSON source.
Parameters:
Name Type Description sourceArrayBuffer | 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 objectArrayBuffer | Document | Node | Object | string Source.
- Source:
- topojsonformat.js, line 386
Returns:
Projection.
- Type
- ol.proj.Projection
OpenLayers 3