How to clear active highlight layer without clearing default highlight layer
Hi,
I have a WF that allows user to click on a hyperlink in a maptip result which zooms map to extent of that feature and highlights the feature in a different color from the default highlight color. The link passes the $Geometry object to the WF, which is then used to generate a FS that I can use to highlight the feature. This works fine but one issue that comes up is, if there are multiple maptip results (maybe from a search or identify by rectangle), when I click the second or third result, the highlighting from previous iterations of the WF remains on the map. I want to have those highlighted features removed and only show the current feature highlighted. In order to achieve this i have added the "RemoveHighlighLayer" ext command, and it does indeed remove previous highlights. But the problem is that it also removes any default highlights, like from search or identify results. "RemoveHighlightLayer" command, is described as "Removes the highlight layer with thespecified name, if the layer exists." However, it also appears to remove all default highlights. Does anyone know how I can remove just the active highlight layer featuers while retaining the default highlights?
I'm using external commands as follows:
"RemoveHighlightLayer" (clear active highlight layer from previous time workflow ran)
"my highlight layer"
"CreateHighlightLayer"
"my highlight layer"
"SetActiveHighlightLayer"
"my highlight layer"
"HighlightEsriFeatureSet"
"newFS"
This is using GTX 4.1.4 and html5 viewer 2.2
Thanks
Please sign in to leave a comment.
Comments
0 comments