![]() |
Flying to wrong location |
Post Reply
|
| Author | |
kim
Visitor
Joined: June 28 2010 Online Status: Offline Posts: 2 |
Post Options
Quote Reply
Topic: Flying to wrong locationPosted: June 28 2010 at 2:22am |
|
Hi,
I am very new to the Terra products and using the API.
I have created a HTML page using the code provided on the page
It runs but flies to the wrong part of the flythru.
The flythru works correctly when loading it in TerraExplorer.
What am I doing wrong?
Thanks
|
|
![]() |
|
wengel
Skyline Admin Group
Joined: June 08 2007 Location: United States Online Status: Offline Posts: 18 |
Post Options
Quote Reply
Posted: June 29 2010 at 4:53pm |
|
Would you please post the code section related to your fly thru?
|
|
![]() |
|
kim
Visitor
Joined: June 28 2010 Online Status: Offline Posts: 2 |
Post Options
Quote Reply
Posted: June 29 2010 at 10:21pm |
|
The code I have used is exactly the same as the example on the page
<html> <head> <title>SGAPI Example</title> <script type="text/javascript" src="skyline:sgapi.js"></script> <script type="text/javascript"> var globe; function Init() { try { // instantiate SGWorld objectglobe = new SGWorld("myWorld"); // attach callback to the load finished event globe.attachEvent("onLoadFinished", OnLoadFinished); // Load default developer fly file from www.skylineglobe.com web site.var fly = "exampleFly.fly"; globe.teCore.ITerraExplorer.Load(fly); } catch(e) {alert(e.description); } } function OnLoadFinished() { // Fly to the Washington DC when fly is loadedvar Washington = new SGCoord3D(-77.036667, 38.895111, 1500); globe.navigate.flyTo(Washington); } </script> </head> <body onload="Init()"> <div id='myWorld' style="width:700px; height:500px;"></div> </body> </html> Thanks |
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |