From caadc32215b31215ccdeda5bb33d6ba0a5a83877 Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Date: Tue, 29 Jan 2019 21:40:54 +0530 Subject: [PATCH] restriction bound property added --- src/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index c42e718b..fb9469f3 100644 --- a/src/index.js +++ b/src/index.js @@ -165,7 +165,8 @@ export class Map extends React.Component { disableDoubleClickZoom: this.props.disableDoubleClickZoom, noClear: this.props.noClear, styles: this.props.styles, - gestureHandling: this.props.gestureHandling + gestureHandling: this.props.gestureHandling, + restriction: this.props.restriction } ); @@ -299,7 +300,8 @@ Map.propTypes = { noClear: PropTypes.bool, styles: PropTypes.array, gestureHandling: PropTypes.string, - bounds: PropTypes.object + bounds: PropTypes.object, + restriction: PropTypes.object }; evtNames.forEach(e => (Map.propTypes[camelize(e)] = PropTypes.func));