GeoJSONLayer

GeoJSONLayer类用于基于GeoJSON创建图层。

构造函数

GeoJSONLayer

GeoJSONLayer类用于基于GeoJSON创建图层。

new GeoJSONLayer(properties?)

参数

返回:GeoJSONLayer GeoJSONLayer对象

属性

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: GeoJSONLayerCapabilities

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

editingEnabled

指示图层是否可编辑。

editingEnabled: boolean

类型: boolean

effect

提供可应用于图层的各种滤镜效果,类似于图像滤镜的工作方式。

effect: Effect

类型: Effect

fieldsIndex

用于按名称进行不区分大小写字段查找的便捷属性。

fieldsIndex: FieldsIndex

类型: FieldsIndex

geometryType

图层中要素的几何类型。

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

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

hasZ

指示图层中客户端要素是否具有Z(高程)值。

hasZ: boolean

类型: boolean

isTable

Returns true if the layer is loaded from a non-spatial table in a service.

isTable: boolean

类型: boolean

labelsVisible

指示是否为此图层显示标注。

labelsVisible: boolean

类型: boolean

legendEnabled

指示图层是否包含在图例中。

legendEnabled: boolean

类型: boolean

maxScale

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

maxScale: number

类型: number

minScale

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

minScale: number

类型: number

objectIdField

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

objectIdField: string

类型: string

outFields

从GeoJSON文件中包含在每个要素中的字段名称数组。

outFields: string[]

类型: string[]

persistenceEnabled

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

persistenceEnabled: boolean

类型: boolean

refreshInterval

图层的刷新间隔(分钟)。

refreshInterval: number

类型: number

screenSizePerspectiveEnabled

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

screenSizePerspectiveEnabled: boolean

类型: boolean

type

type: "geojson"

类型: "geojson"

url

GeoJSON文件的URL。

url: string

类型: string

useViewTime

确定图层是否根据视图的时间范围更新其时态数据。

useViewTime: boolean

类型: boolean

访问器

elevationInfo

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

get elevationInfo(): GeoJSONLayerElevationInfo

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

set elevationInfo(value: GeoJSONLayerElevationInfoProperties): void

返回: void

featureEffect

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

get featureEffect(): FeatureEffect

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

set featureEffect(value: FeatureEffectProperties): void

返回: void

featureReduction

配置减少视图中要素数量的方法。

get featureReduction(): FeatureReductionBinning | FeatureReductionCluster | FeatureReductionSelection

返回: FeatureReductionBinning | FeatureReductionCluster | FeatureReductionSelection 配置减少视图中要素数量的方法。

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

返回: void

fields

图层中的字段数组。

get fields(): Field[]

返回: Field 图层中的字段数组。

set fields(value: FieldProperties[]): void

参数

返回: void

labelingInfo

此图层的标注定义,指定为标注类数组。

get labelingInfo(): LabelClass[]

返回: LabelClass 此图层的标注定义,指定为标注类数组。

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

方法

applyEdits

对图层中的要素应用编辑操作。

applyEdits(edits): Promise

参数

返回:Promise

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

参数

返回:Promise

queryFeatureCount

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

queryFeatureCount(query?, options?): Promise

参数

返回:Promise

queryFeatures

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

queryFeatures(query?, options?): FeatureSet

参数

返回:Promise<FeatureSet>

queryObjectIds

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

queryObjectIds(query?, options?): Promise

参数

返回:Promise

refresh

获取图层的所有数据。

refresh(): void

返回:void

BIMFlux AI