> 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")),

There's a fairly obvious bit of code there that gets the string
content of the attribute 'lat' from your array of markers, then
parseFloat it to convert the string into a number, then its used as an
argument in LatLng.   Obviously you don't want the latter two actions,
see if you can work it out.  Or show us what you tried that didn't
work.

Some get all negative at "write my code for me" requests, but are
willing to help people help themselves.
http://www.google.com/search?q=javascript+parse+xml+attributes

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

Reply via email to