Add Search Source
ClickClick “Add search”. The “Search” window will appear.
EnterEnter a name, select the Search type Query (if you wish to run the search against a layer) or Locator (if you wish to run it against a specific Geocode service)
. Enterthen enter placeholder for the search.
This is what will appear in the search bar in the Viewer.Below outlines options available for Query and Locator Search options.
Query Layer Search
If a query layer was selected as the search type, the following layer details can be set:
- Service:
- Existing service URL's can be selected in the drop-down menu. This is the feature service layer from which the search is performed on. Multiple fields in the feature service can then be selected.
- Display Field:
- From the fields selected when the service was added, the display field to search against can be chosen.
- Prefix:
- Prefixes for the search can be added
- e.g. U for resource consents
- Suffix:
- Suffixes can be appended to the search value
Click continue to configure search behavior:
- Zoom Scale: Default scale when the search is being run against a point service.
- Default Search:
- Adds the search to the default searches. These can be bulk applied to a map in the maps tab.
- Enable Suggestions:
- Allows the user to determine if a list of suggestions is produced when the search bar is being populated.
- Exact Match:
- Determines if the search entry has to exactly match a search result for it to appear in the search results list.
- Show in
- popup:
- Determines whether search results should appear in
- Popup / Popup panel.
Click “Finish” Finish to add the new layer query search source.
Locator Search
If a locator was selected as the search type, the following locator details can be set:
- Locator Service: An
- existing Geocoder URL can be selected in the drop-down menu.
- Single Line Field:
- The Geocoder single line address field.
- Country code:
- The Geocoder country code
Click continue configure search behavior (same as the Query search section)
Click “Finish” to add the new Locator search source- .
You can find the single Line Field by heading to the REST URL for your locator. This will outline what field is to be used as your single line address.
Click continue configure search behavior (same as the Query search section) then click “Finish” to add the new Locator search source.
Edit / Delete a Search Source
To edit an existing search source, click on the “Edit” button Edit in the row of the search source to delete. The search source window will appear . Search where search details can be edited and then saved.
Delete Search Source
To delete an existing search source, click on the “Delete” button Similarly, to delete a search click Delete in the row of the search source to delete. The search source will be removed from the table and can no longer be selected by any search bars.
Add Search SourceAssign to a
webmapmap
After a search source has been configured this can be assigned to a specific webmap. This is done from the “Maps tab”.
Under the “Search” To do this, head to the Maps and Apps section. Under the Search tab for each viewer , the user can configure what search source will be available when using the Search bar. The following details can be set:
Placeholder – Theset the following details to assign a search:
- Placeholder: The placeholder text in the viewer search bar.
- Zoom scale
- : The extent to which the map zooms when
- any search is made (more than one search can be assigned to a map)
- Auto navigate
- : Automatically zoom to the feature once a search has been conducted.
The user can then define which search source Source to use from the drop-down. Multiple search sources can be added to one viewer.
Add DefaultSearches
Searches that had the “Default Search” box ticked Default Search ticked during configuration can be bulk added to a webmap map by clicking the "Add Default" button.
Related Articles
Related Labels