Issue with Toolbar in HTML5 Viewer 2.3
Has anyone else been having issues with getting the toolbar to display in the Handheld version of HTML5 Viewer? Clicking the show toolbar button does nothing.
-
What device/browser/os versions are you seeing this behaviour with?
0 -
We fixed the issue.
ProblemIf you upgrade your HTML5 Viewer, and try to open the handheld view of the site, the toolbar will not open when clicking on the show toolbar button.
Solution
Follow the following steps to fix this:
Open your Handheld.json.js which is located in: ....\c$\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\SiteName\Viewers\ViewerName\VirtualDirectory\Resources\Config\Default
Find the following text:
Old Expand source
{
"id" : "MainToolbarView",
"viewModelId" : "MainToolbarViewModel",
"visible" : false,
"region" : "ScreenRegion",
"type" : "geocortex.essentialsHtmlViewer.mapping.modules.toolbar.ToolbarView",
"markup" : "Mapping/modules/Toolbar/SmallToolbarView.html",
"configuration" : { }
}, {
"id" : "ToolbarButtonView",
"viewModelId" : "MainToolbarViewModel",
"visible" : true,
"region" : "TopRightMapRegion",
"type" : "geocortex.essentialsHtmlViewer.mapping.modules.toolbar.ToolbarView",
"markup" : "Mapping/modules/Toolbar/ToolbarButtonView.html"
} ],3. Once you have found the text shown above, replace it with the following markup:
New Expand source
{
"id" : "MainToolbarView",
"viewModelId" : "MainToolbarViewModel",
"type" : "geocortex.essentialsHtmlViewer.mapping.modules.toolbar.ToolbarView",
"markup" : "Mapping/modules/Toolbar/SmallToolbarView.html",
"isManaged" : true,
"visible" : false,
"title" : "@language-toolbar-title",
"iconUri" : "Resources/Images/Icons/Toolbar/tools-32.png",
"region" : "ScreenRegion",
"configuration" : { }
} ],4. Then find the following text:
Old Expand source
{
"id" : "ToolbarManagedViewsViewModel",
"type" : "geocortex.essentialsHtmlViewer.mapping.modules.toolbar.ToolbarManagedViewsViewModel",
"configuration" : {
"ordering" : {
"IWantToMenuView" : 0,
"MapView" : 1,
"SimpleLayerListView" : 2
}5. Finally, replace the above text with:
New Expand source
{
"id" : "ToolbarManagedViewsViewModel",
"type" : "geocortex.essentialsHtmlViewer.mapping.modules.toolbar.ToolbarManagedViewsViewModel",
"configuration" : {
"ordering" : {
"IWantToMenuView" : 0,
"MapView" : 1,
"LayerDataContainerView" : 2,
"ResultsViewContainerViewModel" : 3,
"ToolbarView" : 4
}0 -
Apparently when upgarding the viewer, the handheld.json.js did not catch the updates so we need to manually change the lines in there to reflect the latest version.
0 -
Thanks for following up with a workaround so quickly. The handheld config should definitely be upgraded as part of the upgrade process.
Did you upgrade this viewer as part of the new in-place Post Installer viewer upgrade functionality, or was the upgrade done in REST Manager?
Also, if you could let me know which version you upgraded from I can work with our QA team to build a reproduction of the issue. Thanks!
0 -
Jason,
We upgraded Essentials to 4.1.2 from 3.15 and our viewers SV(1.10.1 to 2.2) and HTML5(1.3 to 2.2). Our viewer upgrade was done within REST Manager within each site as we had heard the Upgrade All Viewers function did not work properly.
Thanks,
Chris
0 -
Alright, thank you for the info, Chris. We'll look into this ASAP.
0 -
Thanks, keep us updated!
0 -
I am also seeing this issue.
I just upgraded from GE 3.15 to 4.1.5 & GVH 1.2.1 to 2.2.
So far I have only tested on a LG Optimus G phone on Chrome. Clicking the show toolbar button does nothing. I tried editing the Handheld.json.js as per Chris' instructions but it didn't make a difference for me. I restarted the phone and still no change.
http://vicmap.victoria.ca/Html5Viewer/index.html?viewer=Public
Any other suggestions?
Thanks,
Stephanie0 -
Oh, and I upgraded the viewers in the post-install, then launched Essentials Manager and upgraded the viewers there.
0 -
Interesting... I just went back to the Handheld.json.js file in notepad, and it said it had changed. So I reloaded it... and it reverted back to how it was before I made the updates. So I redid it (followed Chris' instructions), resaved, and now the toolbar shows up on the handheld.
Weird, but awesome. Thanks Chris!
0 -
I'm having this problem with the desktop version of the HTML5 viewer at 2.3.2. The toolbar displays if it's set to be visible by default, but then when it is closed, it cannot be reopened with the button. The button does nothing. Right now the toolbar is not set visible by default, and so the button does not open it. Even the outline around this button and the Base Map button is offset from where it used to be.
You can see what I describe here: https://maps.brucecounty.on.ca/GE4HTML5viewer/Index.html?configBase=https://maps.brucecounty.on.ca/Geocortex/Essentials/GE42/REST/sites/Bruce_County_Maps/viewers/Bruce_HTML_5_Viewer/virtualdirectory/Resources/Config/Default
In desperation I had made a new HTML5 viewer, and its toolbar displays nicely, but its query results disappear when the user clicks on one! So I must choose which of these problems to correct, and the toolbar is my choice unless someone can suggest a solution to the query results.
Of course the initial extent is ignored in the link above, but by appending to the URL
&extent=397298.74,4841582.75,620228.21,5021126.81
one of the map services draws well off to the east :(How can I fix the toolbar button? Or the service misalignment? Or the disappearing query results? Or all three? Help, please!
Thanks in advance,
Justin0 -
Hello Justin,
Another customer has run into the same scenario that you're describing. In their case, there was a module that was missing from their desktop.json.js file that contained the configuration of the HTML5 viewer. The missing module was "User". What happened was the "Banner" module called for items out of the "User" module and since this was missing it resulted in a region not knowing how to behave.
Can you please compare the old and the new desktop.json.js files to see if there is a module missing from the old json that may be causing this issue?
I hope this helps!
Pandora
0 -
Hello Pandora,
Thank you so much for your reply. It was helpful indeed. At your prompting, I found the "User" module truly was missing from the old Desktop.json.js. I've pasted it in there from the new one, and the toolbar button now works!
I'm still bothered by the extent parameter problem, because the link I included zooms only to the middle of the specified Initial Extent, but I know there's another (http://support.geocortex.com/SupportForums/Thread.aspx?pageid=0&mid=2&ItemID=9&thread=47987) thread about that.
Cheers,
Justin0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
13 kommentarer