(Maps JavaScript API Guide)
Overview
To display an interactive Google Map on your website, Google requires a Google Cloud project with the Maps JavaScript API enabled. This is a one-time setup and ensures your map is secure, reliable and compliant with Google’s usage requirements.
Most standard business websites fall within Google’s free monthly usage allowance.
What You’ll Need
- A Google account (Gmail or Google Workspace)
- A debit or credit card (required by Google for billing setup)
- Around 10–15 minutes
Step 1: Create or Sign In to a Google Account
If you already use Gmail or Google Workspace, you can use that account.
👉 Create a Google account:
https://accounts.google.com/signup
👉 Sign in to Google Cloud Console:
https://console.cloud.google.com
Step 2: Create a Google Cloud Project
- In Google Cloud Console, click Select a project (top navigation)
- Click New Project
- Enter a project name Example: Company Name – Website Map
- Click Create
👉 Google Cloud Console projects page:
https://console.cloud.google.com/projectcreate
Step 3: Enable Billing (Required)
Google Maps APIs require billing to be enabled, even if usage stays within free limits.
- In the main menu, go to Billing
- Create or link a billing account
- Assign it to your new project
👉 Billing setup page:
https://console.cloud.google.com/billing
💡 You can set spending alerts to avoid unexpected charges (recommended).
Step 4: Enable the Maps JavaScript API
- Go to APIs & Services → Library
- Search for Maps JavaScript API
- Click Enable
👉 Direct link to Maps JavaScript API:
https://console.cloud.google.com/apis/library/maps-backend.googleapis.com
Step 5: Create an API Key
- Go to APIs & Services → Credentials
- Click Create Credentials
- Select API Key
- Copy the API key — you’ll need to provide this to your web developer
👉 Credentials page:
https://console.cloud.google.com/apis/credentials
Step 6: Secure the API Key (Very Important)
To prevent unauthorised use, your API key should be restricted.
Restrict by Website (HTTP Referrers)
- Click on the API key to edit it
- Under Application restrictions, select Websites
- Add your website domains, for example:
- https://www.yourwebsite.co.uk/*
- https://yourwebsite.co.uk/*
- Include staging or test domains if applicable
Restrict by API
- Under API restrictions, choose Restrict key
- Select Maps JavaScript API
- Save changes
Step 7 (Recommended): Set a Budget Alert
To manage costs:
- Go to Billing → Budgets & alerts
- Create a monthly budget
- Enable email notifications
👉 Budgets & alerts page:
https://console.cloud.google.com/billing/budgets
What to Send Your Web Developer
Once setup is complete, please provide:
- ✅ Your Google Maps API key
- ✅ Confirmation billing is enabled
- ✅ A list of approved website domains (live and staging)
Why This Is Required
Google requires this setup to:
- Protect your account from unauthorised usage
- Ensure billing transparency
- Allow interactive maps to function correctly
This is a standard Google requirement and applies to all modern websites using Google Maps.
Need Help?
How to Set Up Google Maps for Your Website
(Maps JavaScript API Guide)
Overview
To display an interactive Google Map on your website, Google requires a Google Cloud project with the Maps JavaScript API enabled. This is a one-time setup and ensures your map is secure, reliable and compliant with Google’s usage requirements.
Most standard business websites fall within Google’s free monthly usage allowance.
What You’ll Need
- A Google account (Gmail or Google Workspace)
- A debit or credit card (required by Google for billing setup)
- Around 10–15 minutes
Step 1: Create or Sign In to a Google Account
If you already use Gmail or Google Workspace, you can use that account.
👉 Create a Google account:
https://accounts.google.com/signup
👉 Sign in to Google Cloud Console:
https://console.cloud.google.com
Step 2: Create a Google Cloud Project
- In Google Cloud Console, click Select a project (top navigation)
- Click New Project
- Enter a project name Example: Company Name – Website Map
- Click Create
👉 Google Cloud Console projects page:
https://console.cloud.google.com/projectcreate
Step 3: Enable Billing (Required)
Google Maps APIs require billing to be enabled, even if usage stays within free limits.
- In the main menu, go to Billing
- Create or link a billing account
- Assign it to your new project
👉 Billing setup page:
https://console.cloud.google.com/billing
💡 You can set spending alerts to avoid unexpected charges (recommended).
Step 4: Enable the Maps JavaScript API
- Go to APIs & Services → Library
- Search for Maps JavaScript API
- Click Enable
👉 Direct link to Maps JavaScript API:
https://console.cloud.google.com/apis/library/maps-backend.googleapis.com
Step 5: Create an API Key
- Go to APIs & Services → Credentials
- Click Create Credentials
- Select API Key
- Copy the API key — you’ll need to provide this to your web developer
👉 Credentials page:
https://console.cloud.google.com/apis/credentials
Step 6: Secure the API Key (Very Important)
To prevent unauthorised use, your API key should be restricted.
Restrict by Website (HTTP Referrers)
- Click on the API key to edit it
- Under Application restrictions, select Websites
- Add your website domains, for example:
- https://www.yourwebsite.co.uk/*
- https://yourwebsite.co.uk/*
- Include staging or test domains if applicable
Restrict by API
- Under API restrictions, choose Restrict key
- Select Maps JavaScript API
- Save changes
Step 7 (Recommended): Set a Budget Alert
To manage costs:
- Go to Billing → Budgets & alerts
- Create a monthly budget
- Enable email notifications
👉 Budgets & alerts page:
https://console.cloud.google.com/billing/budgets
What to Send Your Web Developer
Once setup is complete, please provide:
- ✅ Your Google Maps API key
- ✅ Confirmation billing is enabled
- ✅ A list of approved website domains (live and staging)
Why This Is Required
Google requires this setup to:
- Protect your account from unauthorised usage
- Ensure billing transparency
- Allow interactive maps to function correctly
This is a standard Google requirement and applies to all modern websites using Google Maps.
Need Help?
If you’re unsure at any point, your web development team can guide you through the process or check your setup before the map is added to your website.