View Full Version : Network Link and LookAt
cagell
06-25-2008, 05:53 PM
Hi all,
I am working in a geolocalization in real time using a GPS and a digital compass. I managed to display the position using a simple KML file and a Network Link through a webserver but here is my question:
How can I do to make GE display the "LookAt" camera view every time the network link is refreshed? I tried with the option "Fly to View on Refresh" but it did not work (the camera is showing an above view)
If I did that I would be able to display the orientation coming from the digital compass!!
Thanks in advance for your help
CAGELL
Mickey
06-25-2008, 07:18 PM
Can you provide us a KML or a link to check it out? I'm not sure what the problem is, but maybe someone will notice something in your file.
cagell
06-25-2008, 07:24 PM
Here is my code....
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Document><name>Car.kml</name><StyleMap id="msn_ylw-pushpin">
<Pair>
<key>normal</key>
<styleUrl>#sn_ylw-pushpin</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#sh_ylw-pushpin</styleUrl>
</Pair>
</StyleMap>
<Style id="sn_ylw-pushpin">
<IconStyle>
<color>ff0000aa</color>
<scale>1.1</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
<LabelStyle>
<color>ff0000ff</color>
</LabelStyle>
</Style>
<Style id="sh_ylw-pushpin">
<IconStyle>
<color>ff0000aa</color>
<scale>1.3</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
<LabelStyle>
<color>ff0000ff</color>
</LabelStyle>
</Style>
<Placemark>
<name>DreamBot</name>
<LookAt>
<longitude>-117.8409015958469</longitude>
<latitude>33.64435267887668</latitude>
<altitude>0</altitude>
<range>100</range>
<tilt>0</tilt>
<heading>38.3490978342251</heading>
<altitudeMode>relativeToGround</altitudeMode>
</LookAt>
<styleUrl>#msn_ylw-pushpin</styleUrl>
<Point>
<coordinates>-117.8412846909459,33.64435267887668,0</coordinates>
</Point>
</Placemark>
</Document>
</kml>
So when I press PLAY the view is displayed from the file's LookAt but not when I refresh the network link.
BTW the network link is set from GE itself, not in the KML code.
CAGELL
Mickey
06-25-2008, 07:48 PM
I understand what you mean now, but I'm equally perplexed. Hopefully someone else can offer some insight...
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.