dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
DistanceMeasurement2DViewModelMeasurement Class
The length and geometry of the measurement polyline in meters.
ArcGIS Maps SDK for JavaScript
public class DistanceMeasurement2DViewModelMeasurement : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 DistanceMeasurement2DViewModelMeasurement
Constructors
DistanceMeasurement2DViewModelMeasurement() Constructor
Parameterless constructor for use as a Razor Component.
public DistanceMeasurement2DViewModelMeasurement();
DistanceMeasurement2DViewModelMeasurement(Polyline, Nullable) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public DistanceMeasurement2DViewModelMeasurement(dymaptic.GeoBlazor.Core.Components.Geometries.Polyline? geometry=null, System.Nullable<double> length=null);
Parameters
geometry
Polyline
Measurement line.
ArcGIS Maps SDK for JavaScript
length
System.Nullable<System.Double>
Line length (m).
ArcGIS Maps SDK for JavaScript
Properties
DistanceMeasurement2DViewModelMeasurement.Geometry Property
Measurement line.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.Geometries.Polyline? Geometry { get; set; }
Property Value
DistanceMeasurement2DViewModelMeasurement.Length Property
Line length (m).
ArcGIS Maps SDK for JavaScript
public System.Nullable<double> Length { get; set; }
Property Value
System.Nullable<System.Double>
Methods
DistanceMeasurement2DViewModelMeasurement.GetGeometry() Method
Asynchronously retrieve the current value of the Geometry property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Geometries.Polyline?> GetGeometry();
Returns
System.Threading.Tasks.Task<Polyline>
DistanceMeasurement2DViewModelMeasurement.GetLength() Method
Asynchronously retrieve the current value of the Length property.
public System.Threading.Tasks.Task<System.Nullable<double>> GetLength();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
DistanceMeasurement2DViewModelMeasurement.SetGeometry(Polyline) Method
Asynchronously set the value of the Geometry property after render.
public System.Threading.Tasks.Task SetGeometry(dymaptic.GeoBlazor.Core.Components.Geometries.Polyline? value);
Parameters
value
Polyline
The value to set.
Returns
DistanceMeasurement2DViewModelMeasurement.SetLength(Nullable) Method
Asynchronously set the value of the Length property after render.
public System.Threading.Tasks.Task SetLength(System.Nullable<double> value);
Parameters
value
System.Nullable<System.Double>
The value to set.
Returns
DistanceMeasurement2DViewModelMeasurement.ValidateRequiredGeneratedChildren() Method
Validates source-generated child components.
public override void ValidateRequiredGeneratedChildren();
Implements ValidateRequiredGeneratedChildren()