Class: CzmlLayer

CzmlLayer

CzmlLayer 图层,用于加载显示 CzmlLayer 格式数据。

const layer = new CzmlLayer({
    url: `/zjgapi/examples/czml/simple.czml`
  }).addToViewer(this.$viewer);

new CzmlLayer(options)

layer/CzmlLayer.js, line 21
Name Type Description
options LayerOptions

图层可选参数

Name Type Description
url String | Object

CZML 的资源路径或 CZML 对象。

loadOptions Object

CzmlDataSource#load() 的加载可选选项

Extends

  • Layer

Classes

CzmlLayer

Methods

eachOverlay(method, context){Layer}

layer/CzmlLayer.js, line 56

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

Name Type Description
method function

回调函数

context *

上下文环境

Returns:
Type Description
Layer Layer