This Page Can't Load Google Maps Correctly: How to Fix the Map on Your Website

Short answer
What does "This page can't load Google Maps correctly" mean?
"This page can't load Google Maps correctly" is an error state that tells you Google Maps Platform could not authorize your map. The map code runs, but Google declines the request because the API key is missing, restricted or expired, or because billing is off for the project. As a result, the map turns dark or never appears.
You open your contact page and, instead of a map, you see a gray box, a darkened background or a dialog that says "This page can't load Google Maps correctly." Your first worry is probably that customers can't find you and that the site looks broken. So take a breath. In most cases the map itself is fine; the problem sits in the API key, the billing account or a permission setting behind it. In this guide, Talha Aslan and our team explain how to find the cause, which fixes you can make yourself and where you actually need a developer.
Google's official Maps JavaScript API error messages page describes the symptom in plain terms: the map goes dark and shows a "for development purposes only" watermark. The same page says this usually points to a problem with the API key or billing. The exact wording of the pop-up dialog does not appear in that official document. So the text you see may vary by browser and language.
First, a quick vocabulary note helps here. An API is an interface that lets two pieces of software send requests to each other. An API key is a long code that proves to Google who is sending the request. In other words, the warning means Google asked "who is calling, and are they allowed?" and did not get a satisfying answer.
Does this error hurt your Business Profile or your Google rankings?
No, not directly. In practice, your Google Business Profile, your listing on Maps and your reviews live in a separate system. The map on your website, then, is simply a window that displays that listing. When the window breaks, the listing stays where it is, and customers can still find you in the Google Maps app.
Still, we recommend fixing it soon. Above all, a dark box on a contact page signals "nobody maintains this site." That matters most for visitors who arrive from an ad and meet your brand for the first time. They see a broken area right next to your address, and their trust drops. So the technical problem is small, but the perception problem is real.
Let's also separate two issues that people often mix up. If your business does not show up on Google Maps at all, that is a different topic. For that case, read our guide on a verified business that is not showing on Google Maps. This article only covers why the map embedded inside your own website fails to load.
How can you tell which method your site uses to show the map?
Half the fix is knowing how the map got onto the page, because each of the three common methods breaks in its own way. You can usually tell them apart without technical knowledge:
- Share and embed: Ready-made code copied from the "Share or embed map" menu in Google Maps. The address normally contains no key, and this method does not throw key errors.
- Maps Embed API: It also uses a frame (iframe), but the address carries a key parameter. A key problem can break it.
- Maps JavaScript API: Interactive maps with custom markers and styling. It needs a key and billing, and it is where "This page can't load Google Maps correctly" shows up most often.
An iframe is an HTML element that places another web page inside your page, like a window. If you don't know which method you have, ask the person who built your site: "Did you add the map with an iframe or with the JavaScript API?" On WordPress, a map plugin that asks for an API key in its settings almost certainly relies on the JavaScript API.
What causes the "this page can't load Google Maps correctly" error?
When we look at the official error list, the causes fall into a few groups. Here they are in the order we run into them most often in practice:
- Billing is off: The Google Cloud project has no billing account, or the card on file no longer works.
- The API is off: A key exists, but the Maps JavaScript API is not active in the project.
- Your domain is missing from the allowed list: Someone limited the key to specific websites, and your address is not on that list.
- The key is wrong or expired: The project no longer exists or the key changed, while the site still carries the old key.
- There is no key at all: The map code loads without a key parameter.
- Usage limits ran out: The project hit its quota.
Moreover, all of these share one trait: they are settings on the Google Cloud account, not flaws in your website. That means you rarely need to rebuild anything. However, you need to identify the cause from the error code the browser reports, not from a guess.
How do you read the error code in the browser console?
The console is a hidden notebook where the browser writes down errors on the page. Google's official documentation recommends diagnosing map problems there. Here are the steps in Chrome:
- Open the page where the map looks broken.
- Open the browser menu, go to More tools and then Developer tools. On most computers, the F12 key opens the same panel.
- Once the panel is open, press ESC to toggle the JavaScript console.
- Look for a red line that starts with "Google Maps API error:".
- Write down the word after the colon, for example
RefererNotAllowedMapError. The link next to the message takes you to the official explanation.
According to the official page, warnings start with "Google Maps API warning:" instead. An error stops the map from working, while a warning usually flags a configuration mistake. Taking a screenshot and sending it to whoever built your site also works well. That way they go straight to the fix instead of guessing.
What do the console error codes say, and who should fix them?
Next, the diagnostic table below matches the most common codes from the official list with the symptom you see. In the last column, we state honestly who can make the fix.
| Symptom | Console code | Meaning | Who fixes it? |
|---|---|---|---|
| Dark map with watermark | BillingNotEnabledMapError | Billing is not active on the project | You can (if you own the Cloud account) |
| Map never appears | ApiNotActivatedMapError | Maps JavaScript API is not active | You can |
| Broken only on the live site | RefererNotAllowedMapError | Your URL is not on the key's allowed referrers | You can, carefully |
| Key exists but Google refuses it | ApiTargetBlockedMapError | The key has no permission for this API | You can |
| Key not found | InvalidKeyMapError | The key in the code is invalid | Developer needed (code change) |
| No key in the code | MissingKeyMapError | A required parameter is missing from the loader | Developer needed |
| Old key stopped working | ExpiredKeyMapError | The key expired or Google does not recognize it | Developer needed |
| Map stops suddenly during the day | OverQuotaMapError | Usage limits ran out | Together: review quota and usage |
The "developer needed" rows require changes to your site's code. If neither you nor the person who built the site can change that code safely, it makes more sense to treat the map and the contact page as part of a proper round of web design services. That way, the same problem does not return with the next update.
Who owns the Google Cloud account, and how do you get access back?
In practice, the biggest time sink in map problems is usually administrative, not technical. Most steps in the table require access to the Google Cloud console. Yet in many businesses, the person who built the site years ago created the project under a personal account, and nobody remembers the login today.
First, ask one question: which email address receives the billing notices? If your card statement shows Google Cloud charges, the billing account is likely in your name, so you can sign in with that account and look for the project. If you never see any charges, someone else probably holds the project.
In that case, ask your former developer or agency to add your company account to the project as an authorized user. If you can't reach them, a new project and a new key are often faster than recovering the old one. Even then, placing the new key in your site's code is a developer task. In short, once you settle access, every later step takes minutes.
That said, our advice is simple: whoever creates the account, the business should own it. People change jobs and freelancers move on, but the company account stays.
Why does Google require billing, and is the map paid?
Google's official getting started guide and its API security best practices page point to the same rule: to run the Maps JavaScript API on a live site, you need a Google Cloud project with billing enabled and a valid API key. Adding a card does not mean you pay every month, but you do need to own the account.
For pricing, however, the only reliable source is the official Google Maps Platform pricing page. It lists a free usage cap column next to each product. Dynamic Maps is a billable item with a limited free cap. For Maps Embed, the same column says "Unlimited." Because these figures can change, we don't quote numbers here; check the current values on the official page.
One warning deserves a direct mention. The official getting started guide states that you are financially responsible for charges caused by abuse of unrestricted API keys. So restricting a key is not only a security matter but also a budget matter. Therefore, right after you turn on billing, set a budget alert and restrict the key.
How do you fix RefererNotAllowedMapError?
This code tells you that someone limited the key to certain websites and that the page you are on is not on the list. Restricting a key is good practice; the problem is an incomplete list. The official security guide gives these rules:
- Enter the whole referrer, including the protocol, for example
https://example.com. - You can authorize all subdomains with a wildcard:
https://*.example.com. - Be careful with entries that include a path, because most browsers strip the path from cross-origin requests for privacy reasons.
In practice, we see the same gaps again and again. For example, only the www or only the non-www version is on the list. An old http entry stays after a move to https. Or nobody added the staging address. To fix it, open the key in the Google Cloud console, add the missing address under website restrictions and save.
After saving, clear your cache and reload the page. The official guide gives no exact time for restriction changes to take effect. So wait a few minutes before you test again. If the error persists, check whether the console code changed.
What is the difference between ApiNotActivatedMapError and ApiTargetBlockedMapError?
The two codes look similar, but they point to different doors. ApiNotActivatedMapError means nobody turned on the Maps JavaScript API in the project. The key is valid, but the project never received the instruction "enable the map service." The fix, therefore, is to enable that API from the API library in the Cloud console.
ApiTargetBlockedMapError, on the other hand, means the key's API restrictions do not allow this service. For example, if you limited the key to an address lookup service only, Google will refuse the map request. The official security guide recommends limiting every key with one application restriction and one or more API restrictions. Just don't forget to include the API you actually use.
Also, the getting started guide notes that after you enable an API, you might have to wait a few minutes before you can make a request to it. So if you switch the setting on and the error is still there a second later, don't panic; try again shortly. Put simply, the first code says "the service is off" and the second says "this key has no permission for the service."
When is the keyless embed option good enough?
If you only want to show your location on a simple contact page, you often don't need an API key at all. The Google Maps Help page on sharing and embedding explains how to get the ready-made code:
- On your computer, open Google Maps and go to the location you want to show.
- Open the menu at the top left.
- Click "Share or embed map."
- Choose "Embed a map," click "Copy HTML" and paste the code into the right spot on your site.
The help page also notes that you can't share a map with your saved locations or a map with a distance measurement. The upside of this method is that you avoid keys and billing entirely. On the downside, customization stays narrow: you can't manage your own markers, several locations or a custom map style.
If you want to plan the rest of that page well, our guide to contact page design best practices covers phone, form and address layout in detail.
How does a keyed map compare with a simple iframe embed?
To make the decision easier, we placed the three methods side by side. The cost row relies on the free usage cap column of the official pricing page, so check the current values there.
| Criterion | Share and embed | Maps Embed API | Maps JavaScript API |
|---|---|---|---|
| API key | Not needed | Carried in the URL | Required |
| Cost status | Keyless ready-made code | Unlimited free usage on the pricing page | Billable item with a limited free cap |
| Customization | Very little | Limited | Broad: styling, markers, multiple locations |
| Risk of breaking | Low | Medium (key settings) | Higher (key, billing, quota) |
| Best fit | Single-location business | Simple map you still want to manage | Store locator, custom map experience |
The official Maps Embed API getting started guide states that all Maps Embed API requests are available at no charge with unlimited usage. Consequently, a JavaScript API setup for a single address only adds a point of failure and an account to manage. We cover the speed side separately in does embedding Google Maps slow down a website.
Is a plain address with a directions link enough instead of a map?
For some businesses, yes. The job of a map is to bring customers to your door, and sometimes a single link does that better. A visitor on a phone will open the Google Maps app to navigate anyway. So writing your address as plain text with a "Get directions" link next to it can be faster and less fragile than an embedded map.
This approach has three advantages. First, keys, billing and quotas disappear from the equation. Second, the page loads lighter. Third, the address stays on the page as text that search engines and screen readers can read.
There is one drawback, though. Specifically, visitors who browse on a desktop like to see your location at a glance. For shops, showrooms and offices that expect walk-ins, a small map builds trust. Our recommendation, therefore, is to combine both: the address and a directions link at the top, a light iframe map below. That way, customers still find you even if the map fails for any reason.
How do you fix the problem step by step?
If you work through the checklist below in order, you can narrow down most problems quickly. After each step, check whether the console code changed.
- Identify how the map got onto the page (iframe or JavaScript API).
- Open the console and note the code on the "Google Maps API error:" line.
- Find out whose account holds the Google Cloud project. If you have no access, request it first.
- Confirm that billing is active and the payment method on file is valid.
- Make sure the Maps JavaScript API is active in the project.
- Add your site's full address to the key's website restrictions.
- Confirm that the API restrictions include the service you use.
- Clear your cache, reload the page and check the result.
If you still can't see the change after the last step, the problem may sit in a cache rather than in the map. We explain how to clear browser, plugin, server and CDN layers in website changes not showing. If the console code stays the same even after that, the issue has moved to the next level: the code.
Example scenario: why did the map go dark after a domain change?
For instance, let's walk through an example scenario. A furniture store moves its website from an old domain to a new one. After the move, every page works, but the map on the contact page goes dark. The owner first blames the theme update, then the server.
When they open the console, they find a single line: RefererNotAllowedMapError. The key still only allows the old domain. Nothing changed in the code; Google simply does not recognize the new address. The fix is to add the new domain to the key's website restrictions and to cover both the www and the non-www version.
The lesson, therefore, is clear. Map errors often appear right after a change such as a migration, a redesign or a move to https. That is why we recommend a checklist before every major change. Put the allowed addresses of your API keys, your tracking codes and your form connections on it. Then launch day brings no surprises.
The scenario has a second act, too. After adding the new domain, the owner notices that the map is still dark on the staging site. The reason is simple: staging runs on a different subdomain, and that address is not on the list either. There are two options. You can create a separate key limited to the staging address, or you can cover subdomains with a wildcard entry. We prefer the first. Separate live and test keys limit the damage if one of them leaks.
What should you do if a plugin, theme or cookie banner broke the map?
If the console shows no Google Maps error but the map still fails, the cause likely sits inside your site. Three sources come up often.
The first is a plugin or theme update. A new version of the map plugin may have reset its settings or may now conflict with another plugin. You can find a safe way to locate and undo the conflict in our guide on what to do when your website broke after a plugin update.
The second is the cookie consent tool. Some consent tools block third-party maps until the visitor agrees, leaving an empty area behind. That is a setting of the tool, not a bug. However, if the area shows no clear message such as "allow external content to view the map," it simply looks broken. We discuss a good setup in cookie banner design that is compliant and user friendly. For the privacy side of embedded maps, see our guide on how to build a GDPR compliant website; it is not legal advice.
Finally, the third is caching and minification plugins. When these tools combine or delay the map code, the load order can break.
Why does the map look broken only for some visitors?
Sometimes the map works for you, but a customer writes that "the map on your site won't load." In that case, the key on Google's side is probably fine; the difference lies in the visitor's setup. These are the possibilities we see most:
- The visitor declined external content in the cookie banner, so the consent tool put the map on hold.
- An ad blocker or privacy extension stopped the code that comes from Google.
- Corporate networks can block some external addresses, and the visitor is browsing from work.
- The browser shows an old cached version from before you fixed the problem.
To diagnose it, ask the visitor to open the page in a private window and on another device. If the map works in a private window, an extension or the cache is the cause. Either way, the best step on your side is a clear message in the map area, such as "allow external content to view the map," with the address in plain text next to it. Then visitors can read the address even if the map does not open.
Google's official error page also notes that visitors who don't own the site can't fix these errors. They can only notify the owner. So the fix always sits on your side.
What are the most common mistakes?
Most map problems come from small decisions during setup. These are the mistakes we see again and again:
- Leaving the key unrestricted and open to abuse.
- Using one key across several sites, apps and staging environments.
- Creating the Cloud project under the builder's personal account and leaving the business without access.
- Connecting billing to a card that will expire and never setting a budget alert.
- Setting up the JavaScript API just to show a single address.
- Never checking the pin and sending customers to the wrong street.
Still, don't underestimate the last point. Even if the map loads, a misplaced pin still gets visitors lost. For pin problems, read our guide on how to fix it when your Google Maps business location is wrong, and to get exact coordinates, see how to find coordinates in Google Maps. The official security guide also recommends a separate key for each app, so if one key leaks, you only replace that one.
How should you build your site so this page can't load Google Maps correctly never appears again?
Fixing the problem once is not enough; the real goal is to make sure the warning "this page can't load Google Maps correctly" does not come back. For that, we recommend building the site on these principles from the start:
- Keep ownership with the business: Create the Google Cloud project under your company account and add your team as authorized users.
- Choose the right method: An iframe for one address, the JavaScript API for a store locator.
- Use separate, restricted keys: One key for the live site and one for staging, each with website and API restrictions.
- Document everything: Write down which key lives where, under which account and for which service, on a single page.
- Think about performance: Load the map lower on the page and only when someone needs it.
For the last point, lazy loading helps a lot. We also explain the speed cost of map code in how JavaScript affects site speed. For businesses with locations and reservations, our guide to restaurant website design with menus, reservations and Google Maps shows a good map placement.
How can our web design team help at this point?
Reading a console code and adding an address to an allowed list is something most business owners can do on their own; we showed that honestly above. However, when the problem lives in the code, in a plugin conflict or in a messy account structure, fixing the foundation lasts longer than applying patch after patch.
On business websites, our team handles information architecture, speed and Core Web Vitals targets, SEO foundations, an admin panel and measurement setup in one plan. We also place trust and contact elements such as the map, the form and click to call close to the moment of decision, and we track them from day one. Nothing goes into code before you approve the design, and you see every page on a staging site before launch. Finally, we document the code we hand over, so another developer can take it over later.
If you want a site where the map, the forms and the speed are right from the start, take a look at our corporate website design process and send us your requirements in writing. There is no rush. Try the steps in this guide first, and if the problem keeps coming back, then let's talk.



