-
Notifications
You must be signed in to change notification settings - Fork 38
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
QGis raster layer as background layer #71
Comments
You can define a backgroundLayer with just the one layername from your QGIS project and then define the same layer as a printLayer. This way, it will not appear in the QWC2 layer tree, will appear in the background layer selection, and will be used as a background when printing. Something along the lines of this very minimal example should work:
|
That works beautifully, thank you. What if I want to use |
I did some more digging:
However, something is off, as the background tiles are empty. I see requests like these, return code is 200 but there's no content.
|
Note that |
Thank you for your reply. Setting
Setting it outside to
Regarding your second point, I would expect the tile cache to be transparent (in the sense that the request would look the same, the web app would be oblivious about the existence of a cache between it and the server), right? While inefficient, the QGis server should reply with png tiles. What I get is an empty response. |
I have a QGis project saved in the PostgreSql with three layers saved in the same database (two vector layers and a raster layer). As it is the webapp shows the three layers inside the theme and renders the map without issue.
I would like the raster layer to be a background layer (not show up in the list of theme layers, show up as a background layer).
From other answers elsewhere I take the hint that I should use a relative path but can't seem to find a good example for that. The same issue seems to suggest that I should create a separate theme (project) for the raster layer, maybe.
The text was updated successfully, but these errors were encountered: