diff --git a/frontend/src/components/map/MapCanvas.js b/frontend/src/components/map/MapCanvas.js index 87dffb2..d49d610 100644 --- a/frontend/src/components/map/MapCanvas.js +++ b/frontend/src/components/map/MapCanvas.js @@ -58,6 +58,8 @@ function MapCanvas(props) { enableNewPipelines, enableQuickAdd, showMapToolbar, + showMiniMap, + allowMapZoomMouseWheel, } = useFeatureSwitches(); const styles = useStyles(); const { @@ -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', diff --git a/frontend/src/constants/featureswitches.js b/frontend/src/constants/featureswitches.js index c236ecb..90db256 100644 --- a/frontend/src/constants/featureswitches.js +++ b/frontend/src/constants/featureswitches.js @@ -6,4 +6,6 @@ export const featureSwitches = { enableQuickAdd: false, showToggleFullscreen: true, showMapToolbar: true, + showMiniMap: true, + allowMapZoomMouseWheel: true, };