Show / Hide Table of Contents

Class LocatorSearchSource

Basic search source implementation for generic locators.

Inheritance
object
LocatorSearchSource
Implements
ISearchSource
INotifyPropertyChanged
Namespace: Esri.ArcGISRuntime.Toolkit.Maui
Assembly: Esri.ArcGISRuntime.Toolkit.Maui.dll
Syntax
public class LocatorSearchSource : ISearchSource, INotifyPropertyChanged

Constructors

Name Description
LocatorSearchSource(LocatorTask)

Initializes a new instance of the LocatorSearchSource class. CreateDefaultSourceAsync(CancellationToken) to create a source configured for use with the Esri World Geocoder.

Properties

Name Description
DefaultCalloutDefinition

Gets or sets the default callout definition to use with results.

DefaultSymbol

Gets or sets the default symbol to use when displaying results.

DefaultZoomScale

Gets or sets the default zoom scale to be used for results from this source.

DisplayName

Gets or sets the name of the locator. Defaults to the locator's name, or "locator" if not set.

GeocodeParameters

Gets the geocode parameters, which can be used to configure search behavior.

LoadTask

Gets the task used to perform initial locator setup.

Locator

Gets the underlying locator.

MaximumResults

Gets or sets the maximum number of results to return for a search. Default is 6.

MaximumSuggestions

Gets or sets the maximum number of suggestions to return. Default is 6.

Placeholder

Gets or sets the placeholder to show when this search source is selected for use.

PreferredSearchLocation

Gets or sets the point to be used as an input to searches and suggestions.

SearchArea

Gets or sets the area to be used as a constraint for searches and suggestions.

SubtitleAttributeKey

Gets or sets the attribute key to use as the subtitle when returning results. Key must be included in ResultAttributeNames.

SuggestParameters

Gets the suggestion parameters, which can be used to configure suggestion behavior.

Methods

Name Description
CreateDefaultSourceAsync(CancellationToken)

Creates a LocatorSearchSource configured for use with the Esri World Geocoder service.

NotifyDeselected(SearchResult?)

This search source does not track selection state.

NotifySelected(SearchResult)

This search source does not track selection state.

OnPropertyChanged(string)

Raises the PropertyChanged event for the specified property.

RepeatSearchAsync(string, Envelope, CancellationToken)

Repeats the last search, with results restricted to the current visible area.

SearchAsync(SearchSuggestion, CancellationToken)

Gets a list of search results for the given suggestions.

SearchAsync(string, CancellationToken)

Gets a list of search results for the given query.

SuggestAsync(string, CancellationToken)

Gets a list of suggestions for the given query.

Events

Name Description
PropertyChanged

Occurs when a property value changes.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX