Topics
Getting Started
Cmd Line Opts
Tcl/Tk Version
X/Motif Version
NS Plugin Version
•   Embedding
•   Navigation
•   JavaScript
ActiveX Version
Configuration
Creating Data
OAA Interface
   
Go to FAQ
 

Digital Earth > TerravisionTM > User Guide > NS Plugin

Embedding TerraVision in Netscape

In order to embed a TerraVision window inside your Netscape-viewed web page, you must first install the TerraVision Plugins. This will deal with registering the TerraVision plugin with your installed version of Netscape Communicator. The MIME type of the TerraVision plugin is "application/x-terravision".

Once installed, you can embed a TerraVision window in your web page using the HTML <EMBED> tag. For example,


<EMBED TYPE="application/x-terravision"
 WIDTH="640" HEIGHT="480">

This in itself is pretty useless as we have not told the plugin what terrain datasets to browse, or specified any custom options that we might desire. This is very simple to do with just a number of extra options to the <EMBED> tag. The plugin supports the full suite of TerraVision command line options as arguments to the <EMBED> tag.

For example, the following HTML fragment shows how to embed a TerraVision browser into your web page, load two terrain datasets by specifying the location of the associated imagery and elevation pyramids, and then set the viewer into a 2D (pan and zoom) mode.


<EMBED TYPE="application/x-terravision"
 WIDTH="640" HEIGHT="480"
 oi="http://www.tvgeo.com/TileSets/Pyramids/gtopo30.oi"
 dem="http://www.tvgeo.com/TileSets/Pyramids/gtopo30.dem"
 oi="http://www.tvgeo.com/TileSets/Pyramids/sfbay.oi"
 dem="http://www.tvgeo.com/TileSets/Pyramids/sfbay.dem"
 view="2d"
>

You can refer to the example HTML files that are included with the TerraVision Plugins installation for further examples on how to embed TerraVision in your web pages.

 

 

Copyright ©2000 SRI International. All rights reserved.

For more information, please contact: digital-earth@ai.sri.com.
Last updated: Wednesday, 07-Mar-2001 16:49:57 PST.