GVH 2.4 to 2.5 upgrade
Just upgraded to the GE 4.4 and GVH 2.5, and I notice that one of my viewers that I upgraded from 2.4 to 2.5 has a few broken menus in GE Manager.
The following menus fail to load:
- Geolocation
- Home Panel
- Instant Search
- Layer List
- Pushpins
- Toolbar
They load fine if I create a new 2.5 viewer, so I'm guessing there was something in the 2.4 GVH that is breaking it. The viewer itself appears to work, so it's just those menus in GE Manager that aren't working.
Any ideas on where to start troubleshooting? I did quite a bit of customization to the viewer and directly to the Desktop.json.js.
-
Hi John,
You may have already tried this, but it could possibly be a caching issue.
Try clearing the cache for your browser (In chrome you can do this via the settings menu -> History -> Clear browsing data, In Internet Explorer: Internet options -> Delete browsing history) or loading manager in a different browser. Sometimes if the menus get cached they fail to load after an upgrade.
Let me know if this helped and if not we can look to find another solution.
Cory Purnell
Latitude Geographics Quality Assurance Team0 -
Same issues for me. Clearing cache did not fix it. I did add another viewer from HTML5 template and all the menus were there, but that would require me to rebuilt all my viewers. 0 -
Adding my experience...
I see the 2.4 version menu in GE, even if I create a new project from scratch. Missing accessibility tab, toolbar tab is in 2.4 style and others...
If I install a brand new instance of Geocortex everything is fine.
guido
0 -
I had tried clearing the cache, but that didn't fix it. That's not surprising though since all of my other upgraded viewers work fine. It's only the one viewer that won't load those menus.
0 -
John, is your viewer accessible externally? If so, do you have a URL I can hit?
0 -
Hi everyone,
It looks like this issue is caused when upgrading a viewer that has the offline module disabled.
In GVH 2.4 we allowed administrators to enable or disable the offline components of the viewer via the GVH Management pack. In GVH 2.5 we removed this functionality and decided to have the offline always available if you needed it (this goes in line with our new offline system that was introduced in 2.5).
Unfortunately this meant that when you performed your upgrade from 2.4 to 2.5 and the offline module was missing, our software didn't know how to properly handle it and just stopped upgrading the management pack. This resulted in the behaviour your are experiencing in which the management pack components after (and including) the offline tab are all missing.
In order to fix this problem we have to re-add the offline module to your configuration json file (C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\<site_name>\Viewers\<viewer_name>\VirtualDirectory\Resources\Config\Default\Desktop.json.js for example)
Due to this requiring a pretty substantial change to the json file, if you are unfamiliar with json I suggest contacting our support team and we can help guide you through the change. I also suggest if you are going to perform this change to place your configuration json into http://jsonlint.com/ to confirm that the json is valid before commiting and changes.
When you open your json file, perform a search for the following module: "moduleName": "OptimizerIntegration" this will take you to just below where you want to place the offline module that is now missing. Place your cursor just before the { above "moduleName": "OptimizerIntegration" and paste the following json:
{
"moduleName": "Offline",
"moduleType": "geocortex.essentialsHtmlViewer.mapping.modules.offline.OfflineModule",
"configuration": {
"basemaps": []
},
"views": [
{
"id": "MapDataMenuView",
"viewModelId": "OfflineMapDataMenuViewModel",
"libraryId": "Mapping.Infrastructure",
"iconUri": "Resources/Images/Icons/Toolbar/edit-24.png",
"type": "geocortex.essentialsHtmlViewer.mapping.infrastructure.menus.MenuView",
"markup": "Mapping/infrastructure/menus/MenuView.html",
"region": "LayerDataContainerRegion",
"visible": false,
"isManaged": false,
"title": "@language-common-feature-offline-tools",
"description": "@language-common-feature-template-picker-desc",
"configuration": {
"menuId": "MapDataMenu"
}
},
{
"id": "ConnectionStatusIndicatorView",
"viewModelId": "ConnectionStatusIndicatorViewModel",
"type": "geocortex.essentialsHtmlViewer.mapping.modules.offline.indicator.ConnectionStatusIndicatorView",
"markup": "Mapping/modules/Offline/ConnectionStatusIndicator/ConnectionStatusIndicatorView.html",
"region": "BottomLeftMapRegion",
"visible": false,
"configuration": {}
},
{
"id": "ClearDataView",
"title": "@language-clear-storage",
"viewModelId": "ClearDataViewModel",
"type": "geocortex.essentialsHtmlViewer.mapping.modules.offline.ClearDataView",
"markup": "Mapping/modules/Offline/ClearDataView/ClearDataView.html",
"region": "ModalWindowRegion",
"visible": false,
"configuration": {}
}
],
"viewModels": [
{
"id": "ConnectionStatusIndicatorViewModel",
"type": "geocortex.essentialsHtmlViewer.mapping.modules.offline.indicator.ConnectionStatusIndicatorViewModel",
"configuration": {
"enabled": false
}
},
{
"id": "ClearDataViewModel",
"type": "geocortex.essentialsHtmlViewer.mapping.modules.offline.ClearDataViewModel",
"configuration": {}
},
{
"id": "OfflineMapDataMenuViewModel",
"type": "geocortex.essentialsHtmlViewer.mapping.infrastructure.menus.MenuViewModel",
"configuration": {}
}
]
},This is the entire offline module. Now will be the best time to take your configuration json file and run it through http://jsonlint.com/ to confirm it is all valid. If all goes well then you should be able to load your upgraded viewer and all of the missingtabs should now be present (toolbar, geolocation, layer list, etc.)
If you need any help or this doesn't fix the issue please let me know.
Cory Purnell
Latitude Geographics Quality Assurance Team0
Please sign in to leave a comment.
Comments
6 comments