How to draw a combined Graphics consisting of a circle and a direction line?

12-08-2020 03:25 AM
Occasional Contributor

I am currently using ArcGIS Pro 100.0.8 and Esri::ArcGISRuntime::SceneGraphicsView. I need to display moving tracks on map. The track symbol should be a circle with a small line showing the direction of the track. How can I achieve this? Do I have to provide a 3D SimpleMarkerSymbol? If there is any example about a combined Graphic, that would be appreciated.


I have attached the appearance of QGraphicsItem that we are currently using for tracks.

Tags (2)
0 Kudos
1 Reply
Esri Frequent Contributor

For the symbol, you have a few options.


The simplest would be to create an image of what you want and use PictureMarkerSymbol. The main downside with that is that it won't scale well if you need to increase size of the image. This sample is in 2D but the same workflow will work in 3D - 


The next solution would be to design the symbol that you want in ArcGIS Pro and share it via a stylx file. This will give you the most customization. Here is a sample that shows how to consume a style file - 


Finally, you could create a multilayer symbol in code. For example, one symbol layer could be the circle and the other symbol layer could be an arrow. For example, VectorMarkerSymbolLayer allows you to define the vector shape of the symbol, similar to an SVG - 


Once you have your symbol, you can update the heading  to match the direction of the track using Renderer Scene Properties. Here is a sample showing this