dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Geometries
PolyLine Class
A polyline contains an array of paths and spatialReference. Each path is represented as an array of points. A
polyline also has boolean-valued hasM and hasZ properties.
ArcGIS
JS API
</a>
public class PolyLine : dymaptic.GeoBlazor.Core.Components.Geometries.Geometry,
System.IEquatable<dymaptic.GeoBlazor.Core.Components.Geometries.PolyLine>
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Geometry 🡒 PolyLine
Implements System.IEquatable<PolyLine>
Constructors
PolyLine() Constructor
A parameterless constructor for using as a razor component
public PolyLine();
PolyLine(MapPath[], SpatialReference, Extent) Constructor
Creates a new PolyLine in code with parameters
public PolyLine(dymaptic.GeoBlazor.Core.Objects.MapPath[] paths, dymaptic.GeoBlazor.Core.Components.Geometries.SpatialReference? spatialReference=null, dymaptic.GeoBlazor.Core.Components.Geometries.Extent? extent=null);
Parameters
An array of MapPath paths, or line segments, that make up the polyline.
spatialReference
SpatialReference
The SpatialReference of the geometry.
extent
Extent
The Extent of the geometry.
Properties
PolyLine.Paths Property
An array of MapPath paths, or line segments, that make up the polyline.
public dymaptic.GeoBlazor.Core.Objects.MapPath[] Paths { get; set; }
Property Value
PolyLine.Type Property
The Geometry “type”, used internally to render.
public override string Type { get; }
Property Value
Methods
PolyLine.Equals(object) Method
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj);
Parameters
obj
System.Object
The object to compare with the current object.
Returns
System.Boolean
true if the specified object is equal to the current object; otherwise, false.
PolyLine.GetHashCode() Method
Serves as the default hash function.
public override int GetHashCode();
Returns
System.Int32
A hash code for the current object.
Operators
PolyLine.operator ==(PolyLine, PolyLine) Operator
Compares two PolyLine objects for equality
public static bool operator ==(dymaptic.GeoBlazor.Core.Components.Geometries.PolyLine? left, dymaptic.GeoBlazor.Core.Components.Geometries.PolyLine? right);
Parameters
left
PolyLine
right
PolyLine
Returns
PolyLine.operator !=(PolyLine, PolyLine) Operator
Compares two PolyLine objects for inequality
public static bool operator !=(dymaptic.GeoBlazor.Core.Components.Geometries.PolyLine? left, dymaptic.GeoBlazor.Core.Components.Geometries.PolyLine? right);
Parameters
left
PolyLine
right
PolyLine