Please Help!  I have two maps http://156.42.96.39/alert/Google/CountyMap.html
and http://156.42.39/alert/Google/Radar.html.  I have created and xml
file with rainfall data (which refreshes every 15 mins)
http://156.42.96.39/alert/Google/xlm/fcdmc_alert_rain.xml.  I want to
get this xml data specifically the 15-min, 1-hour, 3-hour, 6-hour, 1-
day and 7-day rainfall data to display either on the map or in the
info ballon.  I am working with two examples 
http://www.vcwatershed.org/fws/gmap.html
and http://www.udfcd.org/FWP/LDAD/gmap.html.  These website are also
running rainfall.js.  I have created a rainfall.js
http://156.42.96.39/alert/Google/rainfall.js and it is in the html for
each of my maps - CountyMap and Radar - but I dont know how to get it
to display the data.  I have read tutorials (http://code.google.com/
apis/maps/documentation/javascript/v2/services.html#XML_Requests) it
sas use -

GDownloadUrl("data.xml", function(data, responseCode) {
  var xml = GXml.parse(data);
  var markers = xml.documentElement.getElementsByTagName("marker");
  for (var i = 0; i < markers.length; i++) {
    var point = new
GLatLng(parseFloat(markers[i].getAttribute("lat")),
 
parseFloat(markers[i].getAttribute("lng")));
    map.addOverlay(new GMarker(point));
  }
});

I would like my map to read the rainfall.js file and the xml file
(http://156.42.96.39/alert/Google/xlm/fcdmc_alert_rain.xml) for my
rain data is in the .js file then diplay it on the map just like the
two examples.  Is something wrong with the code?  Am I understand how
it works?  Any guidance would be very much appreciated.

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