How to configure the map so that the nearest location is automatically displayed?

How to configure the map so that the nearest location is automatically displayed?

The Store Locator extension has the feature of zooming the map to let the customer easily find the nearest location. 

If you would like the nearest location to be shown for a customer automatically, you need to enable the option in the global extension settings: Amasty → Store Locator → Configuration → Map and Customer's Geolocation → Show Nearest Location by Default.



Additionally, the Map Zoom should be set to define the zoom level. In the tooltip, you may view all the details regarding the zoom most popular values.



On the front end, the nearest location will be pre-selected once the customer opens the Store Locator page.

      • Related Articles

      • What's the difference between Store Pickup, Store Locator and Store Pickup with Locator?

        Our Store Pickup extension adds a new free shipping method on the storefront and allows users to choose store pickup at checkout. You may add multiple points of sales and, on the storefront, the extension will automatically detect the nearest store ...
      • The location isn't displayed correctly on the map. How to fix this?

        When the location is configured, sometimes it can be wrongly displayed on the map. This happens when the longitude and latitude for the store location aren't specified correctly. You may check the values of those fields in Content → Locations → ...
      • How to change the location marker?

        The Store Pickup with Locator allows uploading a custom location marker to be displayed on the map. To change the default one, please, navigate to Content → Locations → [Your Locations] → Location On Map and upload the marker image. Here is the ...
      • Store Pickup with Locator

        1. Amasty\StorePickupWithLocator\Api\GuestLocationPickupValuesInterface - class for managin store pickup for guests: POST /V1/amstorepickup/:cartId/saveSelectedPickupValues, method="saveSelectedPickupValues" - deprecated query, retained for backward ...
      • What to do if the map isn't loaded or there're exclamation marks in the address line?

        If the map isn't loaded or/and there are exclamation marks in the address line, firstly, you may check the Console log. Usually, it contains the error that causes the issue with additional information on resolving the misbehavior: Alternatively, you ...