Skip to main content

How can I render a line with an arrow in the middle using update graphic layer activity?

Comments

1 comment

  • Zack Robison
    I haven't had to use this activity per se, but have needed to toy around with these renderers a bit over this past year and I *think* that I can answer the question which you're asking.  The only way in which I have been consistently successful in generating these AGS renderers is somewhat roundabout, but I'll happily share.

     

    1) I publish the symbology that I want in a service

     

    2) I navigate to the REST endpoint for that layer in the published service

     

    3) I view the JSON definition for that layer, which the uninitiated may not know can be accessed from the "JSON" link towards the top of the page.

     

    4) I copy the definition for that renderer right on out of this page, verbatim.  The parts that ESRI (typically) want are what's contained on the "renderer" line, up to but not including the "transparency" definition.

     

    5) You can probably turn this JSON into the object that Geocortex needs using ESRI.ArcGIS.Client.Renderer.FromJson().

     

    I hope this helps!
    0

Please sign in to leave a comment.