Each GDirections() instance clears up its own information, but if you create a *new* GDirections instance for each route they don't clear the information created by previous GDirections() instances.
You currently create a new GDirections() instance and create a new map each time getDir() is called. For the GDirections, simply move your var directions; line outside your function declarations to make it global. -- http://econym.org.uk/gmap The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
