跳到主要内容

flywave-mapview.datasource.setfeaturestate

Home > @flywave/flywave-mapview > DataSource > setFeatureState

DataSource.setFeatureState() method

Sets the state of the given feature id.

dataSource.setFeatureState(featureId, { enabled: true });

Signature:

setFeatureState(featureId: number | string, state: ValueMap): void;

Parameters

Parameter

Type

Description

featureId

number | string

The id of the feature. Id numbers are deprecated in favor of strings.

state

ValueMap

The new state of the feature.

Returns:



void