Hi
i know my question is more javascript than actually Gmaps API but i
hope you can help me,
i'm running a loop on all the markers when i'm creating a route, and i
want to put an event on click on each marker to show the info window
something like this

                for (var i=0; i<=gdir.getNumRoutes(); i++)
                {
                     GEvent.addListener(newMarkers[i], "click",
function(){
                          newMarkers[i].openInfoWindowHtml(newMarkers
[i].getTitle());
                         });
                }

this dos not work since the function() does not know [i];
( i hope i'm clear  :P )

is there something i can do to put the event on each marker
thank you

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