Material

The material used to shade the geometry, including colorMixMode options.

Referenced by: FillSymbol3DLayer

Properties

Property Details
color Color is represented as a three or four-element array.
colorMixMode Controls how symbolLayer or visualVariable color is applied onto the underlying geometry color/texture. This property only applies to FillSymbol3DLayer within MeshSymbol3D.
  • tint: the feature's appearance (in terms of color) should be altered to match the symbol / visual variable color.
  • replace: the feature's color is replaced with the symbol / visual variable color.
  • multiply: the feature's color is multiplied with the symbol color.

Valid values:
  • multiply
  • replace
  • tint
transparency A value between 100 (full transparency) and 0 (full opacity). Ignored if no color is specified.

material Example

{
  "color": [
    255,
    0,
    0
  ],
  "transparency": 20,
  "colorMixMode": "tint"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.