title: Change Google maps current location automatically
body: <p>I used below code to show user current location, but when user change his location that the mark (pin) show old location instead of updated location what should I do? Using set interval or refresh every second?</p>
  
  <pre><code>function handle_geolocation_query(position) {
      $('#map_canvas').gmap('addMarker', {
          'position': new google.maps.LatLng(position.coords.latitude, position.coords.longitude),
          'bounds': true,
          'icon': 'http://google-maps-utility-library-v3.googlecode.com/svn/trunk/geolocationmarker/images/gpsloc.png'
      }).click(function () {
          var a = 'Your current location!';
          $('#map_canvas').gmap('openInfoWindow', {
              'content': '&lt;font color="#2a2a2a" size="4"&gt;Location &lt;/font&gt;&lt;br/&gt;&lt;font color="#4a4a4a"&gt;Your current location&lt;/font&gt;'
          }, this);
      });
  }
  </code></pre>