Options.
Render the globe only when necessary in order to save resources. Experimental.
Get the autorender loop.
Callback for requestAnimationFrame
.
The frame time, from performance.now()
.
Render the Cesium scene.
Block Cesium rendering to save resources.
True to block.
Enables/disables the Cesium. This modifies the visibility style of the container element.
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.
Set the target frame rate for the renderer. Set to Number.POSITIVE_INFINITY
to render as quickly as possible.
The frame rate, in frames per second.
Check if OpenLayers map is not properly initialized.
Preload Cesium so that it is ready when transitioning from 2D to 3D.
Target height of the camera
Milliseconds after which the warming will stop
Generated using TypeDoc
{import('ol/Map.js').default} map The OpenLayers map we want to show on a Cesium scene.
{Element|string} [target] Target element for the Cesium scene.
{function(!import('ol/Map.js').default, !Cesium.Scene, !Cesium.DataSourceCollection): Array<import('olcs/AbstractSynchronizer.js').default>} [createSynchronizers] Callback function which will be called by the {@link olcs.OLCesium} constructor to create custom synchronizers. Receives an
ol.Map
and aCesium.Scene
as arguments, and needs to return an array of {@link import('olcs/AbstractSynchronizer.js').default}.{function(): Cesium.JulianDate} [time] Control the current time used by Cesium.
{boolean} [stopOpenLayersEventsPropagation] Prevent propagation of mouse/touch events to OpenLayers when Cesium is active.
{Cesium.SceneOptions} [sceneOptions] Allows the passing of property value to the
Cesium.Scene
.