Viewer
Viewer
is a root component of resium same as CesiumWidget
. All components of resium except the root components have to be mounted inside it.
Availability
Everywhere. Viewer
is a root component.
Properties
Cesium properties
Property | Type | Description |
---|---|---|
shadows | boolean | |
resolutionScale | number | |
useDefaultRenderLoop | boolean | |
targetFrameRate | number | |
useBrowserRecommendedResolution | boolean | |
terrainProvider | TerrainProvider | |
terrainShadows | ShadowMode | |
clockTrackedDataSource | DataSource | |
allowDataSourcesToSuspendAnimation | boolean | |
trackedEntity | Entity | |
selectedEntity | Entity |
Cesium read-only properties
Property | Type | Description |
---|---|---|
creditContainer | string | Element | |
creditViewport | string | Element | |
skyBox | false | SkyBox | |
skyAtmosphere | false | SkyAtmosphere | |
sceneMode | SceneMode | |
scene3DOnly | boolean | |
orderIndependentTranslucency | boolean | |
mapProjection | MapProjection | |
globe | false | Globe | |
showRenderLoopErrors | boolean | |
contextOptions | ContextOptions | |
mapMode2D | MapMode2D | |
blurActiveElementOnCanvasFocus | boolean | |
requestRenderMode | boolean | |
maximumRenderTimeChange | number | |
msaaSamples | number | |
shouldAnimate | boolean | |
selectionIndicator | boolean | |
infoBox | boolean | |
geocoder | boolean | GeocoderService[] | |
homeButton | boolean | |
sceneModePicker | boolean | |
projectionPicker | boolean | |
baseLayerPicker | boolean | |
navigationHelpButton | boolean | |
animation | boolean | |
timeline | boolean | |
fullscreenButton | boolean | |
vrButton | boolean | |
dataSources | DataSourceCollection | |
clockViewModel | ClockViewModel | |
navigationInstructionsInitiallyVisible | boolean | |
selectedImageryProviderViewModel | ProviderViewModel | |
imageryProviderViewModels | ProviderViewModel[] | |
selectedTerrainProviderViewModel | ProviderViewModel | |
terrainProviderViewModels | ProviderViewModel[] | |
fullscreenElement | string | Element | |
automaticallyTrackDataSourceClocks | boolean | |
depthPlaneEllipsoidOffset | number | |
imageryProvider | false | ImageryProvider | If false, the default imagery layer will be removed. |
Cesium events
Property | Type | Description |
---|---|---|
onSelectedEntityChange | (entity: Entity) => void | |
onTrackedEntityChange | (entity: Entity) => void |
Other properties
N/A