It's nothing to do with to box opening entirely over the map, it's 
related to whether or not the browser has the image in its cache.

If the image is not in cache, and if you don't specify width and height 
attributes, then when the API asks the browser about the size of the 
image, the browser replies that the image has zero size. The API 
configures the info window graphics to a size appropriate for an image 
of zero size.

Some time later, the image data arrives, but the info window has already 
been sized.

maps.google.com has some clever code that detects that the image size 
doesn't match the info window size and redraws it. That code is not 
available in the API, so you have the following options:

1. Live with it.

2. Apply width and height attributes to all the images
    E.g. <img style="border:1px solid #5C7FB9" 
src="http://lh4.ggpht.com/Schwarttzy/SKwQcWSCcHI/AAAAAAAAAB8/VUjX6Qwe3Pg/
s400/DSC01042.JPG" alt="DSC01042.JPG" width="400" height="300"/>

3. Preload all the images that you might use, so that they're in cache 
when required.
    An easy way to do that is to use EGeoXml with the options
    {preload:true, iwwidth:550}
The downside is that if you've got a lot of pictures, you waste a lot of 
bandwidth fetching pictures that the user might not look at.

-- 
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


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

Reply via email to