From 61de75d68b9194eb5c697737214ba199f31fd3fc Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Mon, 13 Aug 2018 14:58:19 +0300 Subject: [PATCH] Clean up map controls --- src/components/Map/DynamicGoogleMap.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/Map/DynamicGoogleMap.js b/src/components/Map/DynamicGoogleMap.js index 92aade43..306a3bc8 100644 --- a/src/components/Map/DynamicGoogleMap.js +++ b/src/components/Map/DynamicGoogleMap.js @@ -34,6 +34,11 @@ const DynamicGoogleMap = withGoogleMap(props => { const circle = ; + const controlPosition = + typeof window !== 'undefined' && typeof window.google !== 'undefined' + ? window.google.maps.ControlPosition.LEFT_TOP + : 5; + return ( { // Disable zooming by scrolling scrollwheel: false, // Fullscreen control toggle - fullscreenControl: true, + fullscreenControl: false, + // Street View control + streetViewControl: false, + // Zoom control position + zoomControlOptions: { + position: controlPosition, + }, }} > {coordinatesConfig.fuzzy ? circle : marker}