Hi,

I'm trying to put alot of markers onto one map, so logically reading
them in from an XML file made alot of sense, but i don't have any
experience in using GDownloadURL.

The problem i'm having is that the map loads but the marker's never
appear. When removing the GDownloadURL function and replacing it with
individual statements for a marker it works fine, leading me to
believe its the GDownloadURL.

This is the script i'm using:

        GDownloadUrl("../xml/markers.xml", function(data) {
        var xmlDoc = GXml.parse(data);
        var markers = xmlDoc.documentElement.getElementsByTagName("marker");

                for (var i = 0; i < markers.length; i++) {
                        var lat = markers[i].getAttribute("lat");
                        var lng = markers[i].getAttribute("lng");
                        var point = new 
GLatLng(parseFloat(markers[i].getAttribute
("lat")),parseFloat(markers[i].getAttribute("lng")));
                        var html = markers[i].getAttribute("html");

                        var marker = createMarker(point,html);
                        map.addOverlay(marker);

if this isn't the problem then i'm going to presume its in my XML
thats the problem.

Any advice on this matter would be greatly appreciated, 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