dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
AreaMeasurement2DViewModel Class
The view from which the widget will operate.
ArcGIS Maps SDK for JavaScript
public class AreaMeasurement2DViewModel : dymaptic.GeoBlazor.Core.Components.MapComponent,
dymaptic.GeoBlazor.Core.Interfaces.IMeasurementViewModelActiveViewModel,
dymaptic.GeoBlazor.Core.Interfaces.IMapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 AreaMeasurement2DViewModel
Implements IMeasurementViewModelActiveViewModel, IMapComponent
Constructors
AreaMeasurement2DViewModel() Constructor
Parameterless constructor for use as a Razor Component.
public AreaMeasurement2DViewModel();
AreaMeasurement2DViewModel(SnappingOptions, Nullable, IReadOnlyList) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public AreaMeasurement2DViewModel(dymaptic.GeoBlazor.Core.Components.SnappingOptions snappingOptions, System.Nullable<dymaptic.GeoBlazor.Core.Enums.SystemOrAreaUnit> unit=null, System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Enums.SystemOrAreaUnit>? unitOptions=null);
Parameters
snappingOptions
SnappingOptions
The SnappingOptions for sketching.
ArcGIS Maps SDK for JavaScript
unit
System.Nullable<SystemOrAreaUnit>
Unit system (imperial, metric) or specific unit used for displaying the area values.
ArcGIS Maps SDK for JavaScript
unitOptions
System.Collections.Generic.IReadOnlyList<SystemOrAreaUnit>
List of available units and unit systems (imperial, metric) for displaying the area values.
ArcGIS Maps SDK for JavaScript
Properties
AreaMeasurement2DViewModel.Measurement Property
The area and perimeter of the measurement polygon in square meters and meters respectively.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.AreaMeasurement2DViewModelMeasurement? Measurement { get; set; }
Property Value
AreaMeasurement2DViewModelMeasurement
AreaMeasurement2DViewModel.MeasurementLabel Property
This property returns the locale specific representation of the area and perimeter.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.AreaMeasurement2DViewModelMeasurementLabel? MeasurementLabel { get; set; }
Property Value
AreaMeasurement2DViewModelMeasurementLabel
AreaMeasurement2DViewModel.SnappingOptions Property
The SnappingOptions for sketching.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.SnappingOptions? SnappingOptions { get; set; }
Property Value
AreaMeasurement2DViewModel.State Property
The ViewModel’s state.
default “disabled”
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.MeasurementViewModelState> State { get; set; }
Property Value
System.Nullable<MeasurementViewModelState>
AreaMeasurement2DViewModel.Unit Property
Unit system (imperial, metric) or specific unit used for displaying the area values.
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.SystemOrAreaUnit> Unit { get; set; }
Property Value
System.Nullable<SystemOrAreaUnit>
AreaMeasurement2DViewModel.UnitOptions Property
List of available units and unit systems (imperial, metric) for displaying the area values.
ArcGIS Maps SDK for JavaScript
public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Enums.SystemOrAreaUnit>? UnitOptions { get; set; }
Property Value
System.Collections.Generic.IReadOnlyList<SystemOrAreaUnit>
Methods
AreaMeasurement2DViewModel.AddToUnitOptions(SystemOrAreaUnit[]) Method
Asynchronously adds elements to the UnitOptions property.
public System.Threading.Tasks.Task AddToUnitOptions(params dymaptic.GeoBlazor.Core.Enums.SystemOrAreaUnit[] values);
Parameters
values
SystemOrAreaUnit[]
The elements to add.
Returns
AreaMeasurement2DViewModel.Clear() Method
Clears the current measurement.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task Clear();
Returns
AreaMeasurement2DViewModel.GetMeasurement() Method
Asynchronously retrieve the current value of the Measurement property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.AreaMeasurement2DViewModelMeasurement?> GetMeasurement();
Returns
System.Threading.Tasks.Task<AreaMeasurement2DViewModelMeasurement>
AreaMeasurement2DViewModel.GetMeasurementLabel() Method
Asynchronously retrieve the current value of the MeasurementLabel property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.AreaMeasurement2DViewModelMeasurementLabel?> GetMeasurementLabel();
Returns
System.Threading.Tasks.Task<AreaMeasurement2DViewModelMeasurementLabel>
AreaMeasurement2DViewModel.GetSnappingOptions() Method
Asynchronously retrieve the current value of the SnappingOptions property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.SnappingOptions?> GetSnappingOptions();
Returns
System.Threading.Tasks.Task<SnappingOptions>
AreaMeasurement2DViewModel.GetState() Method
Asynchronously retrieve the current value of the State property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.MeasurementViewModelState>> GetState();
Returns
System.Threading.Tasks.Task<System.Nullable<MeasurementViewModelState>>
AreaMeasurement2DViewModel.GetUnit() Method
Asynchronously retrieve the current value of the Unit property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.SystemOrAreaUnit>> GetUnit();
Returns
System.Threading.Tasks.Task<System.Nullable<SystemOrAreaUnit>>
AreaMeasurement2DViewModel.GetUnitOptions() Method
Asynchronously retrieve the current value of the UnitOptions property.
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Enums.SystemOrAreaUnit>?> GetUnitOptions();
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<SystemOrAreaUnit>>
AreaMeasurement2DViewModel.RemoveFromUnitOptions(SystemOrAreaUnit[]) Method
Asynchronously remove an element from the UnitOptions property.
public System.Threading.Tasks.Task RemoveFromUnitOptions(params dymaptic.GeoBlazor.Core.Enums.SystemOrAreaUnit[] values);
Parameters
values
SystemOrAreaUnit[]
The elements to remove.
Returns
AreaMeasurement2DViewModel.SetSnappingOptions(SnappingOptions) Method
Asynchronously set the value of the SnappingOptions property after render.
public System.Threading.Tasks.Task SetSnappingOptions(dymaptic.GeoBlazor.Core.Components.SnappingOptions value);
Parameters
value
SnappingOptions
The value to set.
Returns
AreaMeasurement2DViewModel.SetUnit(Nullable) Method
Asynchronously set the value of the Unit property after render.
public System.Threading.Tasks.Task SetUnit(System.Nullable<dymaptic.GeoBlazor.Core.Enums.SystemOrAreaUnit> value);
Parameters
value
System.Nullable<SystemOrAreaUnit>
The value to set.
Returns
AreaMeasurement2DViewModel.SetUnitOptions(IReadOnlyList) Method
Asynchronously set the value of the UnitOptions property after render.
public System.Threading.Tasks.Task SetUnitOptions(System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Enums.SystemOrAreaUnit>? value);
Parameters
value
System.Collections.Generic.IReadOnlyList<SystemOrAreaUnit>
The value to set.
Returns
AreaMeasurement2DViewModel.Start() Method
Starts a new measurement.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task Start();
Returns
AreaMeasurement2DViewModel.ValidateRequiredGeneratedChildren() Method
Validates source-generated child components.
public override void ValidateRequiredGeneratedChildren();
Implements ValidateRequiredGeneratedChildren()