Members
(non-null) boundingSphereScratch_ :Cesium.BoundingSphere
Type:
- Cesium.BoundingSphere
- Source:
Methods
enableAutoRenderLoop()
Render the globe only when necessary in order to save resources.
Experimental.
- Source:
getAutoRenderLoop() → (nullable) {olcs.AutoRenderLoop}
Get the autorender loop.
- Source:
Returns:
- Type
- olcs.AutoRenderLoop
getCamera() → (non-null) {olcs.Camera}
- Source:
Returns:
- Type
- olcs.Camera
getCesiumScene() → (non-null) {Cesium.Scene}
- Source:
Returns:
- Type
- Cesium.Scene
getDataSourceDisplay() → (non-null) {Cesium.DataSourceDisplay}
- Source:
Returns:
- Type
- Cesium.DataSourceDisplay
getDataSources() → (non-null) {Cesium.DataSourceCollection}
- Source:
Returns:
- Type
- Cesium.DataSourceCollection
getEnabled() → {boolean}
- Source:
Returns:
- Type
- boolean
getOlMap() → (non-null) {ol.Map}
- Source:
Returns:
- Type
- ol.Map
getOlView() → (non-null) {ol.View}
- Source:
Returns:
- Type
- ol.View
setBlockCesiumRendering(block)
Block Cesium rendering to save resources.
Parameters:
Name | Type | Description |
---|---|---|
block |
boolean | True to block. |
- Source:
setEnabled(enable)
Enables/disables the Cesium.
This modifies the visibility style of the container element.
Parameters:
Name | Type | Description |
---|---|---|
enable |
boolean |
- Source:
setResolutionScale(value)
The 3D Cesium globe is rendered in a canvas with two different dimensions:
clientWidth and clientHeight which are the dimension on the screen and
width and height which are the dimensions of the drawing buffer.
By using a resolution scale lower than 1.0, it is possible to render the
globe in a buffer smaller than the canvas client dimensions and improve
performance, at the cost of quality.
Pixel ratio should also be taken into account; by default, a device with
pixel ratio of 2.0 will have a buffer surface 4 times bigger than the client
surface.
This:
- {olcs.OLCesium}
Parameters:
Name | Type | Description |
---|---|---|
value |
number |
- Source:
setTargetFrameRate(value)
Set the target frame rate for the renderer. Set to `Number.POSITIVE_INFINITY`
to render as quickly as possible.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The frame rate, in frames per second. |
- Source:
warmUp(height, timeout)
Preload Cesium so that it is ready when transitioning from 2D to 3D.
Parameters:
Name | Type | Description |
---|---|---|
height |
number | Target height of the camera |
timeout |
number | Milliseconds after which the warming will stop |
- Source: