ModelSymbolLayer.withShape constructor

ModelSymbolLayer.withShape(
  1. ModelShape shape
)

Creates a model symbol layer from a well-known 3D primitive shape.

This creates a new model symbol layer and sets up the following default properties:

After creating, the load status of ModelSymbolLayer will be set to LoadStatus.loaded.

Parameters:

  • shape — Primitive shape.