8min

Enabling distance features

Overview

This article coversΒ enabling distance features for WP Go Maps. The following distances features can be enabled:

  • Sort by Distance
  • Show distance from location

Please see ο»Ώο»Ώthis demoΒ showcasing these features working together

Prerequisites

The Following Plugin/s need to be installed and active

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

Please noteΒ that virtually all major browsers nowΒ requireΒ that your site is secured (https://) in order for the users location to be used.Β This feature will not workΒ with the users location on unsecure (http://) sites.

Enabling Distance Display

To enable the feature please navigate to:

WP Go Maps -> Maps (edit your chosen map) -> Advanced Settings

Enable the "Show distance from location?" toggle

Enable the Show distance from location toggle
Enable the Show distance from location toggle

Please remember to save your map.

Enabling this feature will show the distance to the user (or to the searched location) inside InfoWindows and in the Marker Listing (when the sort by distance feature is enabled)

Distance displayed in InfoWindow
Distance displayed in InfoWindow

Enabling Sort by Distance

To enable this setting please navigate to

WP Go Maps -> Maps (edit your chosen map) -> Settings -> Marker Listing -> General

Enabling order by Distance
Enabling order by Distance

Please remember to save your map.

Please noteΒ that if your site is unsecure (http://) or the user declines location sharing, this feature will only work once a Store Locator search has been performed.

ο»Ώ

Updated 21 Jul 2022
Did this page help you?
Yes
No