TDTLayer

BaseLayer. TDTLayer

天地图在线服务加载

Constructor

new TDTLayer(viewer, opt, layerName, crs)

Parameters:
Name Type Attributes Default Description
viewer Cesium.Viewer 地图viewer对象
opt Object 基础配置
Properties
Name Type Attributes Description
keys String | Array.<String> <optional>
天地图服务密钥(需在天地图官网申请)
layerName String 天地图图层名称(vec(矢量底图)/ cva(矢量注记)/ img(影像底图)/ ter(地形晕渲)cta(地形注记)/ ibo(全球境界)/ eva(矢量英文注记)/ eia(影像英文注记))
crs String | Number 坐标系EPSG(4326/3857)
opt.minimumLevel Number 地图服务最小层级
opt.maximumLevel Number 地图服务最大层级
opt.tileWidth Number <optional>
256 服务切片宽度
opt.tileHeight Number <optional>
256 服务切片高度
opt.enablePickFeatures Boolean <optional>
true 是否可通过鼠标拾取元素

Extends

Members

_layer

Overrides:
Properties:
Name Type Description
layer Cesium.ImageryLayer 图层

_provider

Overrides:
Properties:
Name Type Description
provider Cesium.ImageryProvider 图层

id

Overrides:
Properties:
Name Type Description
id String | Number 图层id

imageryLayerAttr

Overrides:
Properties:
Name Type Description
imageryLayerAttr Object imageryLayer相关配置

providerAttr

Overrides:
Properties:
Name Type Description
providerAttr Object provider相关配置

type

Properties:
Name Type Description
type String 类型

Methods

hide()

Description:
  • 隐藏
Overrides:

load()

Description:
  • 加载
Overrides:

remove()

Description:
  • 移除
Overrides:

setAlpha(alpha)

Description:
  • 设置透明度
Overrides:
Parameters:
Name Type Description
alpha Number 透明度(0~1)

setVisible(visible)

Overrides:
Parameters:
Name Type Description
visible Boolean 是否显示

show()

Description:
  • 展示
Overrides:

zoomTo()

Description:
  • 缩放至图层
Overrides: