Thanks so much, Andrew. It mostly makes sense to me conceptually now--
I think I'm really close to getting it.
Unfortunately I'm stuck again, and my guess is it's related to the way
I'm trying to create the collections. Here's what I have:
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
GDownloadUrl("merge.xml", function(data, responseCode) {
var xml = GXml.parse(data);
var events = xml.documentElement.getElementsByTagName("event");
var params = xml.documentElement.getElementsByTagName("param");
for (var i = 0; i < params.length; i++) {
if (params[i].getAttribute("name") == "latitude") {
var lat = parseFloat(params[i].getAttribute("value"));
}
if (params[i].getAttribute("name") == "longitude") {
var lng = parseFloat(params[i].getAttribute("value"));
}
var point = new GLatLng(lat,lng);
map.addOverlay(new GMarker(point));
}
});
}
}
//]]>
</script>
Here's the XML file (it's pretty big):
http://www.thekenshen.com/merge.xml
Here's the page it's supposed to appear on:
http://www.thekenshen.com/maptest.html
thanks again,
ken
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---