Use the Map section to promote your brick-and-mortar retail stores. This section is designed specifically for your address information and store hours.
Add a Map section to the home page
To add a Map section:
From your Customize theme editor, choose Home page from the pages drop-down menu at the top of the screen.
Scroll to the bottom of the home page sections and choose Add section.
Choose Map from the list of sections.
This opens the Map settings.
Change the Heading text.
Change the Store information text.
These rich text fields allow you to add multiple lines of text, perfect for street addresses and store contact information.
(Optional.) Add an Image for the map section.
This image will display as a fallback image if the map does not load.
The next fields (Map address, Google Maps API key, and Custom map JSON) require some additional set up.
To learn more, see: Get a Google Maps API key
Return to the list of Home page sections to find your new Map section.
Use the drag handles to rearrange the order of you Home page sections:
Use the Save button in the top-right corner when you are finished editing.
The Map section has the following settings:
Add heading text for the section.
We recommend a title of just a few words long.
Add your store information, like your address and hours.
This field accepts rich text elements and multiple lines of text.
Select or upload an image to be displayed.
Add a street address that Google Maps can use to find your store.
Google Maps API key
Add your Google Maps API key. You can generate one using the directions here.
Custom map JSON
You can paste JSON configuration in this field to change the look and feel of your map. Learn more
You can find some map presets using Google's Google Maps Platform Styling Wizard website.
Map link text
Add link text for the map link generated by Google Maps.
Get a Google Maps API key
Here's what you need to do to get a Google Maps API key:
Sign up for Google Maps Platform. (Link.)
Select the Maps product.
Create a project for your Shopify store.
Enter your billing information.
Unless you get more than 500,000 views per month, you will not be charged for map API requests. They will all be paid for with the recurring $200 credit Google gives its Cloud Platform users each month.
After this process, you are granted a Google Maps API key, which you can copy into Spark's map section Google Maps API Key field:
The API key should be a large jumbled string of characters, like this:
We recommend that you restrict your API key so it can only be used on requests
to your store's URL (like
https://your-store.com). You can restrict to
multiple URLs if you also want to add your
address for testing purposes.
The following video shows you how to do this from the Google Cloud Platform Google Maps dashboard here:
If you lost your API key, you can find it again (or regenerate it) from the Google Cloud Platform API Credentials page.
Custom map JSON
Using the Google Maps Platform Styling Wizard website, you can choose different map themes or tweak map settings.
Check out the following video for more information:
Once you have copied the JSON to your clipboard, you can paste it into Spark's Custom map JSON setting.