layout: default title: ScaleBarWidget parent: Core Classes —
dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Widgets
ScaleBarWidget Class
The ScaleBar widget displays a scale bar on the map or in a specified HTML node. The widget respects various
coordinate systems and displays units in metric or non-metric values. Metric values shows either kilometers or
meters depending on the scale, and likewise non-metric values shows miles and feet depending on the scale.
ArcGIS Maps SDK for JavaScript
public class ScaleBarWidget : dymaptic.GeoBlazor.Core.Components.Widgets.Widget
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Widget 🡒 ScaleBarWidget
Properties
ScaleBarWidget.Unit Property
Units to use for the scale bar
public System.Nullable<dymaptic.GeoBlazor.Core.Components.Widgets.ScaleUnit> Unit { get; set; }
Property Value
ScaleBarWidget.WidgetType Property
The type of widget
public override string WidgetType { get; }