Article •
Map
Table of contents
Show customers the location of your physical store with a map. Add opening hours and contact information to let customers contact you at your location.
Get a Google Maps API key
Emporium uses the Google Maps Embed API from the Google Maps Platform to display an interactive map on your online store. By using the Google Maps Embed API, you accept the Google Maps Platform Terms of Service.
To get a Google Maps API key, you must:
- create a Google Cloud Project,
- enable the Google Maps Embed API,
- create credentials from the Google Cloud Console.
Create a Google Cloud Project
- Go to the Google Cloud Console.
- Optional: If prompted, sign in to Google Cloud Platform with your Google Account.
- Click CREATE PROJECT.
- In the Project name field, input a name.
- Click CREATE.
Enable the Google Maps Embed API
- Go to Maps Embed API in the Google Cloud Console.
- Click ENABLE.
- In the dialog that appears, click CANCEL.
The Google Maps Embed API is available at no charge, and you can use the API without having a billing account.
Create an API key
- Go to the Google Cloud Console.
- Go to APIs & Services → Credentials.
- Click CREATE CREDENTIALS.
- Select API key.
- In the dialog that appears, copy your API key.
Restrict your Google Maps API key
It’s recommended to restrict your API key to prevent other people from using it. If you don’t restrict your API key, then it could be used on websites unknown to you.
Add application restrictions
- Go to the Google Cloud Console.
- Go to APIs & Services → Credentials.
- Under API Keys, select your API key.
- Under Application restrictions, check HTTP referrers (web sites).
- Click SAVE.
Add website restrictions
- Go to the Google Cloud Console.
- Go to APIs & Services → Credentials.
- Under API Keys, select your API key.
- Under Website restrictions, click ADD AN ITEM.
- In the Referrer field, input your first referrer value.
- Click DONE.
- In the Referrer field, input your second referrer value.
- Click DONE.
- Click SAVE.
e.g. Your online store’s domain is example.com.
Your two referrer values are:
- example.com
- example.com/*
e.g. Your online store’s domain is example-store.myshopify.com.
Your two referrer values are:
- example-store.myshopify.com
- example-store.myshopify.com/*
Add API restrictions
- Go to the Google Cloud Console.
- Go to APIs & Services → Credentials.
- Under API Keys, select your API key.
- Under API restrictions, check Restrict key.
- Click Select APIs, select Maps Embed API and click OK.
- Click SAVE.
Get a Place ID
- Go to Place IDs on the Google Maps Platform.
- In the interactive map, in the Enter a location field, search for a location.
- In the list that appears, select a location.
- Copy the location’s Place ID.
Add a Google Map
- From your Shopify admin, go to Online Store → Themes.
- Next to Emporium, click Customize.
- Click Add section, then click Map.
- In the Google Maps API key field, input your API key.
- In the Google Maps Place ID field, input a Place ID.
Display opening hours
Let customers know when to visit your physical store.
- From your Shopify admin, go to Online Store → Themes.
- Next to Emporium, click Customize.
- Under the Map section, click Add block, then click Address.
- In the Address rich text field, input some opening hours.
Use Shift + Enter on the keyboard to enter a new line without a space.
Add an email address
- From your Shopify admin, go to Online Store → Themes.
- Next to Emporium, click Customize.
- Under the Map section, click Add block, then click Email address.
- Optional: Check Show icon.
- In the Email field, input an email address.
- Optional: Check Enable link.
Add a phone number
- From your Shopify admin, go to Online Store → Themes.
- Next to Emporium, click Customize.
- Under the Map section, click Add block, then click Phone number.
- Optional: Check Show icon.
- In the Phone number field, input a phone number.
- Optional: Check Enable link.