viewerCesiumInspectorMixin(viewer)
A mixin which adds the CesiumInspector 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. |
异常情况:
-
DeveloperError : viewer is required.
示例:
var viewer = new Cesium.Viewer('cesiumContainer');
viewer.extend(Cesium.viewerCesiumInspectorMixin);
演示Demo: