The Search Tool allows users to search for addresses and other map features.
In the above image, the search tool has been configured to search on addresses. The user has searched for hospita and results are shown in the top-left of the screen. The same 6 results are shown as blue markers on the map and the map will automatically zoom to the extent of search result markers as the user types their query.
Hovering over a search result will highlight the row as well as the corresponding marker on the map. The inverse is also true if the user hovers over a result marker.
Clicking on a result zooms the map to the selected result and opens the Feature Info panel. The user can return back to the list of results by clicking the blue back arrow.
Search results can be cleared with the x and the Search Results panel (if closed) can be re-opened with the eye button.
The search tool has the following settings.
When search results are presented, Mappin will zoom to fit each page of search results. When the user clicks on a search result, Mappin will zoom-in on that result / feature. This setting specifies the zoom-level it will zoom to.
The maximum number of results to display per searched layer per page of results.
Layers and Attributes¶
The Search Tool is designed to search multiple tables / layers and not just address data. This setting allows additional search columns to be defined. In the example above, you can see that the Name field from the Hospitals layer has been configured in addition to address data.
Now when a user searches for hospita they will see results which look like this:
Notice how results now include both matching addresses and hospitals.