mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Pass map instance to onDrag handler (#656)
This commit is contained in:
parent
f73e774a45
commit
4a92a42902
2
API.md
2
API.md
@ -126,6 +126,8 @@ Default: false
|
||||
|
||||
#### onZoomAnimationStart (func)
|
||||
|
||||
#### onDrag ((map) => void)
|
||||
|
||||
#### onZoomAnimationEnd (func)
|
||||
|
||||
#### onMapTypeIdChange (func)
|
||||
|
||||
@ -770,7 +770,7 @@ export default class GoogleMap extends Component {
|
||||
|
||||
maps.event.addListener(map, 'drag', () => {
|
||||
this_.dragTime_ = new Date().getTime();
|
||||
this_._onDrag();
|
||||
this_._onDrag(map);
|
||||
});
|
||||
// user choosing satellite vs roads, etc
|
||||
maps.event.addListener(map, 'maptypeid_changed', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user