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


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


LocateWidget.HasGoToOverride Property

Identifies whether a custom GoToOverride was registered.

public bool HasGoToOverride { get; }

Property Value


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


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


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


LocateWidget.UseHeadingEnabled Property

Indicates whether the widget will automatically rotate to user’s direction.

public bool UseHeadingEnabled { get; set; }

Property Value



This property is deprecated. Use RotationEnabled instead.

LocateWidget.WidgetType Property

The type of widget

public override string WidgetType { get; }

Property Value



LocateWidget.OnJavaScriptGoToOverride(GoToOverrideParameters) Method

JavaScript-invokable method for internal use

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


goToOverrideParams GoToOverrideParameters