Class DynamicSourceHit
- Namespace
- EncDotNet.S100.Renderers.Mapsui.DynamicSources
- Assembly
- EncDotNet.S100.Renderers.Mapsui.dll
A single dynamic-feature hit returned by HitTest(MPoint, double). Carries the owning source and the picked feature so a host can resolve display metadata.
public sealed record DynamicSourceHit : IEquatable<DynamicSourceHit>
- Inheritance
-
DynamicSourceHit
- Implements
- Inherited Members
Constructors
DynamicSourceHit(IDynamicFeatureSource, DynamicFeature, double)
A single dynamic-feature hit returned by HitTest(MPoint, double). Carries the owning source and the picked feature so a host can resolve display metadata.
public DynamicSourceHit(IDynamicFeatureSource Source, DynamicFeature Feature, double DistanceMapUnits)
Parameters
SourceIDynamicFeatureSourceThe source that owns the picked feature.
FeatureDynamicFeatureThe picked dynamic feature.
DistanceMapUnitsdoubleDistance from the click to the feature in Spherical Mercator map units;
0when the click landed inside a rendered vessel hull.
Properties
DistanceMapUnits
Distance from the click to the feature in Spherical Mercator map units;
0 when the click landed inside a rendered vessel hull.
public double DistanceMapUnits { get; init; }
Property Value
Feature
The picked dynamic feature.
public DynamicFeature Feature { get; init; }
Property Value
Source
The source that owns the picked feature.
public IDynamicFeatureSource Source { get; init; }