Pergunta

is it possible to set the height and the width for the google maps infoWindow?

I ask this because i have an ugly scrollbar on the right side

enter image description here

Thanks in advance!

Foi útil?

Solução

Just wrap the infowindow content in a div:

var infoWindow = new google.maps.InfoWindow({
    position: map.getCenter(),
    content: '<div id="iw"><strong>Nachtclub Bar Rouge</strong><br />Französische Straße 15<br />10117 Berlin Mitte</div>'
});
infoWindow.open(map);

example

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top