Lizmap-web-client: Only one map is printed

Created on 22 Apr 2020  路  5Comments  路  Source: 3liz/lizmap-web-client

If a project has a layout with two maps, only one is printed in Lizmap:

http://cis/index.php/lizmap/service/?repository=castelplanio&project=prg&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetPrint&FORMAT=pdf&EXCEPTIONS=application/vnd.ogc.se_inimage&TRANSPARENT=true&SRS=EPSG:3004&DPI=100&TEMPLATE=test2&map0:extent=2366048.305089,4817558.585494,2368048.353185,4820308.651625&map0:scale=25000&map0:LAYERS=Carta%20tecnica,PRG,confine&map0:STYLES=predefinito,predefinito,default&LAYERS=Carta%20tecnica,PRG,confine&STYLES=predefinito,predefinito,default&OPACITIES=255,255,255

whereas from the desktop both are printed:

test2.pdf

Tested on two different servers, QGIS 3.10.4 and 5, Lizmap 3.3.5.

bug printing

All 5 comments

http://cis/index.php/lizmap/service/?repository=castelplanio&project=prg&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetPrint&FORMAT=pdf&EXCEPTIONS=application/vnd.ogc.se_inimage&TRANSPARENT=true&SRS=EPSG:3004&DPI=100&TEMPLATE=test2&map0:extent=2366048.305089,4817558.585494,2368048.353185,4820308.651625&map0:scale=25000&map0:LAYERS=Carta%20tecnica,PRG,confine&map0:STYLES=predefinito,predefinito,default&LAYERS=Carta%20tecnica,PRG,confine&STYLES=predefinito,predefinito,default&OPACITIES=255,255,255

I cannot view the web project. Maybe is my problem

I read the answer of @rldhont in mailing list ( _Lizmap always prints one map. It prints two maps if an overview map is defined_.) but it is a lizmap or qgis server limitation?

It's not your problem, the link http://cis/ I think it's to show us the URL parameters.

The above GetPrint request contains only the parameter for one map, map0. It has to be checked if adding the parameter for other maps it works, if it does not work then is a QGIS server limitation, not LM. If it works then LM should add the parameters for maps other than map0.

I removed the map following the explanation by @rldhont
Apparently it's a LM limitation.

Do you know when this problem will be resolved ? Or do you know an alternative solution ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FPaulsen picture FPaulsen  路  13Comments

pcav picture pcav  路  12Comments

josemvm picture josemvm  路  3Comments

danzig666 picture danzig666  路  10Comments

josemvm picture josemvm  路  13Comments