Skip to content

Commit 4a92a42

Browse files
bogomyaitsmichaeldiego
authored andcommitted
Pass map instance to onDrag handler (google-map-react#656)
1 parent f73e774 commit 4a92a42

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

API.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ Default: false
126126

127127
#### onZoomAnimationStart (func)
128128

129+
#### onDrag ((map) => void)
130+
129131
#### onZoomAnimationEnd (func)
130132

131133
#### onMapTypeIdChange (func)

src/google_map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ export default class GoogleMap extends Component {
770770

771771
maps.event.addListener(map, 'drag', () => {
772772
this_.dragTime_ = new Date().getTime();
773-
this_._onDrag();
773+
this_._onDrag(map);
774774
});
775775
// user choosing satellite vs roads, etc
776776
maps.event.addListener(map, 'maptypeid_changed', () => {

0 commit comments

Comments
 (0)