> GEvent.addListener(marker, "dblclick", drawLine()); When you create the listener, drawLine() is executed immediately and the returned result used as the thing-to-do if the listener is triggered later. Try GEvent.addListener(marker, "dblclick", drawLine);
-- 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.
