Google Groups Home
Help | Sign in
Discussions > Past Discussions > Still Trying (XML's)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
planningGIS  
View profile
 More options Jun 22 2006, 1:17 pm
From: "planningGIS" <bissk...@hotmail.com>
Date: Thu, 22 Jun 2006 10:17:07 -0700
Local: Thurs, Jun 22 2006 1:17 pm
Subject: Still Trying (XML's)
I've attempted to download and XML file into a map that I have been
working on.  I've taken advice from different sources but for some
reason the points still will not display.  (Mike tutorial) has been
very helpful with this, I'd appreciate any advice.  Thank you.

http://www.geocities.com/godnaledge/temporarypreviewfile.html?1150996...

script:

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <script
src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAiepenU_haauka3NS..."
type="text/javascript"></script>
 <script type="text/javascript">
    //<![CDATA[
function load(){
      var map = new GMap(document.getElementById("map"));
        var point = new GPoint(-96.926791,32.863917);
      map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());
      map.centerAndZoom(point, 5);

        var request = GXmlHttp.create();
        var url = "H:\data.xml";
request.open("GET", url, true);
request.onreadyStatechange=function(){
if (request.readyState==4){
var xmlDoc=request.responseXML;
                var points = xmlDoc.documentElement.getElementsByTagName("point");
                        for (var i = 0; i < points.length; i++) {
                var point = new
GPoint(parseFloat(points[i].getAttribute("lng")),

parseFloat(points[i].getAttribute("lat")));

        var marker = new GMarker(point);
        map.addOverlay(marker);
                }
        }

}

request.send(null);

 }
//]]>
    </script>
  </head>
  <body onload="load()">
    <div id="map"  style="width: 800px; height:800px;"></div>

  </body>
</html>


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile
 More options Jun 22 2006, 2:00 pm
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Thu, 22 Jun 2006 19:00:03 +0100
Local: Thurs, Jun 22 2006 2:00 pm
Subject: Re: Still Trying (XML's)
You don't seem to have put your XML file on the server.

http://www.geocities.com/godnaledge/data.xml

Sorry, the page you requested was not found.

--
Google Map API Tutorial
http://www.econym.demon.co.uk/googlemaps/


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
planningGIS  
View profile
 More options Jun 22 2006, 2:13 pm
From: "planningGIS" <bissk...@hotmail.com>
Date: Thu, 22 Jun 2006 11:13:33 -0700
Local: Thurs, Jun 22 2006 2:13 pm
Subject: Re: Still Trying (XML's)
when u say put it on my server what do you mean.  I've sited it in my
directory (hard drive) but it doesnt seem to be finding it, is that
what you mean?

Thank you for your assistance


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
planningGIS  
View profile
 More options Jun 22 2006, 2:22 pm
From: "planningGIS" <bissk...@hotmail.com>
Date: Thu, 22 Jun 2006 11:22:34 -0700
Local: Thurs, Jun 22 2006 2:22 pm
Subject: Re: Still Trying (XML's)
<markers>
  <marker lat="37.427770" lng="-122.144841"/>
  <marker lat="37.413320" lng="-122.125604"/>
  <marker lat="37.433480" lng="-122.139062"/>
  <marker lat="37.445427" lng="-122.162307"/>
</markers>
say this is my data...how should me xml script be written to refer back
to markers instead of points?

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
planningGIS  
View profile
 More options Jun 22 2006, 2:39 pm
From: "planningGIS" <bissk...@hotmail.com>
Date: Thu, 22 Jun 2006 11:39:49 -0700
Local: Thurs, Jun 22 2006 2:39 pm
Subject: Re: Still Trying (XML's)
I figured it out...Mike your tha Man

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google