Problem with Google Maps KEY

0

I have a problem putting the Google Maps map on my site. I already generated a KEY on the panel and I took the simplest example of Google and it is not working.

The displayed error is:

  

"Oops, something went wrong.   correctly. See the JavaScript console for details   technicians. "

What usually happens because of the Key. However, I have already generated MISCELLANEOUS and nothing.

Has anyone ever had this problem?

I used the same Google example

<!DOCTYPE html>
<html>
  <head>
    <title>Simple Map</title>
    <meta name="viewport" content="initial-scale=1.0">
    <meta charset="utf-8">
  <!-- jQuery library (served from Google) -->
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script><style>/*Alwayssetthemapheightexplicitlytodefinethesizeofthediv*elementthatcontainsthemap.*/#map{height:100%;}/*Optional:Makesthesamplepagefillthewindow.*/html,body{height:100%;margin:0;padding:0;}</style></head><body><divid="map"></div>
    <script>
      var map;
      function initMap() {
        map = new google.maps.Map(document.getElementById('map'), {
          center: {lat: -34.397, lng: 150.644},
          zoom: 8
        });
      }
    </script>
    <script src="https://maps.googleapis.com/maps/api/js?key=KEYAQUI&callback=initMap"
    async defer></script>

  </body>
</html>

I put my key right where it has KEYAQUI in the script

Thank you

    
asked by anonymous 28.08.2017 / 18:35

2 answers

2
  • Crome panel, available at: https://console.developers.google.com > Bibliotecas >
  • Search for API: Google Maps JavaScript API
  • Enable the API
  • 28.08.2017 / 19:39
    -1

    Upon checking project "api-project-xxxxxxx" I see that it is not yet attached to a billing account. This can cause a degraded experience [1]. To enable a billing account for a project you may follow these steps [2]:

  • Go to the Google Cloud Platform Console.
  • From the projects list, select the project to re-enable billing for.
  • Open the console left side menu and select Billing.
  • Click Link to billing account.
  • Select a billing account, then click Set account.
  • I did notice that for billing account the limit to the number of projects has been reached, to request an increase in the number of projects you can attach to this billing account you may fill out this form [3]. I also noticed that there is no issue with the payment method on file however, if you would like to update your payment method you can follow the steps here.

    For your concern about activating your APIs on your apps and websites this is beyond the support that I can give since I am directly handling your billing information. I will need to route you to our technical team for this inquiry. They will get in touch with you within 24-48 hours.

    Sincerely,

    Google Maps Platform Billing Support

    [1] - link [2] - link [3] - link [4] - link

        
    04.12.2018 / 04:25