Skip to content

Commit

Permalink
geosolutions-it#8965 Allow map widgets also in 3D mode
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap committed Apr 7, 2023
1 parent 5e3c57e commit 621181d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 3 additions & 5 deletions web/client/plugins/widgets/autoDisableWidgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@ import { createSelector } from 'reselect';

import { connect } from 'react-redux';
import { rightPanelOpenSelector, bottomPanelOpenSelector } from '../../selectors/maplayout';
import { isCesium } from '../../selectors/maptype';

/**
* enhances the component disabling it (setting `enabled` property to `false`) when rightPanel, bottomPanel are open or when the maptype is cesium.
* enhances the component disabling it (setting `enabled` property to `false`) when rightPanel or when bottomPanel are open
*/
const autoDisableWidgets = connect(
createSelector(
rightPanelOpenSelector,
bottomPanelOpenSelector,
isCesium,
(rightPanel, bottomPanel, cesium) => ({
enabled: !rightPanel && !bottomPanel && !cesium
(rightPanel, bottomPanel) => ({
enabled: !rightPanel && !bottomPanel
})
)
);
Expand Down
5 changes: 4 additions & 1 deletion web/client/themes/default/less/cesium.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@
}

#map .cesium-viewer .compass {
right: 40px;
// we downscale the compass
// to make it fit in between widgets and sidebar
transform: scale(0.75);
right: 26px;
}

0 comments on commit 621181d

Please sign in to comment.