On Aug 31, 8:31 am, Jeffro <[email protected]> wrote: > Is it possible to set image size within infowindows as a percentage > rather than by width and height in order to retain the original aspect > ratio of all images. When I try to set the percentage size the > infowindow is huge. I think the code is telling the infowindow to > display the picture as a percentage of the size of the window itself > and adjusting the window size accordingly.
Yes: percentage of what? You can't make it a percentage of the infoWindow size because that's variable depending on the content. > I currently have the image > size set as width=250 and height=300. This skews the size of some of > my pictures though. You haven't given any indication here of how you're doing things. However, if you are creating infoWindow content "by hand" for each marker you know the size of the thumbnail, so I suppose you're doing things server-side. PHP has a method of getting the image size, so you can pass that with the rest of the data and include it in your infoWindow code. You could also make your thumbnails a fixed size, cropping the original image if necessary so that it's not distorted. For example, an image 800x600 could be made 400x300 and then cropped to 250x300 on the most important feature. Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
