IsSticky - I Want to Menu
Trying to make a "I Want To" menu item sticky, so it stays active, since this will be a primary tool users will use in our site.
Have editted the Default.json.js file to include the line "isSticky" : true in the "moduleName" : "IWantToMenu", but it doesn't seem t affect the command in the way I was expecting. Actually, it did nothing at all.
{
"text" : "Find Cemetery data by Point",
"description" : "@language-toolbar-identify-point-tooltip",
"command" : "SetActiveTool",
"commandParameter" : "IdentifyPointTool",
"isSticky" : true,
"iconUri" : "{ViewerConfigUri}../../../identify-24.png"
}, {
Any help would be appreciated.
Walter
1
-
Hi Walter,
The isSticky property has to be applied to the tool itself rather than the way you access it. Since you are using the Point Identify tool, make a search in Desktop.json.js for the following "IdentifyPointTool".
You will be taken to something similar to this:
{
"name": "IdentifyPointTool",
"command": "Identify",
"drawMode": "POINT",
"isSticky": false,
"iconUri": "Resources/Images/Icons/Toolbar/identify-24.png",
"statusText": "@language-dsk-identify-point-tool",
"keyboardStatusText": "@language-toolbar-identify-point-desc-keyboard"
}
If you change the isSticky property there, it will make the point Identify tool sticky. Unfortunately you can't make a tool sticky only when invoked in a specific way (in this case we invoke the tool from the IWTM) and we have to set the tool to either always be sticky or never be sticky.
Hopefully this was helpful, if I wasn't clear in any way please let me know :D
Cory Purnell
Latitude Geographics Quality Assurance Team0 -
Cory,
Thanks. I'll give that a try.
Appreciate your response.
Walter
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare