The problem is that I have a need for a variable number of listeners.
Sometimes I plot between two icons with gDirections, and other times I
plot it with a polyline.  A given map could have several different
types of lines drawn.  Since I don't know which legs are which until I
get the XML file, I simply put 10 gDirections listeners which is more
than enough.

Ideally, I'd like to be able to create listeners on the fly based on
the XML file as I do with the gDirections requests, but I couldn't
figure out a way to have the listeners created by javascript without
hard coding it.

Any idea how to do that?

Thanks for all your help.  The overlay fix worked like a champ.

On Feb 5, 4:02 pm, "warden [Andrew Leach - Maps API Guru]"
<[email protected]> wrote:
> On Feb 5, 11:55 pm, "warden [Andrew Leach - Maps API Guru]"
>
> <[email protected]> wrote:
>
> > Those errors also occur in Firefox. Not sure why yet.
>
> The major problem is that your XML file doesn't contain as many
> journeys as you are hardcoding listeners for.
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
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