Cesium-Viewer

Cesium Viewer是一个用于构建应用的基础组件,集成了多种标准控件。本文档介绍了Viewer的构造错误、示例、演示以及主要成员,包括camera、clock和entities等,详细讲解了EntityCollection的add、remove及removeAll方法。
摘要由CSDN通过智能技术生成

Viewer

new Cesium.Viewer(container, options)

Widgets/Viewer/Viewer.js 325
A base widget for building applications. It composites all of the standard Cesium widgets into one reusable package. The widget can always be extended by using mixins, which add functionality useful for a variety of applications.

一个建造应用的基础控件。
它合成了全部的标准Cesium控件到一个可以重复使用的包。
这个控件常常可以通过使用mixins(混合)进行扩展。大概是混合标准控件的意思
它通常为各种应用添加有用的功能。

Name Type Description
container Element,String The DOM element or ID that will contain the widget.
options Viewer.ConstructorOptions optionalObject describing initialization options.

Throws:

DeveloperError : Element with id “container” does not exist in the document.

DeveloperError : options.selectedImageryProviderViewModel is not available when not using the BaseLayerPicker widget, specify options.imageryProvider instead.

DeveloperError : options.selectedTerrainProviderViewModel is not available when not using the BaseLayerPicker widget, specify options.terrainProvider instead.

Example:

//Initialize the viewer widget with several custom options and mixins.
var viewer = new Cesium.Viewer('cesiumContainer', {
   
    //Start in Columbus Viewer
    sceneMode : Cesium.SceneMode.COLUMBUS_VIEW,
    
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值