The Google Maps visual refresh brings a fresh new look to applications using the Google Maps JavaScript API. The refresh is a seamless upgrade that aligns the Google Maps API user experience with the new Google Maps. See more here: https:developers.google.commapsdocumentationjavascriptbasics#VisualRefresh
Note: You must enable the google.maps.visualRefresh
property before the map is rendered.
Enable the visual refresh google.maps.visualRefresh = true; then call the rest of your map function(s) 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);