ObjectSymbol3DLayer

2495
3
Jump to solution
11-09-2015 07:31 PM
SydeBurns
New Contributor

How do you use the href parameter in the ObjectSymbol3DLayer?

var objectSymbol = new PointSymbol3D({

        symbolLayers: [new ObjectSymbol3DLayer({

            width: 5,

            height: 20,

            resource: {

                //primitive: "cone"

                href: "http://scene.arcgis.com/arcgis/rest/services/Hosted/Buildings_Brest/SceneServer/layers/0/nodes/0/fea... "

            }

            },

            material: {

                color: "#00FF00"

            }

        })]

    });

    var objectSymbolRenderer = new SimpleRenderer({

        symbol: objectSymbol

    });

Is there a certain format or a way to point to a single model in the SceneServer?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
KristianEkenes
Esri Regular Contributor

Hi Syde,

Yes, the URL the href property points to must be the location of a specific format of the 3D model you want to use. Click this link for instructions on how to create a custom 3D model and publish it for use in the href property of ObjectSymbol3DLayer.

We will update our documentation to point to these instructions in 4.0 beta 2.  Thanks for pointing this out.

View solution in original post

0 Kudos
3 Replies
KristianEkenes
Esri Regular Contributor

Hi Syde,

Yes, the URL the href property points to must be the location of a specific format of the 3D model you want to use. Click this link for instructions on how to create a custom 3D model and publish it for use in the href property of ObjectSymbol3DLayer.

We will update our documentation to point to these instructions in 4.0 beta 2.  Thanks for pointing this out.

0 Kudos
SydeBurns
New Contributor

That worked well, thank you.

Is there a way to rotate these marker models based on an attribute?

I have used the sizeInfo visualVariables to scale the object.

I see some reference to rotationInfo in the code, is this available or will it be in the near future?

    objectSymbolRenderer.setRotationInfo({

        field:"Rotation",

        type:"geographic",

        expression: null});

0 Kudos
KristianEkenes
Esri Regular Contributor

There currently isn't rotationInfo support in 4.0. It will be available in a future release.

0 Kudos