title: Uncaught ReferenceError: google is not defined (index):21 initialize ( Google Maps API )
body: <p>Keep on getting this error in the console "Uncaught ReferenceError: google is not defined". Been doing it for a while now but no luck. Any help greatly appreciated. Thanks in advance</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
   &lt;head&gt;
  &lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no" /&gt;
  &lt;style type="text/css"&gt;
    html { height: 100% }
    body { height: 100%; margin: 0; padding: 0 }
    #map-canvas { height: 100% }
    &lt;/style&gt;
  &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"&lt;/script&gt;
  &lt;script type="text/javascript"
    src="https://maps.googleapis.com/maps/api/js?sensor=false"&gt;
    &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
     function initialize(location) {
  
    console.log(location);
  
    var mapOptions = {
  
        center: new google.maps.LatLng(location.coords.latitude, location.coords.longitude),
        zoom: 8
      };
          var map = new google.maps.Map(document.getElementById("map-canvas"),
          mapOptions);
    }
  
    $(document).ready(function()
    {
    navigator.geolocation.getCurrentPosition(initialize);
    });
    &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;div id="map-canvas"/&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>