WFSLayer

WFSLayer用于基于OGC Web要素服务(WFS)创建图层。

构造函数

WFSLayer

WFSLayer用于基于OGC Web要素服务(WFS)创建图层。

new WFSLayer(properties?)

参数

返回:WFSLayer WFSLayer对象

属性

blendMode

混合模式用于将图层混合在一起,在图层中创建有趣的效果,甚至产生看起来像新图层的效果。

blendMode: "average" | "color-burn" | "color-dodge" | "color" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "invert" | "lighten" | "lighter" | "luminosity" | "minus" | "multiply" | "normal" | "overlay" | "plus" | "reflect" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "vivid-light" | "xor"

类型: "average" | "color-burn" | "color-dodge" | "color" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "invert" | "lighten" | "lighter" | "luminosity" | "minus" | "multiply" | "normal" | "overlay" | "plus" | "reflect" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "vivid-light" | "xor"

capabilities

描述图层支持的功能。

capabilities: WFSLayerCapabilities

customParameters

附加到图层获取的所有资源URL的自定义参数列表。

customParameters: any

类型: any

dateFieldsTimeZone

存储日期的时区。

dateFieldsTimeZone: string

类型: string

definitionExpression

用于在客户端过滤要素的SQL where子句。

definitionExpression: string

类型: string

displayField

图层主要显示字段的名称。

displayField: string

类型: string

displayFilterEnabled

指示在视图中渲染图层时是否应用图层的显示过滤器。

displayFilterEnabled: boolean

类型: boolean

displayFilterInfo

与图层关联的显示过滤器相关信息。

displayFilterInfo: DisplayFilterInfo

effect

效果提供可在图层上执行的各种滤镜功能,以实现类似于图像滤镜工作方式的不同视觉效果。

effect: Effect

类型: Effect

fieldsIndex

一个便利属性,可用于按名称对字段进行不区分大小写的查找。

fieldsIndex: FieldsIndex

类型: FieldsIndex

geometryType

图层中要素的几何类型。

geometryType: "multipoint" | "point" | "polygon" | "polyline"

类型: "multipoint" | "point" | "polygon" | "polyline"

labelsVisible

Indicates whether to display labels for this layer.

labelsVisible: boolean

类型: boolean

legendEnabled

Indicates whether the layer will be included in the legend.

legendEnabled: boolean

类型: boolean

maxPageCount

允许从服务获取整个数据集的最大查询数。

maxPageCount: number

类型: number

maxRecordCount

单个请求中可以返回的最大要素数。

maxRecordCount: number

类型: number

maxScale

图层在视图中可见的最大比例尺(最大放大级别)。

maxScale: number

类型: number

minScale

图层在视图中可见的最小比例尺(最大缩小级别)。

minScale: number

类型: number

name

WFS服务中要显示的图层名称,不包括命名空间。

name: string

类型: string

namespaceUri

图层名称的命名空间URI。

namespaceUri: string

类型: string

objectIdField

包含图层中每个要素唯一值或标识符的oid字段名称。

objectIdField: string

类型: string

outFields

要包含在每个要素中的WFS图层字段名称数组。

outFields: string[]

类型: string[]

persistenceEnabled

启用图层在地图或场景中的持久化。

persistenceEnabled: boolean

类型: boolean

refreshInterval

图层的刷新间隔(以分钟为单位)。

refreshInterval: number

类型: number

screenSizePerspectiveEnabled

在场景中对屏幕大小的点符号应用透视缩放。

screenSizePerspectiveEnabled: boolean

类型: boolean

type

type: "wfs"

类型: "wfs"

url

WFS服务的URL。

url: string

类型: string

wfsCapabilities

关于可用图层和操作的WFS服务信息。

wfsCapabilities: WFSCapabilities

访问器

elevationInfo

指定要素在垂直轴(z)上的放置方式。

get elevationInfo(): WFSLayerElevationInfo

返回: WFSLayerElevationInfo 指定要素在垂直轴(z)上的放置方式。

set elevationInfo(value: WFSLayerElevationInfoProperties): void

返回: void

featureEffect

要素效果可用于突出显示感兴趣的要素。

get featureEffect(): FeatureEffect

返回: FeatureEffect 要素效果可用于突出显示感兴趣的要素。

set featureEffect(value: FeatureEffectProperties): void

返回: void

featureReduction

Configures the method for reducing the number of features in the view.

get featureReduction(): FeatureReductionBinning | FeatureReductionCluster | FeatureReductionSelection

返回: FeatureReductionBinning | FeatureReductionCluster | FeatureReductionSelection Configures the method for reducing the number of features in the view.

set featureReduction(value: FeatureReductionBinningProperties & object | FeatureReductionClusterProperties & object | FeatureReductionSelectionProperties & object): void

返回: void

fields

An array of fields in the layer.

get fields(): Field[]

返回: Field An array of fields in the layer.

set fields(value: FieldProperties[]): void

参数

返回: void

labelingInfo

The label definition for this layer, specified as an array of

get labelingInfo(): LabelClass[]

返回: LabelClass The label definition for this layer, specified as an array of

set labelingInfo(value: LabelClassProperties[]): void

返回: void

orderBy

确定要素在视图中的绘制顺序。

get orderBy(): OrderByInfo[]

返回: OrderByInfo 确定要素在视图中的绘制顺序。

set orderBy(value: OrderByInfoProperties[]): void

返回: void

renderer

分配给图层的渲染器。

get renderer(): RendererUnion

返回: RendererUnion 分配给图层的渲染器。

set renderer(value: HeatmapRendererProperties & object | SimpleRendererProperties & object | UniqueValueRendererProperties & object): void

返回: void

spatialReference

图层的空间参考。

get spatialReference(): SpatialReference

返回: SpatialReference 图层的空间参考。

set spatialReference(value: SpatialReferenceProperties): void

返回: void

方法

createQuery

创建查询参数对象,可用于获取满足图层配置的要素。

createQuery(): Query

返回:Query

getField

返回指定字段名称的字段实例(不区分大小写)。

getField(fieldName): Field

参数

  • fieldName: string 字段名称。

返回:Field

getFieldDomain

返回与给定字段名称关联的域。

getFieldDomain(fieldName, options?): Domain

参数

返回:Domain

on

on(name, eventHandler): IHandle

参数

返回:IHandle

queryExtent

对图层执行查询并返回满足查询条件的要素范围。

queryExtent(query?, options?): Promise

参数

  • query?: QueryProperties 指定查询的属性和空间过滤器。如果未指定参数,则返回满足图层配置/过滤器的所有要素的范围和计数。
  • options?: WFSLayerQueryExtentOptions 具有以下属性的对象。

返回:Promise

queryFeatureCount

对图层执行查询并返回满足查询条件的要素数量。

queryFeatureCount(query?, options?): Promise

参数

返回:Promise

queryFeatures

对图层执行查询并在promise解析后返回要素集。

queryFeatures(query?, options?): FeatureSet

参数

返回:Promise<FeatureSet>

queryObjectIds

对图层执行查询并返回满足输入查询条件的要素对象ID数组。

queryObjectIds(query?, options?): Promise

参数

  • query?: QueryProperties 指定查询的属性和空间过滤器。如果未指定参数,则返回满足图层配置/过滤器的所有要素的对象ID。
  • options?: WFSLayerQueryObjectIdsOptions 具有以下属性的对象。

返回:Promise

refresh

获取图层的所有数据。

refresh(): void

返回:void

BIMFlux AI