@JsType(isNative=true, namespace="<global>", name="Object") public class ViewerOptions extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
animation
If set to false, the Animation widget will not be created.
|
boolean |
automaticallyTrackDataSourceClocks
If true, this widget will automatically track the clock settings of newly added DataSources, updating
if the DataSource's clock changes.
|
boolean |
baseLayerPicker
If set to false, the BaseLayerPicker widget will not be created.
|
ClockViewModel |
clockViewModel
The clock view model to use to control current time.
|
Object |
contextOptions
Context and WebGL creation properties corresponding to options passed to Scene.
|
com.google.gwt.dom.client.Element |
creditContainer
The DOM element or ID that will contain the CreditDisplay.
|
DataSourceCollection |
dataSources
The collection of data sources visualized by the widget.
|
boolean |
fullscreenButton
If set to false, the FullscreenButton widget will not be created.
|
com.google.gwt.dom.client.Element |
fullscreenElement
The element or id to be placed into fullscreen mode when the full screen button is pressed.
|
boolean |
geocoder
If set to false, the Geocoder widget will not be created.
|
GeocoderService[] |
geocoderServices |
Globe |
globe
The globe to use in the scene.
|
boolean |
homeButton
If set to false, the HomeButton widget will not be created.
|
ImageryProvider |
imageryProvider
The imagery provider to use.
|
ProviderViewModel[] |
imageryProviderViewModels
The array of ProviderViewModels to be selectable from the BaseLayerPicker.
|
boolean |
infoBox
If set to false, the InfoBox widget will not be created.
|
int |
mapMode2D
Determines if the 2D map is rotatable or can be scrolled infinitely in the horizontal direction.
|
MapProjection |
mapProjection
The map projection to use in 2D and Columbus View modes.
|
boolean |
navigationHelpButton
If set to false, the navigation help button will not be created.
|
boolean |
navigationInstructionsInitiallyVisible
True if the navigation instructions should initially be visible, or false if the should not be shown until the
user explicitly clicks the button.
|
boolean |
orderIndependentTranslucency
If true and the configuration supports it, use order independent translucency.
|
boolean |
projectionPicker
If set to true, the ProjectionPicker widget will be created.
|
boolean |
requestRenderMode
If true, rendering a frame will only occur when needed as determined by changes within the scene.
|
boolean |
scene3DOnly
When true, each geometry instance will only be rendered in 3D to save GPU memory.
|
Number |
sceneMode
SceneMode SceneMode.SCENE3D optional The initial scene mode.
|
boolean |
sceneModePicker
If set to false, the SceneModePicker widget will not be created.
|
ProviderViewModel |
selectedImageryProviderViewModel
The view model for the current base imagery layer, if not supplied the first available base layer is used.
|
ProviderViewModel |
selectedTerrainProviderViewModel
The view model for the current base terrain layer, if not supplied the first available base layer is used.
|
boolean |
selectionIndicator
If set to false, the SelectionIndicator widget will not be created.
|
boolean |
shadows
Determines if shadows are cast by the sun.
|
boolean |
shouldAnimate
if the clock should attempt to advance simulation time by default, false otherwise.
|
boolean |
showRenderLoopErrors
If true, this widget will automatically display an HTML panel to the user containing the error, if a render loop error occurs.
|
SkyAtmosphere |
skyAtmosphere
Blue sky, and the glow around the Earth's limb.
|
SkyBox |
skyBox
The skybox used to render the stars.
|
double |
targetFrameRate
The target frame rate when using the default render loop.
|
double |
terrainExaggeration
A scalar used to exaggerate the terrain.
|
TerrainProvider |
terrainProvider
The terrain provider to use
Default: new EllipsoidTerrainProvider()
|
ProviderViewModel[] |
terrainProviderViewModels
The array of ProviderViewModels to be selectable from the BaseLayerPicker.
|
Number |
terrainShadows
Determines if the terrain casts or receives shadows from the sun.
|
boolean |
timeline
If set to false, the Timeline widget will not be created.
|
boolean |
useDefaultRenderLoop
True if this widget should control the render loop, false otherwise.
|
boolean |
vrButton
If set to true, the VRButton widget will be created.
|
Constructor and Description |
---|
ViewerOptions() |
@JsProperty public boolean animation
@JsProperty public boolean baseLayerPicker
@JsProperty public boolean fullscreenButton
@JsProperty public boolean vrButton
@JsProperty public boolean geocoder
@JsProperty(name="geocoder") public GeocoderService[] geocoderServices
@JsProperty public boolean homeButton
@JsProperty public boolean infoBox
@JsProperty public boolean sceneModePicker
@JsProperty public boolean selectionIndicator
@JsProperty public boolean timeline
@JsProperty public boolean navigationHelpButton
@JsProperty public boolean navigationInstructionsInitiallyVisible
@JsProperty public boolean scene3DOnly
@JsProperty public boolean shouldAnimate
Viewer.clockViewModel()
.
Default: false@JsProperty public ClockViewModel clockViewModel
@JsProperty public ProviderViewModel selectedImageryProviderViewModel
@JsProperty public ProviderViewModel[] imageryProviderViewModels
@JsProperty public ProviderViewModel selectedTerrainProviderViewModel
@JsProperty public ProviderViewModel[] terrainProviderViewModels
@JsProperty public ImageryProvider imageryProvider
@JsProperty public TerrainProvider terrainProvider
@JsProperty public SkyBox skyBox
@JsProperty public SkyAtmosphere skyAtmosphere
@JsProperty public com.google.gwt.dom.client.Element fullscreenElement
@JsProperty public boolean useDefaultRenderLoop
@JsProperty public double targetFrameRate
@JsProperty public boolean showRenderLoopErrors
@JsProperty public boolean automaticallyTrackDataSourceClocks
@JsProperty public Object contextOptions
@JsProperty public Number sceneMode
SceneMode.SCENE3D()
@JsProperty public MapProjection mapProjection
@JsProperty public Globe globe
@JsProperty public boolean orderIndependentTranslucency
@JsProperty public com.google.gwt.dom.client.Element creditContainer
@JsProperty public DataSourceCollection dataSources
@JsProperty public double terrainExaggeration
@JsProperty public boolean shadows
@JsProperty public Number terrainShadows
ShadowMode.RECEIVE_ONLY()
@JsProperty public int mapMode2D
MapMode2D.INFINITE_SCROLL()
@JsProperty public boolean projectionPicker
@JsProperty public boolean requestRenderMode
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.
Default: falseCopyright © 2019. All rights reserved.