Select to view content in your preferred language

Rotate a FeatureLayer

306
1
07-12-2022 01:43 AM
dylanamaro
New Contributor II

Hello everyone,

I'm trying to rotate the symbol of my featureLayer based on one of his attribute.

Right now, i'm adding my featureLayer to the map using that

dylanamaro_0-1657615128365.png

The LayerFactory.Instance.CreateLayer<FeatureLayer>(flCICOP, mapView.Map) execute the query and add the featureLayer founded to the map. Now i need to rotate the symbol of each point on the map based on the attribute "sym_rotat"

Do you know how i can do that ?

Thank you

0 Kudos
1 Reply
UmaHarano
Esri Regular Contributor

Hi

There is a community sample available that shows you how to work with "Attribute driven symbology".

Scroll down to the bottom of the sample instructions to see the info on attribute driven symbology.

Sample: https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Authoring/Renderer

This .cs file has the code to do this: https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Authoring/Renderer/Attribut...

 

 

0 Kudos