See - http://www.elated.com/articles/javascript-timers-with-settimeout-and-setinterval/ quote - "The important difference is that, whereas setTimeout() triggers expression only once, setInterval() keeps triggering expression again and again (unless you tell it to stop)."
As Garthan pointed out, you have put your setInterval inside the loadMarkers() function, and set it to call loadMarkers() every 10 seconds. Every time it calls loadMarkers(), it kicks off another setInterval that will call loadMarkers() every ten seconds. Each time that happens, it kicks off another setInterval that calls loadMarkers() every ten seconds.... >It does not matter where i put > the interval or how many times i load it. It matters enormously. Don't put it inside a function so it that calls itself again, put it outside the function. cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
