FeatureLayer
Cesium v1.147 · 中文

由源数据定义的特定特征集合。它既不渲染也不设置样式。 这些特征。源格式对图层没有影响。目前,图层是由 3D Tiles 1.1 组或 GeoJSON 生成的。 不要直接创建此类图层。应通过

Cesium3DTileset#featureLayers 或 FeatureLayerProvider 来访问图层,例如 Cesium3DTileset#featureLayers or a FeatureLayerProvider, such as GeoJsonFeatureLayerProvider#featureLayers.

internal constructor new Cesium.FeatureLayer()

Experimental

This 该特征不是最终定稿,且可能根据 Cesium 的标准弃用政策发生变化。

Members

name : string|undefined

The layer name. For a 3D Tiles group, defaults to its property with the NAME semantic, then its name property, otherwise undefined.
图层是否显示。在 Cesium3DTileset 中,隐藏的图层不会被请求或渲染。包含多内容的 tiles 不受影响。 在 MVTDataProvider 中,每个 tiles 都包含所有图层,因此 tiles 仍然会被请求,只有隐藏层的特征不会渲染。 In an MVTDataProvider, each tile holds every layer, so tiles are still requested and only the hidden layer's features are not rendered.
Default Value: true
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.