Close Panel option on layer panel (HTML5 2.5)
Hi All
If you click the close panel button from the Layers Panel, there doesn't seem to be anyway of reopening the panel (apart from a refresh). So if a user accidentally closes the layer list panel they have no way of opening it back up again ... unless I am missing something?
Is there away of disabling the close panel option for the Layer Panel only?
0
-
Are you talking about the left side panel that shows all the layers? You can toggle the panel to close and open using the arrow button right next to the "I want to" menu. 0 -
Its actually the x on the panel header. Once you press this, you cant seem to open the panel again.
0 -
Yes, you can disable being able to close the layer list by changing the backButtonOnRootView setting for the LayerDataContainerViewModel from true to false in the Shells module of your viewer json.
{
"id": "LayerDataContainerViewModel",
"type": "geocortex.essentialsHtmlViewer.mapping.infrastructure.ui.components.SmartPanel.SmartPanelViewModel",
"libraryId": "Mapping.Infrastructure",
"configuration": {
"containerRegionName": "LayerDataContainerRegion",
"headerIsVisible": true,
"backButtonOnRootView": false,0 -
Thanks John, great answer. I just tested your solution and it worked for me in the latest HTML5 viewer
Cheers!0 -
Just what I was looking for! I knew it was a simple fix somewhere.
Cheers for that John.0 -
Would it be possible to make this "false" default for desktop and tablet in the future viewer release? Just a suggestion, thanks all. 0 -
I actually have the opposite problem, I'd like for there not to be an option at all to view the layer list. When the viewer opens the map, I"d like them to only see the home screen, and not have the 'Layers' button on the bottom of the home panel. Is there a way to do that? 0 -
Yes, you just need to disable the LayerDataContainerView, which is a setting you can update in the Shells module section of your viewer config.
{
"id": "LayerDataContainerView",
"viewModelId": "LayerDataContainerViewModel",
"visible": false,
"isManaged": true,
"title": "@language-common-layer-data",
"iconUri": "Resources/Images/Icons/Toolbar/layers-24.png",
"libraryId": "Mapping.Infrastructure",
"type": "geocortex.essentialsHtmlViewer.mapping.infrastructure.ui.components.SmartPanel.SmartPanelView",
"markup": "Mapping/infrastructure/ui/components/SmartPanel/SmartPanelView.html",
"region": "DataRegion",
"configuration": {
"resizableParentRegion": "LeftPanelRegion",
"resizeX": true
}0 -
Thank you John! 0
Please sign in to leave a comment.
Comments
9 comments