> Google Chrome:
> Uncaught TypeError: Cannot call method 'setStrokeStyle' of
> undefined.   --> Line: 92

Unlike your debugger, we can't see what line 92 is.
But setStrokeStyle hints thats it's this
   p[lineIndex].setStrokeStyle({color: colour});
so either p is not what you think it is, or the 'lineIndex' that was
passed to changeColors() is inappropriate.
The 'i' used in the counting function doesn't seem to have any
relation to how many polylines there actually are, but again we can't
see that.

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