На основе документации Infowindow :
Класс InfoWindow не предлагает настройки.
Я бы предложил использовать настраиваемое всплывающее окно , так как оно не содержит кнопку закрытия при создании всплывающего окна.
function Popup(position, content) {
this.position = position;
content.classList.add('popup-bubble');
// This zero-height div is positioned at the bottom of the bubble.
var bubbleAnchor = document.createElement('div');
bubbleAnchor.classList.add('popup-bubble-anchor');
bubbleAnchor.appendChild(content);
// This zero-height div is positioned at the bottom of the tip.
this.containerDiv = document.createElement('div');
this.containerDiv.classList.add('popup-container');
this.containerDiv.appendChild(bubbleAnchor);
// Optionally stop clicks, etc., from bubbling up to the map.
google.maps.OverlayView.preventMapHitsAndGesturesFrom(this.containerDiv);
}
Вы можете увидеть пример здесь
Примечание: Пожалуйста, не забудьте добавить свой ключ API в пример.