Launch Map with Toolbar Open
I can't seem to find an option to have the Toolbar open by default in HTML5. Do I need to create a workflow to do this? If so, is there an open toolbar tool in workflow?
-
There is a toolbarOpenByDefault in the viewer configuration files (Desktop.json.js etc).
To open the toolbar when the viewer starts, set to true; otherwise, set to false. The default is false.
There is also a ToggleToolbar command, you can run this from a workflow.
0 -
Thanks Nico - I have searched my Desktop.json.js file and can't find ToolbarOpenByDefault
I found a MainToolbarView - and I set visible to "true", but then the "I want to..." button sits on top of that in my viewer...
https://sgis.wellington.ca/Html5Viewer_2_0/?viewer=businessdirectorThoughts?
Paul
0 -
In 2.2 it is in the MainToolbarViewModel part:
{
"id": "MainToolbarViewModel",
"type": "geocortex.essentialsHtmlViewer.mapping.modules.toolbar.ToolbarViewModel",
"configuration": {
"toolbarGroupRefs": [
"ToolsTab"
],
"toolbarOpenByDefault": false
}
}0 -
Hi Paul -
As Nico has advised, the HTML5 Viewer 2.2+ contains an attribute called "toolbarOpenByDefault". This attribute can be activated in any of three ways: (1) through the configuration file; (2) through a workflow; or (3) through the UI (at the Viewer|Toolbar tab).
It appears that you are currently operating HTML5 Viewer 2.0. Please note that the "toolbarOpenByDefault" attribute was introduced in HTML5 Viewer 2.2.
Regards,
Steve Chapman
0 -
Hi,
I have set toolbarOpenByDefault to TRUE and the toolbar does not default to open (Editing Desktop only).
Any help would be much appreciated.
Cheers,
0 -
Hi Stephen,
Use the interface to set it for you:
/customer/servlet/servlet.FileDownload?file=00P6000000elu5ZEAQ
0 -
... or for the HTML viewer:
/customer/servlet/servlet.FileDownload?file=00P6000000elzSuEAI
0 -
Hey Brett,
Working on the HTML5 Viewer. I have done this and there is no change. The toolbar does not default open in the preview either.
Cheers,
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
8 Kommentare