On Jul 23, 2009, at 9:23 AM, Gregory Short wrote:

>> I think the problem is a Javascript variable scope problem.
>
> Well, technically, you are correct, in that there is a variable in  
> your code that does not exist in the scope in which you are  
> attempting to use it. Realistically, however, I'd call it a typo:
> icon.image = "http://www.trias-media.de/ 
> marker/"+markers[i].getAttribute("kz").toString()+".png";
> Find that line in your code. Did you copy/paste and forget to change  
> something? :)
  Also, the line following it (the 'switch' statement) appears to be  
using that 'i' variable, which I imagine came from a copy/paste from  
something in your for loop a few lines up. Both of these errors are  
revealed by simply viewing the error console in your browser.

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