From 929e70a0f3d762b12dc53feb267ac928e9769f18 Mon Sep 17 00:00:00 2001 From: mjstromberg Date: Tue, 29 Nov 2016 11:25:41 -0800 Subject: [PATCH] (fix) Add gestureHandling prop to Map component This prop allows the gestureHandling option to be modified on the Google Map instance. --- src/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index a7798a75..dbc07b45 100644 --- a/src/index.js +++ b/src/index.js @@ -148,7 +148,8 @@ export class Map extends React.Component { keyboardShortcuts: this.props.keyboardShortcuts, disableDoubleClickZoom: this.props.disableDoubleClickZoom, noClear: this.props.noClear, - styles: this.props.styles + styles: this.props.styles, + gestureHandling: this.props.gestureHandling }); Object.keys(mapConfig).forEach((key) => { @@ -269,7 +270,8 @@ Map.propTypes = { keyboardShortcuts: T.bool, disableDoubleClickZoom: T.bool, noClear: T.bool, - styles: T.array + styles: T.array, + gestureHandling: T.string } evtNames.forEach(e => Map.propTypes[camelize(e)] = T.func)