> However if I place:
> alert("The length of lines is " + lines.length);
> beneath the same statement mentioned just above the message boxes I
> get are only: 1, 1, 1, 1 etc... but total 12 times before the map is
> painted on the canvas,
Well, yes. The 'j' loop steps through the tag names one at a time ;
each call of
var lines =
xmlDoc.documentElement.getElementsByTagName(checkpoint);
destroys any previous content of 'lines' and reads in one tag only, by
name. Naturally, 'lines' only ever contains one element (assuming your
<lineTFTnn> tags are unique)
Have you considered using a more generalised XML format, such as
<datapoints>
<line id='TFT001'> latitude=" " longitude=" " </line>
<line id='TFT012'> etc
> PS: no free web hosts support jsp (im using tomcat FYI)
Too bad ; how were you planning on publishing the finished map?
--
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.