Question

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!

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top