SearchView enables users to search for one or more locations or features, from a variety of sources, with suggestions. More...
Since: | Esri.ArcGISRuntime 100.13 |
Properties
- automaticConfigurationEnabled : bool
- controller : var
- geoView : var
- noResultMessage : string
- repeatSearchHereButtonEnabled : bool
- resultListViewEnabled : bool
Detailed Description
Example code in the QML API (C++ API might differ):
MapView { Map { initBasemapStyle: Enums.BasemapStyleArcGISDarkGray } SearchView { geoView: parent anchors { top: parent.top right: parent.right margins: 10 } } }
Note: By default, the SearchView will attempt to access the World Geocoding Service, which requires an API key.
Property Documentation
Determines whether the view will update its configuration based on the attached geoview's geomodel automatically.
Defaults to true.
When connected to a GeoView, SearchView will automatically navigate the view in response to search result changes. Additionally, the view's current center and extent will be automatically provided to locators as parameters.
Message to show when there are no results or suggestions.
Defaults to 'No results found'.
Determines whether a button that allows the user to repeat a search with a spatial constraint is displayed automatically. Set to false if you want to use a custom button, for example so that you can place it elsewhere on the map. SearchViewController has properties and methods you can use to determine when the custom button should be visible and to trigger the search repeat behavior.
Defaults to true.
Determines whether a built-in result view will be shown. If false, the result display/selection list is not shown. Set to false if you want to define a custom result list. You might use a custom result list to show results in a separate list, disconnected from the rest of the search view.
Defaults to true.