In order to use ActiveX using a web browser, the browser must support ActiveX controls. There are two objects, defined by the <OBJECT> tag, that insert the 3D Window, Information tree and Navigation Map viewers to your HTML page.
VBScript is used to demonstrate the following actions. You can use the scripting language of your choice (e.g., JavaScript).
Define the TerraExplorer3DWindow
Object – You should use the HTML Object tag to declare the
object using TerraExplorer3DWindow’s unique class id.
Note: The three TerraExplorer ActiveX objects have different
unique class ID.
<OBJECT ID="TerraExplorer3DWindow" CLASSID="CLSID:3a4f9192-65a8-11d5-85c1-0001023952c1" ></OBJECT>
Define the
TerraExplorerInformationWindow Object – You should use the HTML
Object tag to declare the object using
TerraExplorerInformationWindow’s unique class ID.
Note: The three TerraExplorer ActiveX objects have different
unique class ID.
<OBJECT ID="TerraExplorerInformationWindow" CLASSID="CLSID:3a4f9193-65a8-11d5-85c1-0001023952c1" ></OBJECT>
Define the TerraExplorerNavigationMap
Object – You should use the HTML Object tag to declare the
object using TerraExplorerNavigationMap’s unique class ID.
The three TerraExplorer ActiveX objects have different unique class
ID.
<OBJECT ID="TerraExplorerNavigationMap" CLASSID="CLSID:3a4f9194-65a8-11d5-85c1-0001023952c1" ></OBJECT>
Set Object’s Width and Height – To control the size of the ActiveX objects use the width and height attributes.
<OBJECT ID=" TerraExplorer3DWindow" CLASSID="CLSID:3a4f9192-65a8-11d5-85c1-0001023952c1" width=500 height=400></OBJECT>
<OBJECT ID="TerraExplorerInformationWindow" CLASSID="CLSID:3a4f9193-65a8-11d5-85c1-0001023952c1" width=200 height=400 ></OBJECT>
<OBJECT ID="TerraExplorerNavigationMap" CLASSID="CLSID:3a4f9194-65a8-11d5-85c1-0001023952c1" width=300 height=300 ></OBJECT>
Add a TerraExplorer object – Use the
<OBJECT> tag to define a TerraExplorer object.
<OBJECT ID="TerraExplorer"
CLASSID="CLSID:3a4f9191-65a8-11d5-85c1-0001023952c1">
</OBJECT>