English中文

ImageryLayerFeatureInfo

new Cesium.ImageryLayerFeatureInfo()

描述影像图层中的栅格化要素,例如点、多边形、折线等。 Describes a rasterized feature, such as a point, polygon, polyline, etc., in an imagery layer.

成员 Members

获取或设置描述功能的原始数据。原始数据可以是多种格式,例如 GeoJSON、KML 等。 Gets or sets the raw data describing the feature. The raw data may be in any number of formats, such as GeoJSON, KML, etc.

description : string|undefined

获取或设置功能的 HTML 描述。 HTML 不受信任,应在向用户显示之前进行清理。 Gets or sets an HTML description of the feature. The HTML is not trusted and should be sanitized before display to the user.

imageryLayer : object|undefined

获取或设置要素的图像图层。 Gets or sets the image layer of the feature.
获取或设置功能的名称。 Gets or sets the name of the feature.
获取或设置要素的位置,如果位置未知,则未定义。 Gets or sets the position of the feature, or undefined if the position is not known.

方法 Methods

configureDescriptionFromProperties(properties)

通过创建属性及其值的 HTML 表来配置此功能的描述。 Configures the description of this feature by creating an HTML table of properties and their values.
名称 Name 类型 Type 说明 Description
properties object 包含功能属性的对象文字。 An object literal containing the properties of the feature.

configureNameFromProperties(properties)

通过选择适当的属性来配置此功能的名称。名称将从以下来源之一获取,按此顺序:1) 名称为“name”的属性,2) 名称为“title”的属性,3) 第一个包含单词“name”的属性,4) 第一个包含单词“title”的属性。如果无法从任何这些来源获取该名称,则现有名称将保持不变。 Configures the name of this feature by selecting an appropriate property. The name will be obtained from one of the following sources, in this order: 1) the property with the name 'name', 2) the property with the name 'title', 3) the first property containing the word 'name', 4) the first property containing the word 'title'. If the name cannot be obtained from any of these sources, the existing name will be left unchanged.
名称 Name 类型 Type 说明 Description
properties object 包含功能属性的对象文字。 An object literal containing the properties of the feature.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.