SearchProps
SearchProps =
ViewProps&object
Defined in: packages/expo-arcgis-toolkit/src/Search.tsx:43
Type Declaration
Section titled “Type Declaration”currentQuery?
Section titled “currentQuery?”
optionalcurrentQuery?:string
The query the search starts with.
enableResultListView?
Section titled “enableResultListView?”
optionalenableResultListView?:boolean
Shows the Toolkit’s list of results.
Default
Section titled “Default”truegeoView?
Section titled “geoView?”
optionalgeoView?:RefObject<GeoViewHandle|null>
The view the search is for, which moves to the results: a <MapView>, <SceneView> or
<LocalSceneView> ref.
Default
Section titled “Default”the view the search is placed innoResultsMessage?
Section titled “noResultsMessage?”
optionalnoResultsMessage?:string
Shown when nothing is found.
Default
Section titled “Default”the Toolkit's ("No results found", localized)onQueryChange?
Section titled “onQueryChange?”
optionalonQueryChange?: (query) =>void
Called with the query as the user types it.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
prompt?
Section titled “prompt?”
optionalprompt?:string
Shown in the empty field.
Default
Section titled “Default”the Toolkit's ("Find a place or address", localized)queryCenter?
Section titled “queryCenter?”
optionalqueryCenter?:"view"| {latitude:number;longitude:number; }
Where results are prioritized: 'view' for the view’s center as it moves, or a point.
Default
Section titled “Default”nonerepeatSearch?
Section titled “repeatSearch?”
optionalrepeatSearch?:boolean
Offers “Repeat search here” once the view has moved away from the results (the Toolkit’s
geoViewExtent and isGeoViewNavigating, from the view).
Default
Section titled “Default”falseresultMode?
Section titled “resultMode?”
optionalresultMode?:"single"|"multiple"|"automatic"
How many results a search returns: one, several, or ('automatic') what the query suggests.
Default
Section titled “Default”'automatic'resultsOverlay?
Section titled “resultsOverlay?”
optionalresultsOverlay?:RefObject<GraphicsOverlayRef|null>
The overlay the results are drawn into: a <GraphicsOverlay> ref, declared in the view. Without
one, the results show in the list only, as in the Toolkit.
sources?
Section titled “sources?”
optionalsources?:SearchSource[]
Where to search.
Default
Section titled “Default”the Toolkit's: the world geocoder