Oops! Something went wrong. This page didn't load Google Maps correctly. See the JavaScript console for technical details
<p>Oops! Something went wrong.
This page didn't load Google Maps correctly. See the JavaScript console for technical details.</p>

<p>i don't know why </p>

<p><a href="http://i.stack.imgur.com/GhWdT.png" rel="noreferrer">API error: RefererNotAllowedMapError </a></p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Simple Map&lt;/title&gt;
    &lt;meta name="viewport" content="initial-scale=1.0"&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;style&gt;
      html, body {
        height: 100%;
        margin: 0;
        padding: 0;
      }
      #map {
        height: 100%;
      }
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id="map"&gt;&lt;/div&gt;
    &lt;script&gt;
      var map;
      function initMap() {
        map = new google.maps.Map(document.getElementById('map'), {
          center: {lat: -34.397, lng: 150.644},
          zoom: 8
        });
      }
    &lt;/script&gt;
    &lt;script src="https://maps.googleapis.com/maps/api/js?key=myAPI&amp;callback=initMap"
    async defer&gt;&lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;</code></pre>
</div>
</div>
</p>