How do I set a specific height for Google Maps?
3 answers
Maybe this is what you are looking for? How do I set google map markers to their maximum height?
just put the content in a div with a scrollbar:
div.infowindow {
max-height:250px;
overflow-y:auto;
}
+5
source to share
Actually, there is currently a maxHeight option. It is not documented, so it may be removed in a future release without warning.
maxHeight doesn't do anything useful by itself. If the content is greater than maxHeight, it just overflows. So you also need to set the undocumented autoScroll option, then the infowindow value will be capped at maxHeight and any additional content scrolled.
{maxHeight: 400, autoScroll: true}
However, this approach does not offer any advantages over Aaron's method and has the disadvantage that it will not be reliable in the future.
0
source to share