Navigating around the GlobeControl


Purpose
This sample demonstrates how to control the size, position, and spin speed of the globe object in the GlobeControl. There is a command button provided to allow globe documents to be selected. However, control of the globe can be seen with or without globe data loaded, since the globe is visible as a wire mesh when no data is loaded.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Browse to a globe document to load into the GlobeControl.
  2. Navigate around the globe using the command buttons in the application.
  3. Control the globe position and size using the option buttons and mouse.
  4. Set the globe spinning using the check box and control the spin speed with the slider control.

Additional information

The three other command buttons provided with the application demonstrate how to zoom in and out from the current viewpoint and how to restore the globe to its default position by setting properties of the GlobeCamera. The option buttons either enable the GlobeControl's default navigation functionality or use the mouse events to provide zoom in and out functionality. The check box and slider control the spin and spin speed of the GlobeViewer.


AssemblyInfo.cs Assembly information.
Navigation.cs Form file.
Download the C# files
AssemblyInfo.vb Assembly information.
Navigation.vb Form file.
Download the VB.NET files

Download the files for all languages

See Also:

GlobeControl class
IGlobeControl interface




Development licensing Deployment licensing
Engine Developer Kit Engine: 3D Analyst
ArcGIS for Desktop Basic: 3D Analyst
ArcGIS for Desktop Standard: 3D Analyst
ArcGIS for Desktop Advanced: 3D Analyst