Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the InfoWindow Background color

I'm facing the problem,My google Map API showing default InfoWindow with background color white.I want change the White color to Black color. REF CODE:

google.maps.event.addListener(marker, 'mouseover', function() {


    infoWindow.setContent(html);
        infoWindow.open(map, marker);
               //infoWindow.setStyle("background-color: red");


      });
like image 635
prashanthi kontemukkala Avatar asked May 26 '16 09:05

prashanthi kontemukkala


1 Answers

This works for me :

.gm-style .gm-style-iw-d::-webkit-scrollbar-track, 
.gm-style .gm-style-iw-d::-webkit-scrollbar-track-piece,
.gm-style .gm-style-iw-c,
.gm-style .gm-style-iw-t::after { 
  background: red;
}
like image 146
Andrew Forbes Avatar answered Sep 18 '22 15:09

Andrew Forbes