AddMarkup tool in I Want To Menu
I am using the GVH 2.12.1. How do I create an Add Markup tool in the I Want to Menu? It looks like there are a few possibilities. If I create a tool and give it the Command AddMarkup it wants a command parameter of type esri.geometry.Geometry in JSON format. What should this JSON be for a freehand polyline?
Another option is to use the SetActiveTool, but what is the correct parameter for the create polyline markup tool?
Neither of these are properly documented. If I look in https://docs.geocortex.com/essentials/gvh/latest/commands-help/#/commands/Markup I don't see any examples of JSON to use for the parameter.
0
-
I've found my answer in the Desktop.json.js file for the viewer.
Command:SetActiveTool
Parameter: FreehandMarkupTool
My problem finding things in the Commands documentation was that I was using the menu on the side. If instead I type in the search box making some guesses at what I think the commands should be then I am able to find the right commands.
I took this further and created a workflow that executed several RunExternalCommand activities, as follows.
ToggleToolbar True
SetCurrentTab ToolsTab
SetActiveTool FreehandMarkupTool0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar