planetfederal / qgis-webappbuilder-plugin

GNU General Public License v3.0
18 stars 20 forks source link

Legend is not printed #344

Closed gioman closed 7 years ago

gioman commented 7 years ago

When printing and hovering mouse on the "Print" button the preview image shows the layout tha may contain a legend. But then in the output pdf there is no legend.

bartvde commented 7 years ago

Can you attach a webapp?

gioman commented 7 years ago

attached.

webapp.zip

bartvde commented 7 years ago

@gioman how were you testing this? With file url I get:

Access to Image at 'file:///home/bartvde/Downloads/1105/webapp/resources/print/aaa_b4a50258-920e-4fcb-96ab-729de2ee8f40_150.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access.

which is to be expected

bartvde commented 7 years ago

it should work from http://

gioman commented 7 years ago

@bartvde I'm not sure why was closed: if it try the preview trough a web server it works?

bartvde commented 7 years ago

yes, through a webserver it should work

gioman commented 7 years ago

@bartvde unlikey that a user will check the preview trough a web server. Would it be possible to raise a warning for such case (preview + print)?

bartvde commented 7 years ago

warning would be for @volaya

volaya commented 7 years ago

Warning implemented here https://github.com/boundlessgeo/qgis-webappbuilder-plugin/commit/8165db0908b51d878aa220e13e09f0f0ef084679