Show / Hide Table of Contents

Constructor ModelSymbolLayer

ModelSymbolLayer(ModelShape)

Initializes a new instance of the ModelSymbolLayer class from a well-known 3D primitive shape.

Declaration
public ModelSymbolLayer(ModelShape shape)
Parameters
Type Name Description
ModelShape shape

Primitive shape.

Remarks

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 Sphere, Cube, and Diamond, and at the bottom center for Cylinder, Cone, and 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
  • a null Uri

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

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300

ModelSymbolLayer(Uri)

Initializes a new instance of the ModelSymbolLayer class from a URI that references a 3D model.

Declaration
public ModelSymbolLayer(Uri uri)
Parameters
Type Name Description
Uri uri

The URI location of the 3D model to use in the symbol layer.

Remarks

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

  • anchor defaults to null, which is the origin of the 3D model.
  • fully transparent black (RGBA(0, 0, 0, 0))
  • height, width, and depth of 0.0 DIPs
  • heading, pitch, and roll of 0.0 degrees
  • Uri set to the specified URI

After creating, call LoadAsync() to load the 3D model from the URI asynchronously. Once the model is loaded, its properties will be populated using the values defined in the model if not set explicitly.

By default, if not explicitly specified, the color of a loaded model symbol layer is reported as transparent black.

The URI can be a local file path or a web address. The URI must point to a 3D model in one of the supported formats: COLLADA (.dae), 3ds Max (.3ds), Filmbox (.fbx), Wavefront (.obj), GL Transmission Format (.glTF), or Binary GL Transmission Format (.glb).

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300
In this article
Provide feedback
Back to top Copyright © 2025 Esri.