Add Search and Filters to a Map
Add a search bar and Industry and Rating filter menus to an Avonni Map, in a side panel, so reps find the right accounts among dozens of pins.
A sales rep has 40 accounts across San Francisco on one map and wants only the Technology accounts rated Hot before planning calls. With filter menus and a search bar in a side panel, two clicks leave only those pins on the map. Typing a street name finds an account by its address.

Before you start
A screen flow with an Avonni Map that shows your Accounts: Data Source set to Query on Account, and Location mapped in Data Mappings. See Map for the data source and mappings.
Type can be Google Maps or Leaflet: both have search, filters and the side panel. This tutorial uses Leaflet, where clicking a pin opens a popup with the account's fields.
The side panel holds the search and the filters only. A list of the matching accounts beside the map exists only on Google Maps, with List View.
Steps
Put the filters in a side panel
Open the Filter group.
Set Type to Panel.
Turn on Use Record Picklist Values, so each menu lists only the values your accounts actually have.
Leave Picklist Filter Sort Order on Ascending, or choose Default Order of Field to list Hot, Warm, Cold in the order of the picklist.
Set up the side panel
Open the Side panel group. It applies once the filters or the search are set to Panel.
Position: Left, so the rep reads the panel before the map.
Reset Button Label: keep "Clear all selections" or write your own, such as
Show all accounts.Display Overlaid on the Map: turn it on when the screen is narrow and the map needs the full width. The panel then sits over the map and opens from a button.

Save and test
Save the flow and run it.
In the side panel, check Technology under Industry: only the Technology accounts stay on the map.
Check Hot under Account Rating: the map keeps the Technology accounts rated Hot.
Type
Marketin the search bar: the pins narrow to the accounts on Market Street.Click Clear all selections to bring back all 40 accounts.
Troubleshooting
Related tutorials
Interactive Map Filtering: recount metrics for the area the rep is looking at.
Filter a Data Table or Map by the current record: limit the map to one record's data before the rep filters further.
Plan a Route from the Map: turn the filtered accounts into tomorrow's visits.
Was this helpful?
