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 marker = new google.maps.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);
});
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.