GeoDirectory maps don’t move to the visitor’s position on their own. With Zoom level set to Auto, a map fits itself to the listings it shows. To start visitors at their own location, have them search near their position: the search results page then lists the listings around them, and a map on that page shows the same area.
Near: My Location in the search bar
The Near field of the GeoDirectory search bar offers “Near: My Location”. The browser asks the visitor to share their position, and the search returns listings within your radius of that point. Browsers only allow location sharing on sites served over HTTPS.
The radius is set in GeoDirectory > Settings > General > Search, “Search near radius”. With the Advanced Search add-on, visitors can pick their own distance if you add the Search By Distance field.
The Near Me button
The Location Manager add-on has a GD > Near Me Button block you can place anywhere, for example above your map. One click shares the visitor’s position and loads the listings near them.
Things to know
- Results near the visitor are limited by the radius, so they aren’t the same as the listings of the city they are in.
- Visitors can widen the view again by searching another place or choosing a location in the Location Switcher.
- For a map on the search results page, add a GD > Map block with Map type set to Auto to the page set as Search Page.