Respond to Google Maps Unable to adjust scroll scaling

I am trying to disable the zoom on the scroll option, but you will not be able to disable this feature.

I am using the response-google-maps component. Linked below.

https://github.com/sohilpandya/Bidlt/blob/master/src/js/components/builder/overview-google-map.js

I would be grateful if someone could look into it and help me figure out where to put the zombroll.

+6
source share
2 answers

Solved it by putting scrollwheel:false as an option for the GoogleMap component itself

<GoogleMap options={{ scrollwheel: false}}>

+3
source

To hide "use Ctrl + scroll to enlarge the map" in React, insert options={{ gestureHandling: "greedy" }}> in

 <GoogleMap defaultZoom={15} defaultCenter={{ lat: 44.814346, lng: 20.458047 }} options={{ gestureHandling: "greedy" }}> <Marker position={{ lat: 44.814346, lng: 20.458047 }} /> </GoogleMap> 
0
source

All Articles