On Nov 19, 9:54 am, Jorge <[EMAIL PROTECTED]> wrote: > Ok. So, I want to prevent comunication errors, repeating the call to > the servlet N times to get the image. Do you think that this code > works? > > var times = N; > while (times-- && marker.getIcon().image == null) > map.addOverlay(marker); >
No. getIcon().image is not the DOM object of the image but only a string. Assuming you created your icon correctly, marker.getIcon().image will always be a string, regardless of whether the http request for the image has been sent or not. It will never be 'null', so the marker will never be added to the map. -- Marcelo - http://maps.forum.nu -- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
