Skip to main content

Close Panel option on layer panel (HTML5 2.5)

Comments

9 comments

  • Permanently deleted user
    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
  • Chris Roberts
    Its actually the x on the panel header.  Once you press this, you cant seem to open the panel again.

     

    User-added image

     

     
    0
  • John Nerge
    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
  • Permanently deleted user
    Thanks John, great answer.  I just tested your solution and it worked for me in the latest HTML5 viewer

     

    Cheers!
    0
  • Chris Roberts
    Just what I was looking for! I knew it was a simple fix somewhere.

     

    Cheers for that John.
    0
  • Permanently deleted user
    Would it be possible to make this "false" default for desktop and tablet in the future viewer release? Just a suggestion, thanks all.
    0
  • Permanently deleted user
    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
  • John Nerge
    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
  • Permanently deleted user
    Thank you John!
    0

Please sign in to leave a comment.