layer catalog question regarding groups
Is it possible to set up the Layer Catalog so it allows for a whole group to be added at once? I have layers that display differently at different scales, and rather have the user have to dig down through the folders and then click all ot the sublayers, it would be nice to let them select a whole group / folder full of layers.
0
-
Hi Mike,
We're running version 2.7.2 of the HMTL5 Viewer, and in the 'HTML5 Administrator and Developer Guide', under the section on the 'LayerCatalog Module' (p.212 in our version), there is a description of the configurations available for this tool.
If you search your viewer .json files for the text "moduleName": "LayerCatalog", you will find the location to configure this module.
We set the checkboxes visibility to "all", as below, which provides checkboxes for all groups and layers listed in the Layer Catalog:"moduleName": "LayerCatalog", "moduleType": "geocortex.essentialsHtmlViewer.mapping.modules.layerCatalog.LayerCatalogModule", "configuration": { "layerCatalogProviders": [ { "type": "geocortex.essentialsHtmlViewer.mapping.modules.layerCatalog.EssentialsSiteProvider", "enabled": true }, { "type": "geocortex.essentialsHtmlViewer.mapping.modules.layerCatalog.AssemblyProvider", "enabled": false } ], "checkboxes": { "visibility": "<b>all</b>", "suffix": "_GROUP" } }
I believe by using the visibility setting of "configuredOnly" you can then enter a suffix value that corresponds to layer names or groups that you want to have checkboxes for. Although I haven't tried this, it sounds a bit unwieldy to me and I think the "all" option is probably the most useful in most cases.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar