dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
CompassViewModel Class
Provides the logic for the Compass widget.
ArcGIS Maps SDK for JavaScript
public class CompassViewModel : dymaptic.GeoBlazor.Core.Components.MapComponent,
dymaptic.GeoBlazor.Core.Interfaces.IViewModel,
dymaptic.GeoBlazor.Core.Interfaces.IGoTo
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 CompassViewModel
Implements IViewModel, IGoTo
Constructors
CompassViewModel() Constructor
Parameterless constructor for use as a Razor Component.
public CompassViewModel();
CompassViewModel(GoToOverride) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public CompassViewModel(dymaptic.GeoBlazor.Core.Functions.GoToOverride? goToOverride=null);
Parameters
goToOverride
GoToOverride(GoToOverrideParameters)
This function provides the ability to override either the MapView goTo() or SceneView goTo() methods.
ArcGIS Maps SDK for JavaScript
Properties
CompassViewModel.GoToOverride Property
This function provides the ability to override either the MapView goTo() or SceneView goTo() methods.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Functions.GoToOverride? GoToOverride { get; set; }
Implements GoToOverride
Property Value
GoToOverride(GoToOverrideParameters)
CompassViewModel.HasGoToOverride Property
A convenience property that signifies whether a custom GoToOverride function was registered.
public bool HasGoToOverride { get; }
Implements HasGoToOverride
Property Value
CompassViewModel.Orientation Property
The z axis orientation.
default { z: 0 }
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.Orientation? Orientation { get; set; }
Property Value
CompassViewModel.State Property
The view model’s state.
default “disabled”
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.CompassViewModelState> State { get; set; }
Property Value
System.Nullable<CompassViewModelState>
Methods
CompassViewModel.GetOrientation() Method
Asynchronously retrieve the current value of the Orientation property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Orientation?> GetOrientation();
Returns
System.Threading.Tasks.Task<Orientation>
CompassViewModel.GetState() Method
Asynchronously retrieve the current value of the State property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.CompassViewModelState>> GetState();
Returns
System.Threading.Tasks.Task<System.Nullable<CompassViewModelState>>
CompassViewModel.OnJsGoToOverride(IJSStreamReference) Method
JS-invokable method that triggers the GoToOverride function.
Should not be called by consuming code.
public System.Threading.Tasks.Task OnJsGoToOverride(Microsoft.JSInterop.IJSStreamReference jsStreamRef);
Parameters
jsStreamRef
Microsoft.JSInterop.IJSStreamReference
Implements OnJsGoToOverride(IJSStreamReference)
Returns
CompassViewModel.Reset() Method
If working in a MapView, sets the view’s
rotation is to 0
.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task Reset();