title: Get the current LatLng dynamically (Google Map)
body: <p>I have the following code below:</p>
  
  <pre><code> &lt;!DOCTYPE html&gt;
   &lt;head&gt;
      &lt;title&gt;Geolocation Service&lt;/title&gt;
      &lt;script src="http://maps.googleapis.com/maps/api/js"&gt;&lt;/script&gt;
      &lt;script&gt;
          function initialize() {
              var lat = ???;
              var lng = ???;
              var map = {
                  center:new google.maps.LatLng(lat,lng),
                  zoom:5,
                  mapTypeId:google.maps.MapTypeId.ROADMAP
              };
              var map=new google.maps.Map(document.getElementById("mapcontainer"), map);
          }
          google.maps.event.addDomListener(window, 'load', initialize);
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="mapcontainer"&gt;
          &lt;!--Map goes here--&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;style&gt;
     *
      {
          margin: 0;
      }
  
      #mapcontainer
      {
          width: 100vw;
          height: 100vh;
      }
  &lt;/style&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In my variable <code>lat</code> and <code>lng</code>, I set them to <code>???</code> because I dont know how to get the my current position. I just started learning Google Geolocation API. Thanks!</p>