title: Auto refresh Google Map
body: <p>I'm looking for a method to my Google map auto refresh for each "n" seconds, now i'm refreshing all page, but i must to refresh only the map,</p>
  
  <p>follow my JS code:</p>
  
  <pre><code>var DEFAULT_ZOOM = 14;
          function initialize() {
              var map;
  
              var latlng = new google.maps.LatLng(-19.0, -59.0);
              var myOptions = {
                  zoom: parseInt(getCookie("zoom_gm")),
                  center: latlng,
                  mapTypeId: google.maps.MapTypeId.ROADMAP
              };
  
              map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  
              initMarkers(map);
              var zm = DEFAULT_ZOOM;              
  
              google.maps.event.addListener(map, 'zoom_changed', 
                  function(){
                      zm = map.getZoom();
                      setCookie("zoom_gm", zm);
                  }
              );
          }
  </code></pre>