Maria Amor
unread,Nov 9, 2010, 1:25:06 PM11/9/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Maps JavaScript API v3
Hi,
I'm trying to limit the size of the info windows that are displayed
when I click on the markers of a map. My map is 230 pixels wide.
I tried with the maxWidth property like this:
var map = ...;
var marker = ...;
var infowindow = new google.maps.InfoWindow({
maxWidth:100,
content:'<div>Hello world</div>'
});
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map, marker);
});
I also tried setting a width in the <div> element inside the window
content, but none of them worked.
Am I missing something?
Thanks a lot in advance.
Regards,
María