Thanks Rossko, you hit the nail on the head. I still haven't figured the variable scoping bit but to your point (b) I added a function to "pause" the script between adding and removing markers and it works as intended. Not a pretty solution at all but I'm just stoked to get it working!
I did try adding more var = declarations within the amRolledOverSeries (to xindex, latp, and lonp) but that ended up breaking addOverlay altogether. Was there another set of variables you were thinking should be declared differently? > I think I'd start by adding a few more var = declarations. > a) - it would help us and you to see which variables you want to be > global or local in scope > b) - it may help problems where multiple calls of the same functions > are triggered by mouseover and trample over an uncompleted earlier > call > c) - it may remove any unexpected IE issues where undeclared vars can > clash with DOM objects > d) - its just good practice :) > > I suspect (b) may be your real issue, and require some management of > re-entrancy --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
