Push Pin where user clicked
In a workflow, I see where you can use the "show pushpin" option in the Select Features Activity.
How would I do this for a location indicated by a user through the DisplayCaptureGeometry Activity? Doesn't have to be a pushpin, it could be some other graphic like a star.
I feel I am missing something easy. Ultimately want to show this graphic of where the user clicked on a drill down report.
Thanks,
Carmen
0
-
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 -
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=90660000000XZnyAAG0 -
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 -
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
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare