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

#9464: fix issue of not showing background layer in case of switching from 2D mode to 3D mode #9614

Merged
merged 7 commits into from
Oct 23, 2023

Conversation

mahmoudadel54
Copy link
Contributor

Description

Fixing not showing the default background layer on the map when user switches from 2D mode to 3D mode.

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

#9464
What is the current behavior?
#9464

What is the new behavior?
When a user switches from 2d mode map to 3D mode, the default background layer will be shown.

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

@mahmoudadel54 mahmoudadel54 added bug investigation 3D All issues related to the 3D rendering in CesiumJs C027-COMUNE_FI-2023-SUPPORT labels Oct 17, 2023
@mahmoudadel54 mahmoudadel54 added this to the 2023.02.01 milestone Oct 17, 2023
@mahmoudadel54 mahmoudadel54 requested a review from MV88 October 17, 2023 12:51
@mahmoudadel54 mahmoudadel54 self-assigned this Oct 17, 2023
@mahmoudadel54 mahmoudadel54 linked an issue Oct 17, 2023 that may be closed by this pull request
1 task
Copy link
Contributor

@MV88 MV88 left a comment

Choose a reason for hiding this comment

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

can you add a chapter in the migration guidelines that tells people to edit these two files?
add it in between these two

## Migration from 2023.02.xx to 2024.01.00
### Adding spatial filter to dashboard widgets

something like:

### Fixing background config

From this version in order to fix default 3d background config a change is needed here
- `localConfig.json` by adding **visibility: false**  to the Empty Background entry in intialState.defaultState.catqalog.default.staticServices.default_map_backgrounds.backgrounds
- `new.json` by adding **visibility: false**  to the Empty Background entry

see this PR [9614](https://github.com/geosolutions-it/MapStore2/pull/9614/files) for more details

web/client/configs/localConfig.json Show resolved Hide resolved
@mahmoudadel54 mahmoudadel54 requested a review from MV88 October 18, 2023 09:57
@mahmoudadel54 mahmoudadel54 requested a review from tdipisa October 19, 2023 06:32
@tdipisa tdipisa requested review from tdipisa and removed request for tdipisa October 19, 2023 07:33
Copy link
Contributor

@MV88 MV88 left a comment

Choose a reason for hiding this comment

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

@mahmoudadel54 seems ok but can you ping @allyoucanmap to have a confirmation on the comment below?

web/client/components/map/cesium/Layer.jsx Show resolved Hide resolved
@MV88 MV88 enabled auto-merge (squash) October 20, 2023 14:01
@mahmoudadel54 mahmoudadel54 requested a review from MV88 October 23, 2023 07:20
@MV88 MV88 disabled auto-merge October 23, 2023 07:31
@MV88 MV88 removed the request for review from tdipisa October 23, 2023 07:31
@MV88 MV88 merged commit 52cdb6b into geosolutions-it:master Oct 23, 2023
4 checks passed
@MV88
Copy link
Contributor

MV88 commented Oct 23, 2023

@ElenaGallo please test it in DEV

@tdipisa tdipisa added the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Oct 23, 2023
@ElenaGallo
Copy link
Contributor

Test passed, @mahmoudadel54 please backport to the stable branch. Thanks

@mahmoudadel54
Copy link
Contributor Author

Test passed, @mahmoudadel54 please backport to the stable branch. Thanks

backport is done ===> #9636

@mahmoudadel54 mahmoudadel54 removed the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3D All issues related to the 3D rendering in CesiumJs bug C027-COMUNE_FI-2023-SUPPORT investigation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Background not visible in 3D mode
4 participants