Hey Ben, There's no way to set a max width for an info window through a KML file. One way to set the width is by wrapping your content within a table with width of your choice. You could also achieve this using a DIV element with fixed width, but using a table element instead may ensure it works across all browsers.
Give this a try and let us know if it works for you. Thanks, Dann On Sat, May 8, 2010 at 3:33 PM, Ben <[email protected]> wrote: > Hello, > > I apologize if this is a simple question; I'm fairly new to Google > Maps API. > > My question is where does one place the maxWidth property for > infowindows when using a KML file? I see how to place the maxWidth: > 200; line when just using content in the API webpage, but not sure > where it would go when pulling from a KML file. > > Here's what I have in my script around the KML file (apologies if the > code doesn't go through): > > var map = new google.maps.Map(document.getElementById("map_canvas"), > myOptions); > > > var ctaLayer = new google.maps.KmlLayer('http://************.com/ > mykmlfile.kml'); > ctaLayer.setMap(map); > ctaLayer.preserveViewport = true; > google.maps.event.addListener(marker, 'click', function() { > infowindow.open(map,marker); > > }); > > } > > Any help would be appreciated! > > -Ben > > -- > 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]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- Daniels Lee Developer Programs Engineer Google, Inc. 345 Spear Street San Francisco, CA 94105 650 253 0967 -- 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.
