FeaturesetFeatureId class
Identifies a feature in a featureset.
Knowing the feature identifier allows to set the feature states to a particular feature, see MapboxMap/setFeatureState(featureset:featureId:state:callback:)
.
In a featureset a feature can come from different underlying sources. In that case their IDs are not guaranteed to be unique in the featureset.
The FeaturesetFeatureId/namespace
is used to disambiguate from which source the feature is coming.
- Warning: There is no guarantee of identifier persistency. This depends on the underlying source of the features and may vary from style to style. If you want to store the identifiers persistently, please make sure that the style or source provides this guarantee.
Constructors
- FeaturesetFeatureId.new({required String id, String? namespace})
Properties
Methods
-
encode(
) → Object -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode(
Object result) → FeaturesetFeatureId