The Search component allows you to find spatial data and locations on the map. When you click on a search result, the map zooms to that location.
You can configure the maximum number of search results to display from each feature source (for example, layer, sublayer, table, geocoder), and the number of suggestions to display based on the user's input. To include a specific layer in the search, enable the Included option in Layer List > Layer Extensions).
The search results come from one of the following:
•The Geocoder service. If the Geocoder Enabled option is disabled, the user can search for data only.
•Standard Esri search.
Field |
Description |
---|---|
Title |
Type a title to display for the component. This title is used both in Web and Designer. |
Icon |
To select an icon to represent the component, click Select Icon, click the desired icon, and click OK. To remove the icon, click Clear Icon. |
Maximum Results |
Type in the maximum number of search results to display on a single page. The default is set to 50. |
Maximum Search Suggestions |
Type in the maximum number of search suggestions to offer a user. The default is 6. |
Geocoder Enabled |
Whether to use the geocoder as part of the search results. The default is true. |
Field |
Description |
---|---|
Search Cleared |
The command to run when the user clears the search box. A command is an action the app should perform. Some commands have additional settings you can configure. |
Search |
The command to run when the user performs a search. A command is an action the app should perform. Some commands have additional settings you can configure. |
Field |
Description |
---|---|
Visible To |
Determines which users and groups can access this component. If no users or groups are specified, all users can access this component by default. The Hidden From setting overrides this setting. |
Hidden From |
Determines which users and groups are explicitly forbidden to access this component. This setting overrides the Visible To setting. |
Field |
Description |
---|---|
Slot |
Select the slot to position the component within the Map component. In addition to the various positions on the map, such as Top Left and Bottom Center, you can position the component within the map context menu, which appears when the user right-clicks the map. You can also position the component within the Popup slot, which appears at the mouse cursor. This setting only appears when the component is within the Map component. |
Margin (px) |
The margin space around the component in pixels. |
Initially Hidden |
Specifies whether or not the component is initially hidden when the app loads. If selected, the component remains hidden unless activated, for example, by the Show command. |
Map |
The Map components this component affects. This setting cannot be modified if this component is either a subcomponent of a Map component or there is only a single Map component in the app. |