Options
All
  • Public
  • Public/Protected
  • All
Menu

Style for raster layers.

Hierarchy

  • RasterStyle

Overview

Properties

alpha

alpha: number

A number with an opacity value between 0 and 1. 0 is fully transparent t, 1 is fully opaque. By default, the value is 1.

Optional displacementExpression

displacementExpression: Expression<Vector3> | null

An expression to displace terrain elevation data.

To create expressions, you must use the factory methods in the ExpressionFactory module. The expression must be well-formed and resolve to a point value.

If you want to update the styling very often, consider using parameters in your expressions. Changing the values of parameters is more efficient than replacing the whole expression.

  // Example of a displacement expression that pushes down everything inside a shape.
  var _  = ExpressionFactory;
  var shape = _.orientedBox(layer.orientedBox);
  rasterStyle.displacementExpression =  _.pushDown(shape);
default

null terrain elevation is not displaced by default.

since

2020.1

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method