5min

How do I dynamically set the search area in the Store locator

Overview

This section covers how to use the Auto Search Area feature of the Store Locator

Please note this feature is not compatible with β€œHide all markers until a search is done” at present.

Auto Search Area removes the radius setting, and will attempt to intelligently establish what zoom level the map should be set to based on the address searched.

For instance, searching β€œUSA” will display all of mainland USA. Searching β€œCalifornia” will center on California and set the map zoom to a level that will show the whole state. Searching town names will show the whole town, searching a street address will zoom in to the highest level allowed by the β€œMaximum zoom” setting.

Prerequisites

The Following Plugin/s need to be installed and active

  • WP Go Maps
  • WP Go Maps Pro Add-on

Enabling Auto Search Area

Please navigate to

WP Go Maps -> Maps (edit your chosen map) -> Settings -> Store Locator -> General

and select the "Auto" radio button in the Search Area section

Enabling Auto Search Area
Enabling Auto Search Area

ο»Ώ