Class: GeoJsonLayer

GeoJsonLayer

用于展示格式为 geojson 的三维图元

new GeoJsonLayer()

layer/GeoJsonLayer.js, line 28

Extends

  • Layer

Classes

GeoJsonLayer
GeoJsonLayer

Methods

eachOverlay(method, context){Layer}

layer/GeoJsonLayer.js, line 90

遍历每个 Overlay 并将其作为参数传递给回调函数

Name Type Description
method function

回调函数

context *

上下文环境

Returns:
Type Description
Layer

toModelLayer(){EntityLayer}

layer/GeoJsonLayer.js, line 126

转换为 Model 对应的 EntityLayer

Returns:
Type Description
EntityLayer

toVectorLayer(){EntityLayer}

layer/GeoJsonLayer.js, line 107

转换为 EntityLayer

Returns:
Type Description
EntityLayer

GeoJsonLayer GeoJsonLayer

用于展示格式为 geojson 的三维图元

new GeoJsonLayer(options)

layer/GeoJsonLayer.js, line 28
Name Type Description
options LayerOptions

图层可选参数

Name Type Description
url String

数据源路径

params Object

其他属性设置

Extends

  • Layer

Classes

GeoJsonLayer
GeoJsonLayer

Methods

eachOverlay(method, context){Layer}

layer/GeoJsonLayer.js, line 90

遍历每个 Overlay 并将其作为参数传递给回调函数

Name Type Description
method function

回调函数

context *

上下文环境

Returns:
Type Description
Layer

toModelLayer(){EntityLayer}

layer/GeoJsonLayer.js, line 126

转换为 Model 对应的 EntityLayer

Returns:
Type Description
EntityLayer

toVectorLayer(){EntityLayer}

layer/GeoJsonLayer.js, line 107

转换为 EntityLayer

Returns:
Type Description
EntityLayer