Clearing Highlights and Selections
Essentials 4.1.1 HTML5 2.2
I'm having trouble finding viewer commands for the HTML5 2.2 viewer that will effectively clear all selections and highlights from the map.
What are the correct viewer commands to remove the highlight created when the user clicks on a data result in the list? I know I can just click in the map to clear it, but i want to have a workflow that ""resets" the map by clearing all selections and highlights.
I have a combination of SetActiveHighlightLayerDefault combined with a ClearHighights . I have a ClearSelection . I've removed all my named featureset collections by ID.
What other viewer commands can I try in my workflow to wind up with a clean map?
-
Did you find a solution for this?
0 -
Not yet. The selection behavior from the DataPanel on the left and the ResultsTable in the bottom of the map are not consistent. Selecting from the DataPanel will center and zoom to the feature and highlight, but does not pop a maptip, while selecting from the ResultsTable in the botton centers and zooms with a map tip. Closing the maptip to see the feature removes the highlight for the feature, as does any mouse click within the map frame. So far, the only thing that seems capable of removing the highlight created by selecting from the DataPanel is user mouse-click event in the map frame. Not very useful when trying to clear the map in a workflow.
I'm also not clear on why a Set Layer Visibility activity fails to make the layer visible in my viewer, either.
Maybe the new version release will have some updated documentation related to the Viewer Commands.
"Other than that, how did you enjoy the play, Mrs. Lincoln?"
0 -
yes and i would like to know how to clear the data panel and clear the table panel, also.
0 -
To close the ResultsTable I use the "CloseResultsFrame " command ina RunExternalCommand activity. To close the DataPanel I use a "CloseDataFrame " command.
0 -
yes that closes the panel, but it does not remove the contents or "entries". in a long session, too many entries get in the way. thats what i wanting to avoid, though sometimes hiding the panel is good enough.
J
0 -
Right. Sorry.
If your results are in a named collection, you can use a RunExternalCommand with a "RemoveCollectionById ". Most of my result lists come from within a workflow where I outout them into named collections, so I haven't had to try and clear a global search result in the wild. I run this at the top of my workflows so the results don't keep piling on.
As for the ClearSelection or ClearSearch , I haven't gotten these to work. Yet.
Hoping . . . .
0 -
So if its a collection is i use the name "XYZ" as the name of the collection is that the same as the ID?
0 -
Yes. After I execute a Query task, I usually do a SelectFeatures activty which provides an optional argument for CollectionName at the bottom. Whatever name you set here can be used later to remove the content of that collection by using it as the Command Parameter in a RunExternalCommand activity.
0 -
Have you tried clearing the named collection on each run of the workflow? In the SelectFeatures workflow activity there is an argument called Clear Collection First. Set this to True and the named collection is cleared each time you run the workflow without having to run any other activity.
0 -
I will try both of those.
thank you,
J
0 -
DOH!
I always forget that there are more arugments over there in the Properties dialog. That would be more efficient.
sigh.
0 -
anyone get these to work yet?
We have been trying to get clearselection/clear highlights to work in HTML5 2.4. No luck yet...
0 -
I've used the ClearHighlights command in multiple workflows in the GVH 2.4.1 and it works just fine.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
13 Kommentare