> I have an example which does something similar to Mike's "cartrip" but
> on a polyline from an xml file.  It was created for this 
> thread:http://groups.google.com/group/google-maps-api/browse_frm/thread/98dd...

yes, I know - that's where I got the code to base this map on (thanks
again - I think you and Mike W are probably neck and neck for the
amount of code I've copied and pasted...)

> That one puts out the obvious javascript error polyline is undefined,
> which you know the solution to.

I wouldn't be so sure. My three ideas were:

1) change var poly = new GPolyline(points,'#FF0000',3,0.4); to var
polyline = new...

but that freaks the map out, as described above.

2) make an empty array in the global vars like var polyline = [];

but that gets me a "Object has no method 'initialize' " and "Object
has no method 'redraw' "

3) leave it undefined in the global vars like var polyline;

but that gets me back to "Cannot read property 'xa' of undefined"


so it appears that I really have learned nothing :(

I'm sure it's something simple as the rest of the code works fine and
reading from xml there are no dramas. I just thought somebody might
have the tweak required.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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