I placed a custom png map on a google map. I deleted everything from Google maps to only display my custom map. The background color is blue and I want to change it to white. Here is the code:
function initialize() { var myLatLng = new google.maps.LatLng(39, -98.5); var myOptions = { maxZoom: 4, minZoom: 4, zoom: 4, panControl: false, draggable: false, center: myLatLng, disableDefaultUI: true, mapTypeId: google.maps.MapTypeId.ROADMAP, backgroundColor: '#FFFFFF' }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var mapStyles = [ { featureType: "all", stylers: [ { visibility: "off" }] }]; map.setOptions({styles: mapStyles}); }
It only blinks white, and then turns to blue. How to set it to white or transparent?
rstewart
source share