Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeoJSON layer with opacity and point style defined are not rendered #3354

Open
ismailsunni opened this issue Jul 29, 2024 · 0 comments
Open

Comments

@ismailsunni
Copy link
Contributor

ismailsunni commented Jul 29, 2024

Context

  • MapFish print version: ?
  • Java version: ?
  • OS: ?

Describe the bug

When the print spec has a GeoJSON layer that has opacity != 1 and has a point style defined, the whole layer is not rendered. When the opacity set to 1, it is rendered correctly. When the point style definition is removed, it is rendered correctly.

How to reproduce

  1. Visit https://ismailsunni.github.io/mfp-print-spec/ (A small tool to send print spec and get the result)
  2. Set the MFP server to https://geomapfish-demo-2-8.camptocamp.com/printproxy or press the "Set to Demo MFP" button
  3. I have uploaded six samples json spec here: https://github.com/ismailsunni/print-spec-examples/tree/main/geojson-opacity (use only the one without swisstopo in its name, 3 files)
  4. Copy the content of the json spec, and put in the tool above. Press "Print Spec" button. Wait.
  5. Compare the result of the PDF as shown below in the next section

The only difference between the three json is in line 42 (to set the layer opacity) and the point style definition (removed or not)

It can also be reproduced using Swisstopo Mapviewer MFP instance. Repeat those steps above, but now with "Set to Swiss Topo MFP" and use the json with swisstopo prefix.

Actual results

MFP Demo
image

  • Opacity 0.5, without point style defined: the layer is rendered correctly with the opacity
  • Opacity 1, with point style defined: layer is rendered correctly
  • Opacity 0.5, with point style defined: layer is NOT rendered at all

Swisstopo Mapviewer MFP instance
image

  • Opacity 1, with point style defined: layer is rendered correctly
  • Opacity 0.5, without point style defined: the layer is rendered correctly with the opacity
  • Opacity 0.5, with point style defined: layer is NOT rendered at all

Expected results

I expect that the geojson layer is rendered properly when the opacity is not 1 and with a point style defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant