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

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.OnSearchSelectResultEventHandler 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 System.Func<dymaptic.GeoBlazor.Core.Objects.SearchResult,System.Threading.Tasks.Task>? OnSearchSelectResultEventHandler { get; set; }

Property Value

System.Func<SearchResult,System.Threading.Tasks.Task>

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.OnSearchSelectResult(SearchResult) Method

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

public void OnSearchSelectResult(dymaptic.GeoBlazor.Core.Objects.SearchResult searchResult);

Parameters

searchResult SearchResult

The result selected in the search widget.