I started with the Google map weather map example, and wanted to
incorporate reading markers from an XML file, but have not had an
success.  no markers are loaded,  below is a portion of my code, I
have reduced the code to just loop through the number of entries in
the xml, and generate random points, and add then to the
markermanager.
but nothing ever shows up on the map.

var map = null;
var mgr = null;

function getWeatherMarkers() {
     GDownloadUrl("genxml.php?filter=400",queryXML);
}

function queryXML(data) {
      mgr = new MarkerManager(map);
      var xml = GXml.parse(data);
      markers = xml.documentElement.getElementsByTagName("marker");
      for (i = 0; i < markers.length; i++) {
           batch.push(new GMarker(getRandomPoint(), { icon:
getWeatherIcon() }));
      }
      mgr.addMarkers(batch, 3);
      mgr.refresh();
}

--

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


Reply via email to