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

-- 
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.

Reply via email to