dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Widgets
BasemapLayerListWidget Class
The Basemap ListItem class represents two of the operational Items in the LayerList ViewModel. In the Basemap
LayerList widget UI, the list items represent any base or reference layers displayed in the view. To display the
ListItems as separate types, a developer will need to specify a base or reference. It provides access to the
associated layer’s properties, allows the developer to configure actions related to the layer, and allows the
developer to add content to the item related to the layer.
ArcGIS JS API
public class BasemapLayerListWidget : dymaptic.GeoBlazor.Core.Components.Widgets.Widget
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Widget 🡒 BasemapLayerListWidget
Properties
BasemapLayerListWidget.BaseLayerListWidgetObjectReference Property
The .Net object reference to this class for calling from JavaScript.
public Microsoft.JSInterop.DotNetObjectReference<dymaptic.GeoBlazor.Core.Components.Widgets.BasemapLayerListWidget> BaseLayerListWidgetObjectReference { get; }
Property Value
Microsoft.JSInterop.DotNetObjectReference<BasemapLayerListWidget>
BasemapLayerListWidget.HasCustomBaseListHandler Property
A convenience property that signifies whether a custom OnBaseListItemCreatedHandler was registered.
public bool HasCustomBaseListHandler { get; }
Property Value
BasemapLayerListWidget.HasCustomReferenceListHandler Property
A convenience property that signifies whether a custom OnReferenceListItemCreatedHandler was
registered.
public bool HasCustomReferenceListHandler { get; }
Property Value
BasemapLayerListWidget.IconClass Property
The widget’s default CSS icon class.
public string? IconClass { get; set; }
Property Value
BasemapLayerListWidget.Label Property
The widget’s default label.
public string? Label { get; set; }
Property Value
BasemapLayerListWidget.OnBaseListItemCreatedHandler Property
A delegate to implement a custom handler for setting up a base type ofListItem.
Function must take in a ListItem and return a Task with the designated base type of item.
public System.Func<dymaptic.GeoBlazor.Core.Components.Widgets.LayerList.ListItem,System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Widgets.LayerList.ListItem>>? OnBaseListItemCreatedHandler { get; set; }
Property Value
System.Func<ListItem,System.Threading.Tasks.Task<ListItem>>
BasemapLayerListWidget.OnReferenceListItemCreatedHandler Property
A delegate to implement a custom handler for setting up a reference type ofListItem.
Function must take in a ListItem and return a Task with the designated reference type of item.
public System.Func<dymaptic.GeoBlazor.Core.Components.Widgets.LayerList.ListItem,System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Widgets.LayerList.ListItem>>? OnReferenceListItemCreatedHandler { get; set; }
Property Value
System.Func<ListItem,System.Threading.Tasks.Task<ListItem>>
BasemapLayerListWidget.WidgetType Property
The type of widget
public override string WidgetType { get; }
Property Value
Methods
BasemapLayerListWidget.OnBaseListItemCreated(ListItem) Method
A JavaScript invokable method that is triggered whenever a base type ListItem is created and a handler is attached.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Widgets.LayerList.ListItem>? OnBaseListItemCreated(dymaptic.GeoBlazor.Core.Components.Widgets.LayerList.ListItem item);
Parameters
item
ListItem
The ListItem from the original source.
Returns
System.Threading.Tasks.Task<ListItem>
Returns the modified base ListItem
BasemapLayerListWidget.OnReferenceListItemCreated(ListItem) Method
A JavaScript invokable method that is triggered whenever a reference type ListItem is created and a handler is
attached.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Widgets.LayerList.ListItem>? OnReferenceListItemCreated(dymaptic.GeoBlazor.Core.Components.Widgets.LayerList.ListItem item);
Parameters
item
ListItem
The ListItem from the original source.
Returns
System.Threading.Tasks.Task<ListItem>
Returns the modified reference ListItem