optional True if the navigation instructions should initially be visible, or false if the should not be shown until the user explicitly clicks the button.
scene3DOnly
Boolean
false
optional When true, each geometry instance will only be rendered in 3D to save GPU memory.
clockViewModel
ClockViewModel
new ClockViewModel (options.clock)
optional The clock view model to use to control current time.
selected Imagery Provider View Model
ProviderViewModel
optional The view model for the current base imagery layer, if not supplied the first available base layer is used. This value is only valid if options.baseLayerPicker is set to true.
imagery Provider View Models
Array.\
createDefaultImagery ProviderViewModels()
optional The array of ProviderViewModels to be selectable from the BaseLayerPicker. This value is only valid if options.baseLayerPicker is set to true.
selected Terrain Provider View Model
ProviderViewModel
optional The view model for the current base terrain layer, if not supplied the first available base layer is used. This value is only valid if options.baseLayerPicker is set to true.
terrain Provider View Models
Array.\
createDefaultTerrain ProviderViewModels()
optional The array of ProviderViewModels to be selectable from the BaseLayerPicker. This value is only valid if options.baseLayerPicker is set to true.
imagery Provider
ImageryProvider
new BingMapsImagery Provider()
optional The imagery provider to use. This value is only valid if options.baseLayerPicker is set to false.
terrain Provider
TerrainProvider
new Ellipsoid TerrainProvider()
optional The terrain provider to use
skyBox
SkyBox
optional The skybox used to render the stars. When undefined, the default stars are used.
skyAtmosphere
SkyAtmosphere
optional Blue sky, and the glow around the Earth’s limb. Set to false to turn it off.
fullscreen Element
Element | String
document.body
optional The element or id to be placed into fullscreen mode when the full screen button is pressed.
use Default Render Loop
Boolean
true
optional True if this widget should control the render loop, false otherwise.
targetFrameRate
Number
optional The target frame rate when using the default render loop.
show Render Loop Errors
Boolean
true
optional If true, this widget will automatically display an HTML panel to the user containing the error, if a render loop error occurs.
automatically Track DataSource Clocks
Boolean
true
optional If true, this widget will automatically track the clock settings of newly added DataSources, updating if the DataSource’s clock changes. Set this to false if you want to configure the clock independently.
contextOptions
Object
optional
Context and WebGL creation properties corresponding to options passed to Scene.
mapProjection
MapProjection
new Geographic Projection()
optional The map projection to use in 2D and Columbus View modes.
globe
Globe
new Globe (mapProjection.ellipsoid)
optional The globe to use in the scene. If set to false, no globe will be added.
order Independent Translucency
Boolean
true
optional If true and the configuration supports it, use order independent translucency.
creditContainer
Element | String
optional The DOM element or ID that will contain the CreditDisplay. If not specified, the credits are added to the bottom of the widget itself.
creditViewport
Element | String
optional The DOM element or ID that will contain the credit pop up created by the CreditDisplay. If not specified, it will appear over the widget itself.
dataSources
DataSourceCollection
new DataSource Collection()
optional The collection of data sources visualized by the widget. If this parameter is provided, the instance is assumed to be owned by the caller and will not be destroyed when the viewer is destroyed.
terrainShadows
ShadowMode
ShadowMode. RECEIVE_ONLY
optional Determines if the terrain casts or receives shadows from the sun.
mapMode2D
MapMode2D
MapMode2D. INFINITE_SCROLL
optional Determines if the 2D map is rotatable or can be scrolled infinitely in the horizontal direction.
request RenderMode
Boolean
false
optional If true, rendering a frame will only occur when needed as determined by changes within the scene. Enabling improves performance of the application, but requires using Scene#requestRender to render a new frame explicitly in this mode. This will be necessary in many cases after making changes to the scene in other parts of the API. See Improving Performance with Explicit Rendering.
maximumRender TimeChange
Number
0.0
optional If requestRenderMode is true, this value defines the maximum change in simulation time allowed before a render is requested. See Improving Performance with Explicit Rendering.
响应式属性
可以初始化配置,也支持响应式。
Name
Type
Default
Description
selectionIndicator
Boolean
true
optional 是否显示选择指示符
infoBox
Boolean
true
optional 是否显示信息框
geocoder
Boolean
false
optional 是否显示地理编码器搜索框
homeButton
Boolean
false
optional 是否显示主页按钮
sceneModePicker
Boolean
false
optional 是否显示场景模式切换按钮
projectionPicker
Boolean
false
optional 是否显示投影切换按钮
baseLayerPicker
Boolean
false
optional 是否显示基础图层切换按钮
navigationHelpButton
Boolean
false
optional 是否显示导航帮助按钮
animation
Boolean
false
optional 是否显示动画控件
timeline
Boolean
false
optional 是否显示时间轴控件
fullscreenButton
Boolean
false
optional 是否显示全屏切换按钮
vrButton
Boolean
false
optional 是否显示 VR 功能按钮
navigation
Boolean
false
optional 是否显示导航控件
sceneMode
SceneMode
SceneMode.SCENE3D
optional 场景模式.
shouldAnimate
Boolean
false
optional true if the clock should attempt to advance simulation time by default, false otherwise.