title: Call GoogleMap API in javascript file
body: <p>I'm trying to call / load GoogleMap api in a javaScript file</p>
  
  <pre><code>    jQuery(function($) {
      // Asynchronously Load the map API 
      var script = document.createElement('script');
      script.src = "https://maps.googleapis.com/maps/api/js?
  key=YOUR_API_KEY&amp;callback=initMap";
      document.body.appendChild(script);
      });
  </code></pre>
  
  <p>I get the error message "Google Maps API error: MissingKeyMapError"</p>
  
  <p>I found this code using the tutorial here > <a href="https://www.youtube.com/watch?v=P6wFYOtXwCQ&amp;t=1s" rel="nofollow noreferrer">https://www.youtube.com/watch?v=P6wFYOtXwCQ&amp;t=1s</a></p>