Skip to content

Commit

Permalink
featureswitch mapcontrols.
Browse files Browse the repository at this point in the history
  • Loading branch information
damonsk committed Nov 2, 2024
1 parent 3edacf2 commit fae5c39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/components/map/MapCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ function MapCanvas(props) {
enableNewPipelines,
enableQuickAdd,
showMapToolbar,
showMiniMap,
allowMapZoomMouseWheel,
} = useFeatureSwitches();
const styles = useStyles();
const {
Expand Down Expand Up @@ -253,7 +255,8 @@ function MapCanvas(props) {
width={props.mapCanvasDimensions.width + 30}
height={props.mapCanvasDimensions.height + 30}
detectAutoPan={false}
miniatureProps={{ position: 'right' }}
detectWheel={allowMapZoomMouseWheel}
miniatureProps={{ position: showMiniMap ? 'right' : 'none' }}
toolbarProps={{ position: 'none' }}
SVGStyle={{
x: '-30',
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/constants/featureswitches.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ export const featureSwitches = {
enableQuickAdd: false,
showToggleFullscreen: true,
showMapToolbar: true,
showMiniMap: true,
allowMapZoomMouseWheel: true,
};

0 comments on commit fae5c39

Please sign in to comment.