7

i want to set the width and height of the infowindow using v3

thanks

Salman A
  • 262,204
  • 82
  • 430
  • 521
zjm1126
  • 63,397
  • 81
  • 173
  • 221

2 Answers2

3

Try adding a div with desired width, height and content inside the InfoWindow using InfoWindow.setContent() method.

Salman A
  • 262,204
  • 82
  • 430
  • 521
  • can change the width ,but can not change the height. – zjm1126 Apr 09 '10 at 06:31
  • @zjm1126: Are you including images without specifying their size? If so, you need to set the right attributes. If not, edit your question to include a demonstration. – Andrew Leach Mar 15 '12 at 13:56
2

The info window will adjust its height automatically to fit all the contents, but if you want a width that is different from the standard you have to set it through the InfoWindow options.

I would recommend putting a div with a set height into the infowindow via the setContent.

paullb
  • 4,293
  • 6
  • 37
  • 65