In the Results Details area. you can add a menu item that runs a result action from the feature Details panel.
In the Result Details panel, you can change the settings described below.
•Title: Type a title to display for the component.
•Icon: To select an icon to represent the component, click Select Icon, click the desired icon and click OK. To remove the icon, click Clear Icon.
A list of result actions you can run from the Result Details panel.
When you configure and run a result action set in Result Details settings, it takes effect globally on all the layers of the map and the features on the layers. To set a result action that applies to a particular layer, see Map Settings.
•Title: Change the name of the menu item as it will appear in the Result Details panel.
•Description: Type an explanation of what this menu item will do when you click it.
•Icon: Add an icon to appear beside the title in the Result Details panel.
•Command: The command to run when a user taps the menu item. A command is an action the app should perform.
To add a menu item:
1.In the Components panel, select Map, and select the desired layer.
2.In the layer panel, click +Add Menu Item.
A window appears that lets you select a command or workflow.
3.Click one of the following tabs as appropriate:
•Commands: Select the command you want to run, and click Select.
•Workflows: Select the workflow you want to run, and click Select. Alternatively, to create a new Workflow, click Create a new Workflow. After adding the workflow, you can set its Title and Icon.
4.Click the new menu item to edit it.
5.In the Menu Item panel, set the following:
•Title: Type a title for this menu item as it will appear in Result Details. For example, Zoom to and Pulse Feature.
•Description: Type an explanation of what this menu item will do when you click it. For example, Zooms to feature and temporarily highlights it.
•Icon: To select an icon to represent this menu item, click Select Icon, click the desired icon and click OK. You do not need to have an icon, you can just have words to represent the menu item. To remove the icon, click Clear Icon.
•Command: The command to run when a user taps the menu item. A command is an action the app should perform.
To select the command you want, click the box that contains the current command followed by
. The list of available commands depends on the context of the component.
Some commands have additional settings you can configure.
To turn your command into a custom command, click
. A code box appears in which you can manually edit the JSON code for the command. Turning your command into a custom command is a one-way operation.
To run multiple commands, click
and, in the code box, type a sequence of commands in JSON format. While editing the custom command in the code box, press CTRL+Space to access code suggestions.
For example, the following custom command zooms to the current feature and temporarily highlights it.
[
"map.zoom-to-features",
"highlights.pulse"
]
The above example demonstrates how to pass the current context - the current feature - as an argument into the map.zoom-to-features operation. The returned value of map.zoom-to-features, which is the same set of features, is then automatically passed into the next command, highlights.pulse.
•Hide when Disabled: Whether to hide the button when the command cannot be executed.
•Result Shown: The command to run when a result in the Result Details panel becomes the actively displayed result. A command is an action the app should perform.
Some commands have additional settings you can configure.
To add a command:
1.In the Components panel, select Result Details.
2.If necessary, in the Result Details panel, click
to expand the Events section.
3.Under Result Shown, click +Add Command.
A window appears that lets you select a command or workflow.
4.Click one of the following tabs as appropriate:
•Commands: Select the command you want to run, and click Select.
•Workflows: Select the workflow you want to run, and click Select. Alternatively, to create a new Workflow, click Create a new Workflow. After adding the workflow, you can set its Title and Icon.
To turn your command into a custom command, click
. A code box appears in which you can manually edit the JSON code for the command. Turning your command into a custom command is a one-way operation.
To run multiple commands, click
and, in the code box, type a sequence of commands in JSON format. While editing the custom command in the code box, press CTRL+Space to access code suggestions.
To change the command:
1.In the Components panel, select Result Details.
2.If necessary, in the Result Details panel, click
to expand the Events section.
3.Under Result Shown, click the box that contains the current command followed by
.
4.Select a command and click Submit.
To delete the command:
1.In the Components panel, select Result Details.
2.If necessary, in the Result Details panel, click
to expand the Events section.
3.Under Result Shown, beside the current command, click
.
•Result Hidden: The command to run when a result in the Result Details panel no longer becomes the actively displayed result because the user views the previous or next result. A command is an action the app should perform.
To add a command:
1.In the Components panel, select Result Details.
2.If necessary, in the Result Details panel, click
to expand the Events section.
3.Under Result Hidden, click +Add Command.
A window appears that lets you select a command or workflow.
4.Click one of the following tabs as appropriate:
•Commands: Select the command you want to run, and click Select.
•Workflows: Select the workflow you want to run, and click Select. Alternatively, to create a new Workflow, click Create a new Workflow. After adding the workflow, you can set its Title and Icon.
To turn your command into a custom command, click
. A code box appears in which you can manually edit the JSON code for the command. Turning your command into a custom command is a one-way operation.
To run multiple commands, click
and, in the code box, type a sequence of commands in JSON format. While editing the custom command in the code box, press CTRL+Space to access code suggestions.
To change the command:
1.In the Components panel, select Result Details.
2.If necessary, in the Result Details panel, click
to expand the Events section.
3.Under Result Hidden, click the box that contains the current command followed by
.
4.Select a command and click Submit.
To delete the command:
1.In the Components panel, select Result Details.
2.If necessary, in the Result Details panel, click
to expand the Events section.
3.Under Result Hidden, beside the current command, click
.