Class RasterSynchronizer

Hierarchy (view full)

Constructors

Properties

layerMap: Record<string, ImageryLayer[]> = {}

Map of OpenLayers layer ids (from getUid) to the Cesium ImageryLayers. Null value means, that we are unable to create equivalent layers.

map: Map
mapLayerGroup: LayerGroup
olLayerListenKeys: Record<string, EventsKey[]> = {}

Map of listen keys for OpenLayers layer layers ids (from getUid).

olLayers: Collection<BaseLayer>
scene: Scene
view: View

Methods

  • Adds a single Cesium object to the collection.

    Parameters

    • object: ImageryLayer

    Returns void

  • Creates an array of Cesium.ImageryLayer. May be overriden by child classes to implement custom behavior. The default implementation handles tiled imageries in EPSG:4326 or EPSG:3859.

    Parameters

    • olLayer: BaseLayer
    • viewProj: Projection

    Returns ImageryLayer[]

  • Destroys all the created Cesium objects.

    Returns void

  • Protected

    Order counterparts using the same algorithm as the Openlayers renderer: z-index then original sequence order.

    Returns void

  • Parameters

    • counterpart: ImageryLayer

    Returns void

  • Remove single Cesium object from the collection.

    Parameters

    • object: ImageryLayer
    • destroy: boolean

    Returns void

  • Destroy all and perform complete synchronization of the layers.

    Returns void