georchestra / mapstore2-georchestra

geOrchestra newest viewer
Other
6 stars 23 forks source link

Problem printing when not connected #650

Closed jusabatier closed 10 months ago

jusabatier commented 11 months ago

Describe the bug When not connected, after loading a public context, if I zoom in and then try to use the print function, the preview still blank. Trying to generate the PDF also result in a blank map.

If I try printing without zooming in, it works.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'a public context'
  2. Zoom in
  3. Use the print function
  4. See error : preview is blank
  5. Trying to print result in a PDF with blank map

Expected behavior Preview should display the current map state and printing should generate a PDF with current map.

Screenshots image

Additional context Versions : MapStore2-geOrchestra :2023.02.00-RC2-geOrchestra(69690b0e) MapStore2 :2023.02.xx(c4f94e3b)

landryb commented 10 months ago

using this version:

MapStore2-geOrchestra :2023.02.xx(76035d4f) MapStore2 :2023.02.xx(6a5d2de3)

created an empty context, added print zoom in zoom out, made the context public, i have a different issue but that might be a misconfiguration on my side (apache headers, https vs http, etc..), because printing tries to go through the ms2 proxy and that doesn't make sense.

https://georchestra.dev.craig.fr/mapstore/proxy/?url=http://georchestra.dev.craig.fr/mapstore/pdf/create.json

i can reproduce your issue on your context/instance at https://geoportail.lepuyenvelay.fr/mapstore/#/context/Public

jusabatier commented 10 months ago

Related with https://github.com/geosolutions-it/MapStore2/issues/9346 and fixed in RC3