Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 933
zjm1126 Avatar asked Apr 09 '10 06:04

zjm1126


People also ask

How do you change the InfoWindow position on Google Maps?

An InfoWindow can be placed on a map at a particular position or above a marker, depending on what is specified in the options. Unless auto-pan is disabled, an InfoWindow will pan the map to make itself visible when it is opened. After constructing an InfoWindow, you must call open to display it on the map.

How do I change the InfoWindow on Google Maps Android?

The simplest way to add an info window is to set the title() and snippet() methods of the corresponding marker. Setting these properties will cause an info window to appear whenever that marker is clicked.


1 Answers

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

like image 107
Salman A Avatar answered Sep 19 '22 12:09

Salman A