Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

A San Francisco account map with a side panel on its left: a search box, an Industry filter set to Technology and an Account Rating filter with Hot checked. Four pins remain on the map.
Technology accounts rated Hot, picked in the side panel: four of forty pins remain.

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

1

Pick the fields to filter and search on

In the Properties tab, open Data Mappings and scroll to the end.

  1. In Filters, add Industry and Account Rating. Each field becomes one filter menu.

  2. In Search Fields, add Account Name and Billing Street.

2

Put the filters in a side panel

Open the Filter group.

  1. Set Type to Panel.

  2. Turn on Use Record Picklist Values, so each menu lists only the values your accounts actually have.

  3. Leave Picklist Filter Sort Order on Ascending, or choose Default Order of Field to list Hot, Warm, Cold in the order of the picklist.

3

Add the search bar to the same panel

Open the Search group.

  1. Turn on Show Search.

  2. Set Placeholder to Search name or street.

  3. Set Position to Panel.

4

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.

The Filter and Search groups of the Map's Properties tab: Filter Type Panel with Use Record Picklist Values on, Search with Show Search on, Placeholder Search name or street and Position Panel.
Filters and search both set to Panel share one side panel.
5

Save and test

Save the flow and run it.

  1. In the side panel, check Technology under Industry: only the Technology accounts stay on the map.

  2. Check Hot under Account Rating: the map keeps the Technology accounts rated Hot.

  3. Type Market in the search bar: the pins narrow to the accounts on Market Street.

  4. Click Clear all selections to bring back all 40 accounts.

Each filter menu also has a filter mode button. Switching Industry from Equals to Not Equals hides the checked industry instead of keeping it. Number and date fields get range modes such as Between. The Map reference lists the modes for each field type.

Troubleshooting

The Side panel group has no effect

The panel appears only when the filters (Filter > Type = Panel) or the search (Search > Position = Panel) are placed in it. Set at least one of them to Panel.

The side panel is gone on a phone

On a narrow map the filters become a popover and the search moves to the header. The settings stay as you set them for wider screens.

A filter menu lists values no account uses

Turn on Use Record Picklist Values in the Filter group. The menu then offers only the values found in the records on the map.

Was this helpful?