# MapGIS Client for JavaScript API

Common Cesium-Plugin MapboxGL-Plugin Leaflet-Plugin OpenLayers-Plugin Video-Plugin
API文档

#### # new NavigationTool(viewer, options)

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.

#### 参数:

名称 | 类型 | 描述
--- | --- | ---
`viewer` | Viewer | The viewer instance.
`options` | Object | The options.

Throws:

viewer is required.

类型: Cesium.DeveloperError

##### 示例

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

### 方法

#### # static mixinWidget()

混入组件

返回值:

cesiumNavigation对象

类型: CesiumNavigation
构造函数
成员变量
方法
事件