Skip to main content

Push Pin where user clicked

Comments

4 comments

  • Nico Burgerhart
    You could use a Run External Command activity. Use AddMarkup as the command and the resulting geometry from the Display Capture Geometry as the parameter.
    0
  • Carmen Durham
    Thanks Nico,

     

    I just figured out another way.

     

    1) On the DisplayCaptureGeometry, there is a parameter for "Graphics Layer Name" - I set that value to some graphics layer name.  (actually, when all was done - I am not sure I needed to set this at all).

     

    2) Then I used "Assign" to assign ptClickedFeatureSet (a variable declared as a featureset) to

     

    new ESRI.ArcGIS.Client.Tasks.FeatureSet(ptUserClick)    (were ptUserClick is the result from the Display Capture Geometry)

     

    3) Used UpdateGraphics Layer Activity  with the GraphicsLayer name, the feature set assigned in #2, and using a Renderer that was supplied to me by Srikanth in this previous post with a different icon:

     

    https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&feedtype=SINGLE_QUESTION_DETAIL&id=90660000000XZnyAAG

     

     

     

     
    0
  • Permanently deleted user
    Thank you, Carmen!  I was looking to do the same thing and found your post.  This saved me a lot of time and works great!
    0
  • Permanently deleted user
    I might be missing something, but I am having an issue with this.... when the user clicks on the map during Display Capture Geometry, it defaults to a hollow circle symbol and if I update the graphics layer after the DCG activity it changes the symbol but I want to change the symbology of the first graphic that appears when the user clicks on the map.  How do I change that default symbol to something else?
    0

Please sign in to leave a comment.