Is there a way to have the Layer list open by default when viewer opens?
Instead of having the home panel open by default when the viewer first opens I would like my Layer list to be open. But I do not see an open to Open Layer List by Defualt as I do Home Panel or Toolbar for example. If there is a way to have the layers displayed in the home panel upon launch that'd be great. Thank you in advance for any suggestions or help.
0
-
If you do not have the Home panel open by default, then Layers should open by default. 0 -
Thanks for the reply. I thought that should happen too but Layers are not opening by default. 0 -
You have edited your viewer, and unchecked the "Open Home Panel by default" option? And what does display when it opens - the Home Panel still? 0 -
Yes, correct. The box is unchecked next to "Open Home Panel by Default". When the viewer opens nothing displays. Home panel does not show. I have to hit the arrow to expand or collapse the Layers list. 0 -
Is your site public? I'm assuming you have set up your layers in the Layer List in Manager... 0 -
Do you just have a single service? Have you changed any of the settings for the service? Have you overwritten the minimum scale? 0 -
I am currently working on developing an internal and external site for PWA Transportation. Yes, I have set up the layers in the layer list in Manager. I have 7 separate services besides the basemaps. I have not changed any of the settings other than turning one service off by default and trying to have the Layers list display instead of the Home panel. I have not changed anything in regards to scale. 0 -
Mike, I found out how to get the Layers List- home panel to be turned on by Default. In the viewers properties, under look and feel there is the option to Open by Default. Check that box and it works! Thanks for your help again. 0 -
Hi Liane,
I am not totally sure what the problem could be, but if you could check you desktop.json.js file for the site you are using and look for the following: "LayerDataContainerViewModel"
the json object should look like this:
{ "id": "LayerDataContainerViewModel", "type": "geocortex.essentialsHtmlViewer.mapping.infrastructure.ui.components.SmartPanel.SmartPanelViewModel", "require": "geocortex/infrastructure/ui/components/SmartPanel/SmartPanelViewModel", "libraryId": "Mapping.Infrastructure", "configuration": { "containerRegionName": "LayerDataContainerRegion", "headerIsVisible": true, "backButtonOnRootView": true, "showBackButtonAsX": true, "showHostedViews": true, "ordering": { "LayerListView": 0, "MapServiceActionsView": 1, "LayerActionsView": 2, "LegendView": 3, "FeatureLayerListView": 4, "FeatureLayerDetailsView": 5 } } }
Can you check to make sure your ordering is similar to mine, and that it includes the LayerListView value. Without that value you will open to a blank view, like this:_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000fxY4&feoid=Body&refid=0EMf2000000k9cf" _/_img_
0 -
Thank you Cory. I was not even getting a blank view. But good news. My desktop.json.js file for the "LayerDataContainerViewModel" looks just like yours. I got the Layer list to display by default by editing the Look and Feel in the viewer properties. There is a box to check on (or off) to open the Data Frame by default. It now works. Thank you for your help! 0 -
Thankyou for this thread! So much harder to find than you would think. Data Frame? I didn't think that was the layer list. 0
Please sign in to leave a comment.
Comments
11 comments