[Google Maps API v2] Re: Resize infowindow to fit image
> when I first open an infoWindow, it does not resize to accomodate the
> image,
You're using
myA.innerHTML = '<img src="http://web.mac.com....jpg" />';
give your <img> tag some height and width, with CSS or inline style,
and the API will know what size to make the infowindow to allow for
it.
If your images are all different sizes, you woud need to use some pre-
loading technique as described in the other thread you found.
--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home