ImageryLayerFeatureInfo

new Cesium.ImageryLayerFeatureInfo()

描述影像图层中的栅格化要素,例如点、面、折线等。

Members

获取或设置描述特征的原始数据。 原始数据可以是任何 格式数量,例如 GeoJSON、KML 等。

description : string|undefined

获取或设置功能的 HTML 说明。 HTML 不受信任,应该 在向用户显示之前进行消毒。

imageryLayer : object|undefined

获取或设置image layer of the feature.
获取或设置要素的名称。
获取或设置特征的位置,如果位置未知,则为 undefined。

Methods

configureDescriptionFromProperties(properties)

通过创建属性及其值的 HTML 表格来配置此功能的描述。
Name Type Description
properties object 包含功能属性的对象文本。

configureNameFromProperties(properties)

通过选择适当的属性来配置此功能的名称。 该名称将从 以下来源之一,按此顺序排列:1) 名称为 'name' 的属性,2) 名称为 'title' 的属性, 3) 第一个属性包含单词 'name',4) 第一个属性包含单词 'title'。 如果 无法从任何这些来源获得名称,现有名称将保持不变。
Name Type Description
properties object 包含功能属性的对象文本。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.