Hi,
We have a route feature class and would like to place labels on it at specific distances. As shown in the screenshot below, we are looking for the same result. Labels are mentioned at certain distances, which are highlighted in yellow.
However We are not sure how we can achieve this using ArcGIS Pro SDK.
Can anyone please provide the basic sample(in C#) for the same.
Expected Output:
Thanks in advance.
If the screenshot shown is not from ArcGIS Pro, create a featurelayer that visually meets your requirements via the GUI, as described here.
Save it the layer to a .lyrx file, and view it with a text editor, examining the CIM classes therein.
Write code that instantiates the CIM renderer class, and set the properties to whatever appears in the lyrx file. Finally, use SetRenderer to assign the renderer to the featurelayer.