Class ElevationLayer<UserData>

A layer that provides elevation data to display terrains.

Type Parameters

Hierarchy (view full)

Constructors

Properties

backgroundColor: Color
colorMap: null | ColorMap = null

The colormap of this layer

computeMinMax: boolean
extent: null | Extent = null

The extent of this layer

frozen: boolean = false

Disables automatic updates of this layer. Useful for debugging purposes.

id: string

The unique identifier of this layer.

interpretation: Interpretation
isElevationLayer: boolean = true

Read-only flag to check if a given object is of type ElevationLayer.

isLayer: boolean = true

Read-only flag to check if a given object is of type Layer.

isMemoryUsage: true = ...
minmax: {
    isDefault?: boolean;
    max: number;
    min: number;
}

Type declaration

  • Optional isDefault?: boolean
  • max: number
  • min: number
name: undefined | string

Optional name of this layer.

noDataOptions: NoDataOptions
resolutionFactor: number

The resolution factor applied to the textures generated by this layer.

showEmptyTextures: boolean
showTileBorders: boolean

The source of this layer

type: string
userData: UserData

An object that can be used to store custom data about the Layer.

Accessors

  • get loading(): boolean
  • Gets whether the object is currently performing an asynchronous operation.

    Returns boolean

  • get progress(): number
  • Returns the percentage of progress, in normalized value (i.e in the [0, 1] range), of the asynchronous operations that are scheduled to run on this object. 1 means that all operations have finished.

    Returns number

  • get visible(): boolean
  • Gets or sets the visibility of this layer.

    Returns boolean

  • set visible(v): void
  • Parameters

    • v: boolean

    Returns void

Methods

  • Adds a listener to an event type.

    Type Parameters

    • T extends "visible-property-changed"

    Parameters

    Returns void

  • Type Parameters

    • T extends string

    Parameters

    Returns void

  • Adjusts the extent to avoid visual artifacts.

    Parameters

    • originalExtent: Extent

      The original extent.

    • originalWidth: number

      The width, in pixels, of the original extent.

    • originalHeight: number

      The height, in pixels, of the original extent.

    Returns {
        extent: Extent;
        height: number;
        width: number;
    }

    And object containing the adjusted extent, as well as adjusted pixel size.

    • extent: Extent
    • height: number
    • width: number
  • Resets all render targets to a blank state and repaint all the targets.

    Parameters

    • Optional extent: Extent

      An optional extent to limit the region to clear.

    Returns void

  • Parameters

    • extent: Extent

      The extent to test.

    Returns boolean

    true if this layer contains the specified extent, false otherwise.

  • Fire an event type.

    Type Parameters

    • T extends "visible-property-changed"

    Parameters

    Returns void

  • Returns the final extent of this layer. If this layer has its own extent defined, this will be used. Otherwise, will return the source extent (if any). May return undefined if not pre-processed yet.

    Returns undefined | Extent

    The layer final extent.

  • Checks if listener is added to an event type.

    Type Parameters

    • T extends "visible-property-changed"

    Parameters

    Returns boolean

  • Type Parameters

    • T extends string

    Parameters

    Returns boolean

  • Removes a listener from an event type.

    Type Parameters

    • T extends "visible-property-changed"

    Parameters

    Returns void

  • Type Parameters

    • T extends string

    Parameters

    Returns void