SearchSource
SearchSource = {
maximumResults?:number;maximumSuggestions?:number;name?:string;type:"locator";url?:string; } | {maximumResults?:number;maximumSuggestions?:number;name?:string;repeatSearchResultThreshold?:number|null;repeatSuggestResultThreshold?:number|null;type:"smartLocator"; }
Defined in: packages/expo-arcgis-toolkit/src/Search.tsx:17
Where the search looks. Settings left out keep the Toolkit’s defaults: the world geocoder, 6 results and 6 suggestions.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ maximumResults?: number; maximumSuggestions?: number; name?: string; type: "locator"; url?: string; }
maximumResults?
Section titled “maximumResults?”
optionalmaximumResults?:number
maximumSuggestions?
Section titled “maximumSuggestions?”
optionalmaximumSuggestions?:number
optionalname?:string
The name shown for the source.
type:
"locator"
The Toolkit’s LocatorSearchSource: a geocode service.
optionalurl?:string
The geocode service.
Default
Section titled “Default”the ArcGIS World Geocoding ServiceType Literal
Section titled “Type Literal”{ maximumResults?: number; maximumSuggestions?: number; name?: string; repeatSearchResultThreshold?: number | null; repeatSuggestResultThreshold?: number | null; type: "smartLocator"; }
maximumResults?
Section titled “maximumResults?”
optionalmaximumResults?:number
maximumSuggestions?
Section titled “maximumSuggestions?”
optionalmaximumSuggestions?:number
optionalname?:string
repeatSearchResultThreshold?
Section titled “repeatSearchResultThreshold?”
optionalrepeatSearchResultThreshold?:number|null
The fewest results to try for; null searches once.
Default
Section titled “Default”1repeatSuggestResultThreshold?
Section titled “repeatSuggestResultThreshold?”
optionalrepeatSuggestResultThreshold?:number|null
The fewest suggestions to try for; null suggests once.
Default
Section titled “Default”6type:
"smartLocator"
The Toolkit’s SmartLocatorSearchSource: the world geocoder, searching again with looser
settings when it finds too few results.