Skip to content

Commit f9d7888

Browse files
authored
Merge pull request #47 from mjstromberg/feature/gesture-handling-#46
(fix) Add gestureHandling prop to Map component (Closes #46)
2 parents 86bbddc + 929e70a commit f9d7888

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ export class Map extends React.Component {
148148
keyboardShortcuts: this.props.keyboardShortcuts,
149149
disableDoubleClickZoom: this.props.disableDoubleClickZoom,
150150
noClear: this.props.noClear,
151-
styles: this.props.styles
151+
styles: this.props.styles,
152+
gestureHandling: this.props.gestureHandling
152153
});
153154

154155
Object.keys(mapConfig).forEach((key) => {
@@ -270,7 +271,8 @@ Map.propTypes = {
270271
keyboardShortcuts: T.bool,
271272
disableDoubleClickZoom: T.bool,
272273
noClear: T.bool,
273-
styles: T.array
274+
styles: T.array,
275+
gestureHandling: T.string
274276
}
275277

276278
evtNames.forEach(e => Map.propTypes[camelize(e)] = T.func)

0 commit comments

Comments
 (0)