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));