How do you use the href parameter in the ObjectSymbol3DLayer?
var objectSymbol = new PointSymbol3D({
symbolLayers: [new ObjectSymbol3DLayer({
width: 5,
height: 20,
resource: {
//primitive: "cone"
}
},
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?
Solved! Go to Solution.
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.
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.
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});
There currently isn't rotationInfo support in 4.0. It will be available in a future release.