Class Layer

Source
Expand description

Base class for map layers. This class provides the basic structure and functionality for all map layers.

It includes methods for loading data, geometry, components, and thematic data, as well as rendering and picking operations.

Constructors§

Source§

new Layer(layerInfo: ILayerInfo, layerRenderInfo: ILayerRenderInfo): Layer

Constructor for Layer

Properties§

Source§

protected _dataIsDirty: boolean = false

Indicates if the layer's data is dirty. This is used to determine if VOBs need to be reconstructed.

Source§

protected _layerInfo: ILayerInfo

Layer information.

Source§

protected _layerRenderInfo: ILayerRenderInfo

Layer rendering information.

Source§

protected _renderInfoIsDirty: boolean = false

Indicates if the layer's rendering information is dirty. This is used to determine if uniforms need to be reloaded.

Accessors§

Source§

get layerInfo(): ILayerInfo

Gets the information of the layer.

Source§

set layerInfo(layerInfo: ILayerInfo): void

Sets the information of the layer.

Source§

get layerRenderInfo(): ILayerRenderInfo

Gets the rendering information of the layer.

Source§

set layerRenderInfo(layerRenderInfo: ILayerRenderInfo): void

Sets the rendering information of the layer.

Methods§

Source§

makeLayerDataDirty(): void

Marks the layer's data as dirty, indicating that VOBs need to be reconstructed.

Source§

makeLayerRenderInfoDirty(): void

Marks the layer's rendering information as dirty, indicating uniforms need to be reloaded.