dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Widgets

SearchWidget Class

The Search widget provides a way to perform search operations on locator service(s), map/feature service feature
layer(s), SceneLayers with an associated feature layer, BuildingComponentSublayer with an associated feature layer,
GeoJSONLayer, CSVLayer, OGCFeatureLayer, and/or table(s). If using a locator with a geocoding service, the
findAddressCandidates operation is used, whereas queries are used on feature layers.
ArcGIS JS API

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

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

Properties

SearchWidget.OnSearchSelectResultEvent Property

A delegate for a handler of search selection result events.
Function must take in a SearchResult parameter, and return a System.Threading.Tasks.Task

public Microsoft.AspNetCore.Components.EventCallback<dymaptic.GeoBlazor.Core.Objects.SearchResult> OnSearchSelectResultEvent { get; set; }

Property Value

Microsoft.AspNetCore.Components.EventCallback<SearchResult>

SearchWidget.SearchWidgetObjectReference Property

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

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

Property Value

Microsoft.JSInterop.DotNetObjectReference<SearchWidget>

SearchWidget.WidgetType Property

The type of widget

public override string WidgetType { get; }

Property Value

System.String

Methods

SearchWidget.OnJavaScriptSearchSelectResult(SearchResult) Method

A JavaScript invokable method that is triggered whenever a “select-result” event is fired by the search widget.

public System.Threading.Tasks.Task OnJavaScriptSearchSelectResult(dymaptic.GeoBlazor.Core.Objects.SearchResult searchResult);

Parameters

searchResult SearchResult

The result selected in the search widget.

Returns

System.Threading.Tasks.Task