On Oct 22, 2:17 am, colinjd <[email protected]> wrote: > How can the browser been informed that the actual Icon has appered on > the Map. > I hoped there was a listener in the GMarker or GOverlay for this. But > no. > The simple purpose for this is to terminate my "Loading.." status > message. > Any hints?
map.addOverlay() triggers an addoverlay event on the map (not the marker). That may help. It's possible that the addoverlay event will occur when the overlay is added but before the image is completely downloaded in order that the icon can actually be displayed. Try it and see. If that is the case you could download the image separately and test for its arrival in a separate handler function: <img src="..." onload=handler style="display:none"> Using the image once its downloaded and adding to the map (from the cache) will be almost instantaneous. You may need a combination of listeners. 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 -~----------~----~----~----~------~----~------~--~---
