-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SwitchBackground function button #476
Comments
You also need to assign the desired backgound layers to a theme, see https://qwc-services.github.io/configuration/ThemesConfiguration/ |
I took the code above from within a theme.. These layers are already set up in the QGIS project and configured in QGIS Server. I was hoping to use them in the background switcher too. Can you confirm whether this is possible before I close the call. |
Background layers are configured purely client-side and will appear in the background switcher, separate from the layertree. Background layers are typically added to the QGIS project itself just for printing (see https://qwc-services.github.io/topics/Printing/) |
Ahh...so i need to set up some background layers in the QGIS project which I haven't done then mark them as 'printLayers' under 'backgroundLayers'. Think I've got it. |
Let me add a hint: Just set the parameter
See: https://qwc-services.github.io/references/qwc2_plugins/#print And respective for including them in the raster export:
See: https://qwc-services.github.io/references/qwc2_plugins/#rasterexport Then configure the background layer sources within the
And specify them for each theme:
Reading the documentation at https://qwc-services.github.io/configuration/ThemesConfiguration/#manual-theme-configuration, it should by possible to specify them within the With this configuration you don't have to add the background layers to each QGIS project to get them printed. |
Hi,
Trying to set up the background layers to appear alongside the missing 'SwitchBackground' button in the 'qwc2-demo-app' static website version but cannot see what is wrong. Below is the 'backgroundLayers' part of 'themesConfig.json. Perhaps this is only functional in 'qwc-services'? What other json files require amending/checking if any.
],
The text was updated successfully, but these errors were encountered: