Jump to content

Google Maps APIS Yaaa....


Crew-Portal

Recommended Posts

I know just how much fun javascript is! But I was wondering if someone could help me out on somethin...

My XML Documents Look like:

<?xml version="1.0" ?> 
<Players>
<Player>
  <Name>N350CA</Name> 
  <LatencyText /> 
  <GameVersion>2004</GameVersion> 
  <Type>Pilot</Type> 
  <Aircraft>Extra 300S</Aircraft> 
  <ConnectTime>0d 0h 0m</ConnectTime> 
  <NearAirport /> 
  <NearDistance /> 
  <Altitude /> 
  <Heading /> 
  <Speed /> 
  <Hop /> 
  <DXVersion /> 
  <DataRate>0</DataRate> 
  <Status>Not in plane</Status> 
  <Latitude>???????</Latitude>
  <Longitude>???????</Longitude>
</Player>
</Players>

And are stored in a directory http://24.76.166.219:81/xml But my problem is even though I have search google for such a long time on how to get the players to appear on a map they all tell me that I have to have my XML set up like:

<Player latatude=??????? longitude ???????>

But of course I cant change this because the XML your viewing is a dump from a video game. So I was wondering if someone could help me out making a google earth APIS map if you know how to do it because personally this thing is making me very sad because I have come to a conclusion that I know nothing about the google javascript and I just wanna cry  :'( I really need this script done soon but i cant find the resources that I need to finish it, so If someone could please help me out on making a APIS map that shows all the players in the XML on a google map with the icon "icon.png" I would just be so appreciative that you just couldnt believe it!

Link to comment
Share on other sites

Heres What the XML looks like when there are people online:

<Players>
<Player>
  <Name>GSA001</Name> 
  <LatencyText /> 
  <GameVersion>2004</GameVersion> 
  <Type>Pilot</Type> 
  <Aircraft>aeroclub milano 1981</Aircraft> 
  <ConnectTime>0d 1h 9m</ConnectTime> 
  <NearAirport>PHNL</NearAirport> 
  <NearDistance /> 
  <Altitude>26'</Altitude> 
  <Heading>034°</Heading> 
  <Speed>65 kts</Speed> 
  <Hop /> 
  <DXVersion /> 
  <DataRate>6</DataRate> 
  <Status>Flying</Status> 
  <Latitude>N21° 18.98'</Latitude> 
  <Longitude>W157° 55.44'</Longitude> 
</Player>
<Player>
  <Name>SWA2971</Name> 
  <LatencyText /> 
  <GameVersion>2004</GameVersion> 
  <Type>Pilot</Type> 
  <Aircraft>Project Opensky - B737-700 Southwest Canyon Blue</Aircraft> 
  <ConnectTime>0d 1h 12m</ConnectTime> 
  <NearAirport>VNLK</NearAirport> 
  <NearDistance /> 
  <Altitude>9108'</Altitude> 
  <Heading>060°</Heading> 
  <Speed>0 kts</Speed> 
  <Hop /> 
  <DXVersion /> 
  <DataRate>6</DataRate> 
  <Status>On ground</Status> 
  <Latitude>N27° 41.16'</Latitude> 
  <Longitude>E086° 43.65'</Longitude> 
</Player>
</Players>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.