title: Uncaught ReferenceError: google is not defined at google.maps.Marker()
body: <pre><code>&lt;script src="https://maps.googleapis.com/maps/api/js?key=[KEY]&amp;callback=initMap"
              async defer&gt;&lt;/script&gt;
      &lt;script&gt;
              var user_lat,user_lng;
              var map;
              function initMap() {
              map = new google.maps.Map(document.getElementById('map'), {
                              center: {lat:17, lng: 80},
                              zoom: 5
                              });
              }
              var marker = new google.maps.Marker({
                  position: {lat:17,lng:80},
                  map: map,
                  title: 'Hello World!'
              }); 
      &lt;/script&gt;
  </code></pre>
  
  <p>This is for testing purpose. I have to use this concept in another code. kindly help this. </p>
  
  <p>This may be found as duplicate. There are many other posts which report same error, but none of the answers solved my problem.</p>
  
  <p>Map is loading without any problem. initMap() function is executed. But the marker part is not coming.</p>