How to highlight features represented in Results Pane?
Hello. I'd like to set up a button that would automatically highlight the features that are represented in the current Results. I have a workflow set up with a Query Task that returns records to the results pane. I can highlight them by running the command HighlightEsriFeatureSet, supplying the esri FeatureSet as the parameter. However, as soon as I start moving around the map, the highlighting is cleared. I'd like to be able to re-highlight them, or any other results set in the History tab.
Any ideas?
Chris
-
I created a highlight sequence that creates a highlight layer to highlight the features using a series of RunExternalCommands as set below.
The highlight layer will "stay on" until you clear it.
- CreateHighlightLayer"
- highlightLayer
- "SetActiveHighlightLayer"
- highlightLayer
- "HighlightEsriFeatureSet"
- yourfeaturset
Hope this helps.
Cathy
0 -
Thanks Cathy. I have a couple of further questions
-How do you go about clearing your highlighted features? Do you have to do it through code, or is it possible to do this through the standard interface? BTW, I may have figured out why your highlighting is persisting while mine isn't - my workflow contains forms. As soon as I stick a form in the workflow, the highlighting disappears when I pan.
-Are you able to highlight what is currently in the results pane? For example, say you have used the identify tool several times. If you click on the history tab and view an older results set, can you highlight it? How would you know the esriFeatureSet it references?
Thanks!
Chris
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer