To draw attention to a specific mesh or point cloud of a
TileSet3DLayer, you can add an outline to it.
You can also keep the 3D object visible when it’s obscured by another object.
Configure an outline
You can configure the outline on the
TileSet3DLayer through the property:
outlineStyle: outline styling applied to the mesh or point cloud.
OutlineStyle has the following properties:
outlineColorExpression: create an expression to decide the color of the outline.
outlineWidth: decide the width of the outline.
Keep an obscured mesh or point cloud visible
To visualize the part of the 3D object hidden by another layer, you can use the
You can set it directly on the
Occlusion means that one object hides another object.
You can configure the following parameters for
bodyColorExpression: create an expression to decide the color for the body of the hidden part of the mesh or point cloud.
outlineStyle: outline styling applied on the obscured part of the mesh or point cloud.
You can apply the
Creating the expressions
You must use
ExpressionFactory to create the styling expressions.
See Property-based styling and filtering of points on a WebGLMap
for more information about styling through expressions.
MeshStyle API reference documentation for example code.
You can’t use