First up, thanks to the guys that helped me out with my other
questions.

All I want to do now is set the opacity from the xml file. I'm sure
it's really simple, but I have no idea how to do it.

I'm using Mike's code:

// ========= Now process the polylines ===========
        var lines =
xmlDoc.documentElement.getElementsByTagName("line");
          // read each line
          for (var a = 0; a < lines.length; a++) {
            // get any line attributes
            var colour = lines[a].getAttribute("colour");
            var width  = parseFloat(lines[a].getAttribute("width"));
            // read each point on that line
            var points = lines[a].getElementsByTagName("point");
            var pts = [];
            for (var i = 0; i < points.length; i++) {
               pts[i] = new
GLatLng(parseFloat(points[i].getAttribute("lat")),
 
parseFloat(points[i].getAttribute("lng")));
            }
            map.addOverlay(new GPolyline(pts,colour,width));
          }


//=================================

Please don't send me to a tutorial. I just want the line of code tat
lets me set opacity from the xml. I'm at the end of my tether with
this to be honest.

Thanks again, John

Many thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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