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

#10342: Fix issue of markers are not printed correctly #10395

Merged
merged 3 commits into from
Jun 6, 2024

Conversation

mahmoudadel54
Copy link
Contributor

Description

In this PR, the issue of not showing markers properly in print is resolved.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

#10342

What is the current behavior?
#10342

What is the new behavior?
Now in print, the markers display in it normally.

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

The issue was in symbolizerToPrintMSStyle where if the passed symbolizer object to 'drawWellKnownNameImageFromSymbolizer' has no radius -> it returns NaN and here:

const { width = symbolizer.size, height = symbolizer.size } = drawWellKnownNameImageFromSymbolizer(symbolizer);

you see the initiate values of width and height should be equal size which won't be as the returned width and height = NaN which override the symbolizer.size value

So the preproduced issue was as the icon height = NaN. not symbolizer.size

Description:
- fix issue of now shoing marker into print
@tdipisa tdipisa linked an issue Jun 3, 2024 that may be closed by this pull request
1 task
Description:
- resolve review comments by creating 'getCachedImageById' function
- edit unit test
@allyoucanmap allyoucanmap merged commit bc4aefc into geosolutions-it:master Jun 6, 2024
6 checks passed
@allyoucanmap
Copy link
Contributor

@ElenaGallo please test this fix on dev and let us know if we can backport on 2024.01.xx, thanks

@ElenaGallo
Copy link
Contributor

Test passed @mahmoudadel54 please backport to 2024.01.xx. Thanks

@mahmoudadel54
Copy link
Contributor Author

Test passed @mahmoudadel54 please backport to 2024.01.xx. Thanks

Backport is done ---> #10413

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

Successfully merging this pull request may close these issues.

Markers are not printed correctly
3 participants