Skip to content

PB-490: move 3d zoom buttons to right toolbox#841

Merged
ltkum merged 7 commits intodevelopfrom
feat-PB-490-move-zoom-buttons-in-3d
May 30, 2024
Merged

PB-490: move 3d zoom buttons to right toolbox#841
ltkum merged 7 commits intodevelopfrom
feat-PB-490-move-zoom-buttons-in-3d

Conversation

@ltkum
Copy link
Contributor

@ltkum ltkum commented May 14, 2024

Issue : The zoom in and out buttons were added to the cesium viewer near the compass, when it is a bit more logical to have them stay where they are in the 2D viewer.

Fix : We move the logic of those buttons to the toolbox zoom buttons, use that logic when we are in 3d, and removed the cesium buttons.

still todo :
tests
move compass directly to cesium map, as we no longer need a toolbox wrapper

Test link

@cypress
Copy link

cypress bot commented May 14, 2024

Passing run #2363 ↗︎

0 207 20 0 Flakiness 0

Details:

PB-490: small css adaptation
Project: web-mapviewer Commit: b2a8461a42
Status: Passed Duration: 05:49 💡
Started: May 30, 2024 4:15 PM Ended: May 30, 2024 4:21 PM

Review all test suite changes for PR #841 ↗︎

@ltkum ltkum force-pushed the feat-PB-490-move-zoom-buttons-in-3d branch from 8662e62 to 0014dcd Compare May 27, 2024 08:54
@ltkum ltkum requested a review from pakb May 27, 2024 08:55
@ltkum ltkum force-pushed the feat-PB-490-move-zoom-buttons-in-3d branch from 0014dcd to d4c43f1 Compare May 27, 2024 08:55
@ltkum ltkum marked this pull request as ready for review May 27, 2024 08:55
@ltkum ltkum requested a review from pakb May 28, 2024 15:13
Comment on lines +646 to +655

$compass-size: 95px;

&-compass {
position: relative;
width: $compass-size;
height: $compass-size;
--cesium-compass-stroke-color: rgba(0, 0, 0, 0.6);
--cesium-compass-fill-color: rgb(224, 225, 226);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

doesn't really matter, but as there's now only this compass in the toolbox, there's no more a container and many children. So this (S)CSS could be flatten, and the class cesium-toolbox-compass be removed or used as the primary identifier/selector for all the rules withint cesium-toolbox and cesium-toolbox-compass

@ltkum ltkum force-pushed the feat-PB-490-move-zoom-buttons-in-3d branch from df04ee7 to 1dbf13b Compare May 30, 2024 15:36
ltkum added 7 commits May 30, 2024 18:11
Issue : The zoom in and out buttons were added to the cesium viewer near the compass, when it is a bit more logical to have them stay where they are in the 2D viewer.

Fix : We move the logic of those buttons to the toolbox zoom buttons, use that logic when we are in 3d, and removed the cesium buttons.

temp
…t was moved from the cesium toolbox to the zoom buttons
@ltkum ltkum force-pushed the feat-PB-490-move-zoom-buttons-in-3d branch from 0bd3729 to b2a8461 Compare May 30, 2024 16:11
@ltkum ltkum merged commit 92426c1 into develop May 30, 2024
@ltkum ltkum deleted the feat-PB-490-move-zoom-buttons-in-3d branch May 30, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants