I am having a problem while trying to build events for a array of
polylines.

Here is the code:
===================================================
for(var i in myRoutes) {


       GEvent.addListener(myRoutes[i].getPolyline(), "click",
modifyRoute);

        var modifyRoute = function() {

            GLog.write("clicked");

        }

       myRoutes[i].showMyRoute(map);


    }
================================================

I have response "GLog.write("clicked")", just for the click in the
last polyline showed.

Anyone can help me?

regards

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