Module: ol/format/TopoJSON

ol/format/TopoJSON


Classes

TopoJSON

Type Definitions

Options{Object}

Properties:
Name Type Description
dataProjection ProjectionLike
(defaults to 'EPSG:4326')

默认数据投影。

layerName string | undefined

将 TopoJSON 拓扑 objects 子项的名称设置为 具有指定名称的要素属性。这意味着当设置为 'layer' 时, 像这样的拓扑

{
  "type": "Topology",
  "objects": {
    "example": {
      "type": "GeometryCollection",
      "geometries": []
    }
  }
}

将导致要素具有一个设置为 'example''layer' 属性。 未设置时,不会向要素添加任何属性。

layers Array.<string> | undefined

要从中读取要素的 TopoJSON 拓扑 objects 子项的名称。 如果未提供,将从所有子项中读取要素。

TopoJSONMultiPolygon{module:topojson-specification~Topology}