Change My Map Using Snazzy Maps

Modified on Fri, 01 Sep 2023 at 03:32 AM

Overview

This article outlines how to change your map's design by using Snazzy Maps. Snazzy Maps is a free service that allows you to create your own styling for Store Locator.

Find a design you like, then copy and paste the code into Store Locator's display settings.


Setup

  1. From the Shopify admin, select Apps.
  2. Select Store Locator.
  3. Select Settings.

    select settings

  4. Select Display Settings.

    select display settings

  5. Copy and paste this into the Page Header HTML box:
    <script>
    var old_fixURLS = fixURLS;
    
    fixURLS = function (){
    var map= boldMap;
    
    if (typeof map === 'undefined') {
    return
    }
    styles=XXXX;
    
    map.setOptions({styles: styles});
    old_fixURLS();
    };
    
    </script>

    copy and paste this code in the Page Header HTML box

  6. Head over to Snazzy Maps to find your desired map style.
  7. Copy the code in the JavaScript Style Array.
  8. Replace the XXXX in the Page Header HTML box with the code copied in step 5.

    paste the code in the box

  9. Select Save.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article