simple map with visual refresh enabled

Create a simple map with visual refresh enabled. example: https:developers.google.commapsdocumentationjavascriptexamplesmap-simple-refresh

 Enable the visual refresh
google.maps.visualRefresh = true;

var map;
function initialize() {
  var mapOptions = {
    zoom: 8,
    center: new google.maps.LatLng(-34.397, 150.644),
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  map = new google.maps.Map(document.getElementById(\'map-canvas\'),
      mapOptions);
}

google.maps.event.addDomListener(window, \'load\', initialize);