Struct RenderedFeature
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
A feature that a rendered feature query found.
public readonly record struct RenderedFeature : IEquatable<RenderedFeature>
- Implements
- Inherited Members
Remarks
See mln_rendered_feature in the C API reference.
Constructors
RenderedFeature(string, string, string, string, string)
A feature that a rendered feature query found.
public RenderedFeature(string Feature, string LayerId, string SourceId, string SourceLayerId, string State)
Parameters
FeaturestringThe feature, as a GeoJSON feature.
LayerIdstringThe layer that drew the feature.
SourceIdstringSourceLayerIdstringThe feature's source layer, or empty when its source has none.
StatestringThe feature's state, as a JSON object.
Remarks
See mln_rendered_feature in the C API reference.
Properties
Feature
The feature, as a GeoJSON feature.
public string Feature { get; init; }
Property Value
LayerId
The layer that drew the feature.
public string LayerId { get; init; }
Property Value
SourceId
public string SourceId { get; init; }
Property Value
SourceLayerId
The feature's source layer, or empty when its source has none.
public string SourceLayerId { get; init; }
Property Value
State
The feature's state, as a JSON object.
public string State { get; init; }