title: Retrieve current location in javascript using ng-map/angularjs-google-maps
body: <p>How do I retrieve my current location in javascript using the angularjs-google-maps api by allenhwkim?</p>
  
  <p>Currently I am able to access my current location through the html code</p>
  
  <pre><code>&lt;marker animation="DROP" position="current-location"&gt;&lt;/marker&gt;
  </code></pre>
  
  <p>however I wish to implement a current location button which will let me center the map to my current location whenever I am away from my current location itself.</p>
  
  <p>html:</p>
  
  <pre><code>&lt;input type="submit" Value="currentLocation" ng-click ="currentLocation()"/&gt;
  </code></pre>
  
  <p>js:</p>
  
  <pre><code>$scope.currentLocation = function(){
          //how do i get current location?
  };
  </code></pre>
  
  <p>thank you!</p>