Skip to main content Link Menu Expand (external link) Document Search Copy Copied

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Widgets

Widget Class

The base class for widgets. Each widget’s presentation is separate from its properties, methods, and data.

ArcGIS
  
JS API

</a>

public abstract class Widget : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Widget

Derived
BasemapGalleryWidget
BasemapToggleWidget
CompassWidget
ExpandWidget
HomeWidget
LayerListWidget
LegendWidget
LocateWidget
PopupWidget
ScaleBarWidget
SearchWidget

Properties

Widget.ContainerId Property

The id of an external HTML Element (div). If provided, the widget will be placed inside that element, instead of on
the map.

public string? ContainerId { get; set; }

Property Value

System.String

Remarks

Either Position or ContainerId should be set, but not both.

Widget.DotNetWidgetReference Property

DotNet Object Reference to the widget

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

Property Value

Microsoft.JSInterop.DotNetObjectReference<Widget>

Widget.Position Property

The position of the widget in relation to the map view.

public System.Nullable<dymaptic.GeoBlazor.Core.Components.OverlayPosition> Position { get; set; }

Property Value

System.Nullable<OverlayPosition>

Remarks

Either Position or ContainerId should be set, but not both.

Widget.WidgetType Property

The type of widget

public abstract string WidgetType { get; }

Property Value

System.String

Methods

Widget.OnWidgetCreated(IJSObjectReference) Method

JS-invokable callback to register a JS Object Reference

public void OnWidgetCreated(Microsoft.JSInterop.IJSObjectReference jsObjectReference);

Parameters

jsObjectReference Microsoft.JSInterop.IJSObjectReference