[ACCEPTED]-google map api v3 background color-google-maps
Accepted answer
You can just set backgroundColor: 'none'
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 11,
center: {lat: 41.876, lng: -87.624},
backgroundColor: 'none'
});
0
although you removed everything there still 3 be blank tiles present.
You may try to hide 2 those tiles, the following CSS works for 1 me:
/*the desired background for the map*/
#map_canvas{background-color:#fff !important}
/*hides the tiles (and maybe more^^)*/
#map_canvas div div div div div div img{visibility:hidden}
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.