ModelSymbolLayer.withShape constructor
- 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:
- anchor defaults to null, which is the origin of the ModelShape. The origin is located at the center of the ModelShape for ModelShape.sphere, ModelShape.cube, and ModelShape.diamond, and at the bottom center for ModelShape.cylinder, ModelShape.cone, and ModelShape.tetrahedron.
- fully opaque white (RGBA(255, 255, 255, 255))
- height, width, and depth of 10.0 DIPs
- heading, pitch, and roll of 0.0 degrees
- an empty URI
After creating, the load status of ModelSymbolLayer will be set to LoadStatus.loaded.
Parameters:
shape— Primitive shape.