Struct PolylineInfo
A snapshot of one polyline's current settings and vertex count, from TryGetLine(int, out PolylineInfo).
public readonly struct PolylineInfo
- Inherited Members
Constructors
PolylineInfo(float, uint, float, int, int, bool)
Creates a snapshot with every field set; new dash/orientation/corner fields default to solid/screen-locked/not flat/fully round.
public PolylineInfo(float widthPx, uint colorRgba, float dashPeriodPx, int pointCount, int maxPoints, bool isRingLine)
Parameters
Properties
ColorRgba
Stroke color as packed RGBA.
public uint ColorRgba { get; }
Property Value
CornerRadiusRatio
Corner radius of every join and cap as a fraction of half the line width; 1 (fully round) by default.
public float CornerRadiusRatio { get; }
Property Value
DashPeriodMercator
Dash plus gap length in normalized mercator, the same ground length at every zoom; 0 when solid or screen-dashed.
public float DashPeriodMercator { get; }
Property Value
DashPeriodPx
Dash plus gap length in screen px; 0 when the line is solid or ground-dashed.
public float DashPeriodPx { get; }
Property Value
DashPitchInvariant
True when a screen-px dash pattern ignores pitch (each segment scaled from its own on-screen length).
public bool DashPitchInvariant { get; }
Property Value
Flat
True when the line lies flat in the ground plane, foreshortening with the map under pitch like a flat bulk marker.
public bool Flat { get; }
Property Value
IsRingLine
True for a fixed-capacity ring line (AddRingLine(MercatorPoint, float, MercatorPoint, float, int, float, uint)).
public bool IsRingLine { get; }
Property Value
MaxPoints
Reserved capacity plus one - the most vertices this line can hold without reallocating.
public int MaxPoints { get; }
Property Value
PointCount
Vertices currently drawn; 0 while the line has fewer than two.
public int PointCount { get; }
Property Value
WidthPx
Stroke width in screen px; 0 while hidden.
public float WidthPx { get; }