This page cannot load Google Maps correctly

Contents

Google Maps is a web-based mapping service that provides geographic regions and road maps of any part of the world. However, some website owners are getting the error »This page cannot load google maps properly» instead of loading google map. This error can also be displayed as »This page did not load Google Maps correctly. See the JavaScript console for technical details «.

0-6-8654188¡UPS! Something went wrong. This page did not load Google maps correctly.

Note: this solution is intended for website owners and not the conventional user.

What causes Google Maps to not load correctly?

Google Map plugins would work great without any errors, but things have changed in recent years when Google changed its rules for websites with embedded maps. Website owners could get this to work earlier just by embedding code, but now they require the API key for Google Map to work properly. If you have already added the API key, you can see the tab “Inspect element -> Console” in Chrome to see the exact reason why Google is not allowing Google Maps to be on their site. This may be due to an incorrect password, the password is restricted, etc.

Add Google API key to your site settings

To make Google Map work for your project or website, you need to create google api key and add it in your site settings. You must access the Google developers to create the key and correct any other errors.

If you have manually inserted the script for the maps, then it should be the following with your API key instead of TU_API_KEY

asyncdefersrc="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"
 type="text/javascript">

Since WordPress is the most popular CMS out there, more than 172 millions of websites that use it; we will demonstrate the steps only for WordPress.

  1. Go to plugin settings, the one you are using for Google Maps and should have an option to add the API key. If you don't have it, you are probably using an older version of a plugin or an outdated plugin. 1-1-24-3638757Google API plugins in WordPress

  2. Keep the API key settings open on your WordPress site.

  3. Go to Google Cloud Resource Manager

  4. Access Google if you have not yet logged in

  5. Click on »Create a project«, Give the project a name and click »Create». create-project-9043015Create a project

  6. Go to the Google website “Activate the API”.

  7. Click »Select a project» at the top, then select the new project you just created and Continue

  8. Press »Activate API and services«

  9. Search for »Maps JavaScript API» and open it.

  10. Then press the button »Enable» enable-api-4863750Enabling the API for the project

  11. Click on the navigation menu, select »API and services» and go to »Credentials«

  12. Click the Create credentials drop-down menu and select “API key”

    Note: you can create a restriction key to prevent unauthorized use if you want

  13. Click on »Close» and then click on the created key

  14. Select »HTTP References» under Application Restrictions.

  15. Add your website URL and click “Keep”

  16. Now copy the key and go back to the WordPress site. create-key-3755799Creating the API key for the site

  17. Scroll down under the left panel and go to »Settings«

  18. You will find an option for »Google API KEY«, open it and paste the key there.

  19. Save the configuration, go to your page and update it.

Note: make sure your billing is enabled because Google only allows $ 300 credit o 12 months of free use (whichever decreases faster). After that, billing must be configured and implemented.

Subscribe to our Newsletter

We will not send you SPAM mail. We hate it as much as you.