Select to view content in your preferred language

Changing Rotation Axis of a Graphic

858
3
09-06-2011 09:52 AM
centuitcentuit
Emerging Contributor
Hi,

I am using version 2.2 of the ESRI SDK and one of the requirements would be to rotate the symbol not in the center, but at different points.
Is there a way to change the rotation axis of a graphic ?

Thanks
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
Sure you can update the RendererTransformOrigin and apply RotateTransform on the element. Some developers post their code in the forum http://forums.arcgis.com/threads/4461-Symbol-rotation-change-by-attribute-update
0 Kudos
centuitcentuit
Emerging Contributor
Thanks jenniferdnery.

I guess what I meant was using the editor, sorry.
I have to give the user the ability to change the axis of rotation when they edit a graphic.

Thanks
0 Kudos
JenniferNery
Esri Regular Contributor
Oh in that case, Editor.EditVertices http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave or EditGeometry http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DrawGraphics applies rotation from the geometry center only.
0 Kudos