Class FeatureStateSelector
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
The features whose state to set, read, or remove.
public sealed record FeatureStateSelector : IEquatable<FeatureStateSelector>
- Inheritance
-
FeatureStateSelector
- Implements
- Inherited Members
Remarks
See mln_feature_state_selector in the C API reference.
Properties
FeatureId
The feature's ID. Setting or reading state needs it. Without it,
MapHandle.RemoveFeatureStateAsync() removes the state of every
feature in the source layer.
public FeatureId? FeatureId { get; init; }
Property Value
SourceId
public required string SourceId { get; init; }
Property Value
SourceLayerId
The source layer, for a vector source. Empty for other sources.
public string SourceLayerId { get; init; }
Property Value
StateKey
The one key that MapHandle.RemoveFeatureStateAsync() removes. It
needs feature_id. Empty removes every key.
public string StateKey { get; init; }