ObjectSymbol3DLayer

ObjectSymbol3DLayer is used to render Point geometries using a volumetric 3D shape (e.g., a sphere or cylinder) with a Symbol3D in a SceneView.

Properties

Property Details
anchor The positioning of the object relative to the geometry.
If property is present, must be one of the following values:
  • center
  • bottom
  • origin
  • top
  • relative
anchorPosition When anchor equals relative, this property specifies the positioning of the object relative to the geometry as a fraction of the symbol layer's bounding box. Otherwise it is ignored.
depth Object depth in meters, positive only
enable Type:Boolean
heading Rotation angle around Z axis in degrees. At 0 degrees, the model points in the direction of the Y-axis. Positive values indicate clockwise rotation (when looked at from the top). Detailed description.
height Object height in meters, positive only
material The material used to shade the geometry.
resource The primitive shape (primitive) or external 3D model (href) used to visualize the points.
roll Rotation angle around Y axis in degrees. At 0 degrees, the model is level. A positive value lifts the left part and lowers the right part of the model. Detailed description.
tilt Rotation angle around X axis in degrees. At 0 degrees, the model is level. A positive value lifts the front and lowers the back of the model. Detailed description.
type Specifies the type of symbol used.
Value of this property must be Object
width Object width in meters, positive only

Additional information

Object symbol layer Example

{
  "symbolLayers": [
    {
      "type": "Object",
      "resource": {
        "primitive": "sphere"
      },
      "width": 50000,
      "height": 50000,
      "material": {
        "color": [
          128,
          255,
          0
        ]
      }
    }
  ]
}

Object symbol layer with 3-axis rotation Example

{
  "symbolLayers": [
    {
      "type": "Object",
      "resource": {
        "primitive": "diamond"
      },
      "width": 50000,
      "height": 50000,
      "material": {
        "color": [
          128,
          255,
          0
        ]
      },
      "heading": 12,
      "tilt": 10,
      "roll": 5
    }
  ]
}

Object symbol layer with relative anchor Example

Places a diamond symbol such that its Southern tip coincides with the point geometry (assuming ENU coordinates).

{
  "symbolLayers": [
    {
      "type": "Object",
      "resource": {
        "primitive": "diamond"
      },
      "width": 10000,
      "anchor": "relative",
      "anchorPosition": [
        0,
        -0.5,
        0
      ],
      "material": {
        "color": [
          128,
          255,
          0
        ]
      }
    }
  ]
}

Feedback on this topic?