Hi Behseini,
I can tell you from experience that you can put a map together without
knowing too much about javascript, just by copying and pasting other
people's code and asking the odd question here, but you have to be
very careful about what you copy and what you change if you don't
understand what it does.
Have a look at Mike's original code:
// read each line
for (var a = 0; a < lines.length; a++) {
// get any line attributes
var colour = lines[a].getAttribute("colour");
and yours:
// read each line
for (var i = 0; i < lines.length; i++)
{
// get any line attributes
var colour = lines[a].getAttribute("colour");
see the difference?
also, I doubt that:
var points = lines[a].getElementsByTagName("tpoint");
is going to fly, but I may be wrong...
--
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.