I want to rotate the icon symbol like (in SceneView):
symbol: {
type: 'point-3d', // autocasts as new PointSymbol3D()
symbolLayers: [
{
type: 'icon',
size: 8,
resource: {
href: './assets/images/triangle.png',
}
},
],
},
visualVariables: [
{
type: 'rotation',
field: 'heading',
rotationType: 'geographic',
}
]
My Feature layer elevationInfo mode is : on-the-ground
But it's not working, is it possible to rotate an icon based on visual variable?
If not how am I supposed to do this?
Thanks
Hi Michael
This is a known limitation and mentioned here: https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-Rotatio...
"In a SceneView rotation visual variables are not currently supported with marker symbols, text symbols, 3D icon symbol layers and 3D text symbol layers."
You could use ObjectSymbol3DLayer . See also the sample:
https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-labeling-3d/
Would that work for your use case? Otherwise can you let us know what your use case is.
Thanks.
Hi Sascha
Thanks
I could use ObjectSymbol3D objects for displaying 'my triangles' (with the correct rotation). But these 3d objects have a fixed size based on the map. Is it possible to scale those like markers?