Class: NavigationTool

NavigationTool

engineExtensions/widgets/navigation/NavigationTool.js, line 32

A mixin which adds the Compass/Navigation widget to the Viewer widget. Rather than being called directly, this function is normally passed as a parameter to Viewer#extend, as shown in the example below.

Name Type Description
viewer Viewer

The viewer instance.

options Object

The options.

Throws:

viewer is required.

Type
Cesium.DeveloperError
Example
var viewer = new Cesium.Viewer('cesiumContainer');
viewer.extend(NavigationTool);

Methods

NavigationTool.mixinWidget(){CesiumNavigation}

engineExtensions/widgets/navigation/NavigationTool.js, line 80

混入组件

Returns:
Type Description
CesiumNavigation cesiumNavigation对象