zjm1126
zjm1126

Reputation: 66647

how to change the width and height of infowindow on google-maps-v3

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

thanks

Upvotes: 7

Views: 14880

Answers (2)

paullb
paullb

Reputation: 4325

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.

Upvotes: 2

Salman Arshad
Salman Arshad

Reputation: 272106

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

Upvotes: 3

Related Questions