1

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?

Ali_dotNet
  • 3,219
  • 10
  • 64
  • 115

1 Answers1

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