Initializing SGWorld and Creating a Basic HTML

This sample demonstrates how to initialize SGWorld and create a basic HTML to which to add the TerraExplorer COM using JavaScript. This example uses the IProject66 (Open) interface.

 

<html>

  <body onload = "Init();">

    <object id="sgworld" classid="CLSID: 3A4F9199-65A8-11D5-85C1-0001023952C1" style="visibility:hidden;height:0 "></object>

 

    <script language="javascript" >

      function Init()

      {

      sgworld.Project.Open("SkylineGlobe.tbp@tglobe.skylinesoft.com");

      }

    </script>

  </body>

 

</html>