Table of Contents

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

Source IDynamicFeatureSource

The source that owns the picked feature.

Feature DynamicFeature

The picked dynamic feature.

DistanceMapUnits double

Distance from the click to the feature in Spherical Mercator map units; 0 when 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

double

Feature

The picked dynamic feature.

public DynamicFeature Feature { get; init; }

Property Value

DynamicFeature

Source

The source that owns the picked feature.

public IDynamicFeatureSource Source { get; init; }

Property Value

IDynamicFeatureSource