From df188aa3eaa7b029c61c73abdefabddc3be8c3ad Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Wed, 11 Apr 2018 14:56:07 +0300 Subject: [PATCH] Change search map controls for visibility - Move zoom controls to top left - Hide street view button from bottom right --- src/components/SearchMap/SearchMap.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/SearchMap/SearchMap.js b/src/components/SearchMap/SearchMap.js index 7cf52a9d..91b17647 100644 --- a/src/components/SearchMap/SearchMap.js +++ b/src/components/SearchMap/SearchMap.js @@ -148,6 +148,11 @@ const MapWithGoogleMap = withGoogleMap(props => { /> ) : null; + const controlPosition = + typeof window !== 'undefined' && typeof window.google !== 'undefined' + ? window.google.maps.ControlPosition.LEFT_TOP + : 5; + return ( { clickableIcons: false, // When infoCard is open, we can't differentiate double click on top of card vs map. disableDoubleClickZoom: !!infoCardOpen, + zoomControlOptions: { + position: controlPosition, + }, + streetViewControl: false, }} ref={onMapLoad} onIdle={onIdle}