Convert Geometry to Graphic
I know that this is an easy one. Not only that, I have done it before. So, I am embarrassed to ask, but I cannot remember how to convert geometry to a graphic.
0
-
Maybe this?
RunExternalCommand
Command Name: "AddMarkup"
Command Parameter: myESRIpolygon ( mine is ESRI.ArcGIS.Client.Geometry.Polygon() )
phil.0 -
It depends on where you want to achieve it.
If it is on Workflow implementation, check http://help.arcgis.com/en/webapi/wpf/apiref/api_start.htm - ESRI.ArcGIS.Client --- Classes - Graphic
- declare a variable aGraphic whose type is Esri.ArcGIS.Client.Graphic
- Set aGraphic = New Graphic using Assign activity
- Set aGraphic.Geometry = [your Geometry object] using Assign activity
If it is on GVH (Html5 viewer) custom module, check ESRI javascript API (https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html)
MG0
Please sign in to leave a comment.
Comments
2 comments