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

#5292: Fixed opacity issues in printing #5972

Merged
merged 2 commits into from
Oct 6, 2020

Conversation

offtherailz
Copy link
Member

@offtherailz offtherailz commented Oct 5, 2020

Description

This PR fixes this issue: #5292 (comment)
Moreover fixes other minor issues found in WMS/OSM/Vector layers and printing (opacity = 0 becomes 1).
Added unit tests for all the use cases about opacity

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

What is the current behavior?

#5292

What is the new behavior?
Now the opacity is correct for every layer

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

@offtherailz offtherailz added bug Project: C125 geOrchestra BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch labels Oct 5, 2020
@offtherailz offtherailz added this to the 2020.02.02 milestone Oct 5, 2020
@offtherailz offtherailz requested a review from mbarto October 5, 2020 09:30
@offtherailz offtherailz self-assigned this Oct 5, 2020
@coveralls
Copy link

coveralls commented Oct 5, 2020

Coverage Status

Coverage increased (+0.02%) to 83.265% when pulling b02bccc on offtherailz:fix_print_opacity_issue into df76984 on geosolutions-it:master.

@offtherailz offtherailz changed the title #5772: Fixed opacity issues in printing #5292: Fixed opacity issues in printing Oct 5, 2020
@offtherailz offtherailz force-pushed the fix_print_opacity_issue branch from f8aa333 to 492522c Compare October 5, 2020 09:51
@@ -243,7 +243,7 @@ const PrintUtils = {
wms: {
map: (layer, spec) => ({
"baseURL": PrintUtils.normalizeUrl(layer.url) + '?',
"opacity": layer.opacity || 1.0,
"opacity": layer.opacity || (layer.opacity === 0 ? 0 : 1.0),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can extract a function for this repeated check?

@tdipisa
Copy link
Member

tdipisa commented Oct 6, 2020

@offtherailz can you please backport this to 2020.02.xx? Thank you.

@tdipisa tdipisa merged commit 4aff544 into geosolutions-it:master Oct 6, 2020
offtherailz added a commit to offtherailz/MapStore2 that referenced this pull request Oct 6, 2020
…it#5972)

* geosolutions-it#5292: Fixed opacity issues in printing

* Unified opacity exract system in printutils
tdipisa pushed a commit that referenced this pull request Oct 6, 2020
* #5292: Fixed opacity issues in printing

* Unified opacity exract system in printutils
mbarto pushed a commit to mbarto/MapStore2 that referenced this pull request Oct 9, 2020
…ions-it#5835) (geosolutions-it#5847)

* geosolutions-it#5972 fix npm install and remove checkcesium

* remove check cesium add html-to-draftjs
mricca pushed a commit to mricca/MapStore2 that referenced this pull request Oct 9, 2020
…ions-it#5835)

* geosolutions-it#5972 fix npm install and remove checkcesium

* remove check cesium add html-to-draftjs
@MV88 MV88 removed the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Oct 15, 2020
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.

5 participants