I'm using google maps javascript API, I want to create a small InfoWindow with 50px height, I user infowindow.SetOptions({height:50}) but it does nothing! how can I set my height?
Asked
Active
Viewed 1,236 times
1
-
1http://stackoverflow.com/questions/3860277/google-maps-how-to-create-a-custom-infowindow – RhinoWalrus Jul 02 '12 at 18:45
1 Answers
1
Give an ID/class to your infoWindow element, you can do this by putting your infoWindow's content variable in a div
like below:
var contentString = "<div id='content'>Your content goes here</div>";
And then use CSS to adjust the height:
#content{
height: 50px;
}

Suvi Vignarajah
- 5,758
- 27
- 38