sitmun / sitmun-viewer-app

A basic map viewer application for the SITMUN platform.
European Union Public License 1.2
1 stars 1 forks source link

Apparently nothing happens when you press the print button... but only apparently. #54

Closed RicardCots closed 3 weeks ago

RicardCots commented 2 months ago

Describe the bug It seems that printing takes longer than usual (compared to other SITNA API viewers) and this causes a user interface problem since the user has no information about what is happening and may think that he has not pressed the button, or that the application has crashed...

Additionally, this behaviour causes errors due to possible user interactions with the application (pressing the print button again, closing the window...).

To Reproduce Steps to reproduce the behavior:

  1. Go to a SITMUN viewer.
    1. Click on tools->Print
  2. Click on the download button to download the PDF file.
  3. Observe how long it takes and how the user has no information about what is happening. Alternatively try interacting with the application (close the print window, press the button again...).

Expected behavior Printing faster (at least as fast as it is in other SITNA API viewers) and the user is also informed by a progress bar or a process gif.

Screenshots image

fjlopez commented 2 months ago

In my environment (Chrome 128.0.6613.138 (Official Build) (arm64) on macOS Sequoia 16.0), both print and download functions were nearly instantaneous. However, I did notice a failure in the console related to PDF generation, which implies it could have been even faster. I suspect this issue might be related to the lag you’re experiencing.

Could you check your console and see how many instances of No se ha podido generar el archivo PDF appear? This might help identify the root cause.

Captura de pantalla 2024-09-20 a las 16 58 53
silmeUsil0001 commented 3 weeks ago

Solved changing the image to a valid URL