Skip to main content

Tools shall remain active after completing the operation

Comments

3 comments

  • Nico Burgerhart

    Is the Repeat Action command useful in your case?

    Added a powerful new pattern that allows tools to run either until canceled or for a specific number of repetitions. This functionality is enabled through the new system.repeat-action command, offering enhanced flexibility for tasks requiring iterative actions. For instance, you can configure a tool to capture geometry for a set number of points, performing subsequent actions. Alternatively, you can set up a tool to repeatedly capture geometry from clicks on the map, identify features, and add them incrementally to a results list.

    https://docs.vertigisstudio.com/webviewer/latest/admin-help/standard-commands.html#repeat-action-command

     

    1
  • Markus Wall

    I'm new to VertiGIS Studio Web so I'm not sure whether this is the correct command for the Identify tool. Currently, we are running it through a workflow that repeatedly reactivates the tool. However, when I switch from point selection to rectangle selection, an error message is displayed:

    "Identify failed because no valid geometry was provided."

    Workflow looks like:

    [

        {

            "name": "workflow.run",

            "arguments": {

                "icon": "identify-map-point",

                "title": "language-designer-gen-2ae2e325-6193-4c65-a4c3-1941e553ded8-menuitemtitle-tl3qor",

                "id": "442a0a1b-0e4f-49dd-a253-9a551ccdea15",

                "portalItem": "https://xxxxxxxx/portal/sharing/rest/content/items/e1c0fd6aacf748da9f9139068c05687e",

                "commandArgumentInput": "context",

                "inputs": {}

            }

        }

    ]

    Shouldn't there be an option to configure, via a toggle button, whether a tool is used only once or remains active until it is explicitly deactivated by the user?

     

    0
  • Stephen Knittel

    Markus,
    I think you can make the change you want to the identify tool in your workflow or in the main settings of the tool in the Command section (see screenshot) 
     

    While I don't have the repeat action enabled for identify I do have it for my measure length tool:

    [

     {
       "name": "system.repeat-action",
       "arguments": {
         "action": [
           {
             "name": "measurement.capture-geometry",
             "arguments": {
               "geometryType": [
                 "polyline",
                 "polygon"
               ],
               "pluginSettings": {
                 "snapping": true
               }
             }
           },
           "measurement.create-graphics",
           "map.add-markup"
         ]
       }
     }
    ]
     

    This automatically adds a banner on the map notifying the user has a repeat action tool activated and they will need to manually turn off the tool.
    I also have an independent identify tool to add to results:

    [

        {

            "name": "sketching.capture-geometry",

            "arguments": {

                "geometryType": [

                    "polyline"

                ]

            }

        },

        {

            "name": "tasks.identify",

            "arguments": {

                "layersWithPopupEnabledOnly": false

            }

        },

        "results.activate-display-components",

        "results.add",

        "charts.display",

        "kpi.display"

    ]

     

    Hopefully some of this will help you out. 
    FYI - On Thursday 11/12/2026 VertiGIS has a GIS day presentation that will include customers talking about their applications and how they're set up, there may be some good inspiration to be found there.

    0

Please sign in to leave a comment.