Another map key is preventing the map from loading correctly

If you’ve successfully set up a Google Maps key in your Stockist dashboard, but the map on your website is showing darkened text or displaying an error message, the problem may be caused by another map key in your site’s code.

Background

In order to display a Google map on your website, Stockist will attempt to load the Google Maps plugin into the page using the key you provided.
The Google Maps plugin can only be loaded into each page a single time. If other code on your website has already loaded Google Maps into the page, it’s not possible to re-load the plugin using the key you provided. In this case, Stockist will display the map using the copy of the plugin that’s already present in the page. If the plugin was loaded with an invalid key, your map may show an error message.
This issue can happen if a developer or IT staff member previously added code to your site to use Google Maps, even if there isn't currently any other map visible on your site.
If your site is hosted using Shopify, the following apps are known to cause this issue:
  • NDN Store Locator (now discontinued)
  • Globo Store Locator
Note that the issue may persist even after uninstalling these apps, as their changes to your site's theme are not reverted when removing the app.

Fixing the issue

To fix the issue with your map, the extra code that is loading Google Maps will need to be removed from your website. The exact steps depend upon where and how the code was added (for example, which app added it), so feel free to reach out to our support team for assistance.
We have instructions for a few common situations below:

NDN Store Locator on Shopify (aka “Store Locator Manage”)

Remove the NDN app's code from your theme.liquid file by deleting the line that looks like this:
<script src="//maps.googleapis.com/maps/api/js?libraries=places&key=AIzaSyAXZVsGgGJirVcDoTQEjwVYe48yXVaCpds" type="text/javascript"></script>

Globe Store Locator on Shopify

Other situations

If your situation isn’t covered by one of the categories above, or if you’re not sure how to proceed, feel free to reach out to our support team and we’re happy to assist you.