Remove Markups when Closing Reults Pane
I have a workflow that creates a buffer around the parcel for the address the user enters and then shows all the facilities within the buffer in the results pane. I like that the buffer is there after the workfow finishes, so users can see it as they look through their results. However, it stays on the map even after the results pane is closed, and the only way to gett rid of it is to double-click and delete it or to start the workflow again. Is there a way to remove the buffer when the results pane is closed rather than putting the command at the beginning or end of the workflow?
0
-
A workaround is adding a Display Form with a Close button to your workflow just before the end of the workflow, and adding a the command to remove the markup just after it. 0 -
Nico, Thank you so much for your suggestion! However, after posting the question, I started scrolling through the JSON file and figured out how to do exactly what I wanted! I found
"moduleName": "Results"
and proceeeded to study all of the behaviors and commands. I then found the following:
{
"name": "ResultsViewClosedBehavior",
"event": "ResultsViewClosedEvent",
"commands": []
},
I modified it to include the commands I need so that it looks like the following:
{
"name": "ResultsViewClosedBehavior",
"event": "ResultsViewClosedEvent",
"commands": [
"ClearMarkupQuiet",
"ClearTemporaryMarkup"
]
},0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare