layout: default title: LocateWidget parent: Core Classes β€”

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Widgets

LocateWidget Class

Provides a simple widget that animates the View to the user’s current location. The view rotates according to the
direction where the tracked device is heading towards.
ArcGIS Maps SDK for JavaScript

public class LocateWidget : dymaptic.GeoBlazor.Core.Components.Widgets.Widget

Inheritance System.Object πŸ‘’ Microsoft.AspNetCore.Components.ComponentBase πŸ‘’ MapComponent πŸ‘’ Widget πŸ‘’ LocateWidget

Properties

LocateWidget.GoToOverride Property

This function provides the ability to override either the MapView goTo() or SceneView goTo() methods with your own implementation.

public System.Action<dymaptic.GeoBlazor.Core.Components.Widgets.GoToOverrideParameters>? GoToOverride { get; set; }

Property Value

System.Action<GoToOverrideParameters>

LocateWidget.HasGoToOverride Property

Identifies whether a custom GoToOverride was registered.

public bool HasGoToOverride { get; }

Property Value

System.Boolean

LocateWidget.LocateWidgetObjectReference Property

A .NET object reference for calling this class from JavaScript.

public Microsoft.JSInterop.DotNetObjectReference<dymaptic.GeoBlazor.Core.Components.Widgets.LocateWidget> LocateWidgetObjectReference { get; }

Property Value

Microsoft.JSInterop.DotNetObjectReference<LocateWidget>

LocateWidget.RotationEnabled Property

Indicates whether the widget will automatically rotate to the device heading based on the Geolocation APIs GeolocationCoordinates.heading property. The map will not rotate if the speed is 0, or if the device is unable to provide heading information.
Set to false to disable this behavior. Default Value:true

public System.Nullable<bool> RotationEnabled { get; set; }

Property Value

System.Nullable<System.Boolean>

LocateWidget.Scale Property

Indicates the scale to set on the view when navigating to the position of the geolocated result once a location is
returned from the track event.

public System.Nullable<int> Scale { get; set; }

Property Value

System.Nullable<System.Int32>

LocateWidget.WidgetType Property

The type of widget

public override string WidgetType { get; }

Property Value

System.String

Methods

LocateWidget.OnJavaScriptGoToOverride(GoToOverrideParameters) Method

JavaScript-invokable method for internal use

public void OnJavaScriptGoToOverride(dymaptic.GeoBlazor.Core.Components.Widgets.GoToOverrideParameters goToOverrideParams);

Parameters

goToOverrideParams GoToOverrideParameters