React-google-maps: Feature Request: Add support for new "gestureHandling" option

Created on 18 Nov 2016  路  4Comments  路  Source: tomchentw/react-google-maps

The Google Maps JS Api version 3.27 (published on the 15.11.2016, see https://developers.google.com/maps/documentation/javascript/releases?hl=de) introduces a new map option called gestureHandling to define how touch events on mobile should be handled. It would be really nice to see support for it in this library, especially since the update changed the default behavior of the map.

Most helpful comment

For anyone following: you just have to pass an options object to any of the provided react elements to set their respective google maps js options. For example, for the map itself and this example you would add a prop to the <GoogleMap> like this: options={{gestureHandling: "greedy"}} as specified in the API doc.

All 4 comments

For anyone following: you just have to pass an options object to any of the provided react elements to set their respective google maps js options. For example, for the map itself and this example you would add a prop to the <GoogleMap> like this: options={{gestureHandling: "greedy"}} as specified in the API doc.

What's the difference between options and defaultOptions? Does options just override defaultOptions?

When i pass options={{ gestureHandling: 'cooperative' }} it didn't worked.defaultOptions={{ gestureHandling: 'cooperative' }} also didn't worked

Was this page helpful?
0 / 5 - 0 ratings