Событие google.maps.event.addListener () ожидает создания HTML-структуры информационного окна 'domready' и до того, как применяются открытия определенных стилей информационного окна.
Я работал с этим примером:
google.maps.event.addListener(infowindow, 'domready', function() {
// Reference to the DIV which receives the contents of the infowindow using jQuery
var iwOuter = $('.gm-style-iw');
var iwBackground = iwOuter.prev();
// Remove the background shadow DIV
iwBackground.children(':nth-child(2)').css({'display' : 'none'});
// Remove the white background DIV
iwBackground.children(':nth-child(4)').css({'display' : 'none'});
});
Тогда
.gm-style-iw {
width: 350px !important;
top: 0 !important;
left: 0 !important;
background-color: #fff;
box-shadow: 0 1px 6px rgba(178, 178, 178, 0.6);
border: 1px solid rgba(72, 181, 233, 0.6);
border-radius: 2px 2px 0 0;
}
Результат: ![enter image description here](https://i.stack.imgur.com/EhY8g.png)
Ссылка: http://en.marnoto.com/2014/09/5-formas-de-personalizar-infowindow.html
Спасибо