On May 17, 2:49 pm, Southbayriders <[email protected]> wrote:
> Hi Larry,
>
> Thank you for your reply. The moredata.xml file I have looks like
> this:
>
> <markers>
> <marker name="Jackie" lat="37.427770" lng="-122.144841" thread="12345"/
>
> </markers>
>
> The thread attribute (I thought it was called an element) has been
> added as
> you can see. I've tried making changes to the code to parse this
> additional attribute but I have not been successful.
>
> What changes do I need to make to this code?
>
> for (var i = 0; i < markers.length; i++) {
> var latlng = new
> google.maps.LatLng(parseFloat(markers[i].getAttribute("lat")),
> parseFloat(markers[i].getAttribute("lng")));
> var marker = createMarker(markers[i].getAttribute("name"), latlng);
Why do you think markers[i].getAttribute("thread") wouldn't return the
value for marker[i]?
Then do with it whatever you want.
-- Larry
>
> }
>
> Thank you for your help.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.