mapfish-print icon indicating copy to clipboard operation
mapfish-print copied to clipboard

Help for generating maps with missing or only partially visible layers

Open conanKD opened this issue 4 months ago • 3 comments

Hello,

we generate a very large report with a large number of maps. Occasionally, individual layers for certain maps cannot be loaded (e.g., due to timeouts or external service problems).

Our goal:

  • We want the entire report to be generated even if not all layers can be loaded.
  • For maps where the layer cannot be loaded, no map image should be generated, i.e., it should be empty.

It is important that no map images are generated where a layer is missing or only partially visible to avoid false conclusions. BUT the report should still be generated because of the other maps which were created perfectly fine

Is this possible using the failOnError parameter, or will the entire report be aborted? Are there any other options left?

We are using mapfish 3.

Would be gratefull for any help! Kind regards, Marco

conanKD avatar Sep 01 '25 12:09 conanKD

As I remember, when failOnError is false (default), the report is ended even if there is an issue with image generation on a backend (it will be replaced by pink images).

Have you looked at the logs on error?

sbrunner avatar Sep 01 '25 13:09 sbrunner

Hey thanks for the quick response! In fact, we don't see a pink image when we have a problem with a layer; instead, the layer is only partially displayed. I should also note that this is a tile WMS that is causing us problems. But as already mentioned, the report will and should continue to be generated normally. However, for the map where the layer is sometimes missing, no map should be displayed at all, as this would otherwise lead to misunderstandings. As u can see in the attached image the layer on the map (on the left) is not displayed correctly therefor it would be nice if the map would not be generated at all:

Image

conanKD avatar Sep 01 '25 13:09 conanKD

OK, I understand your need better. Currently, we don't have any feature like this; it requires a new development.

sbrunner avatar Sep 01 '25 13:09 sbrunner