Pass map instance to onDrag handler (#656)

This commit is contained in:
Dmitry Bogomya 2018-11-08 14:20:12 +02:00 committed by Michael Diego
parent f73e774a45
commit 4a92a42902
2 changed files with 3 additions and 1 deletions

2
API.md
View File

@ -126,6 +126,8 @@ Default: false
#### onZoomAnimationStart (func)
#### onDrag ((map) => void)
#### onZoomAnimationEnd (func)
#### onMapTypeIdChange (func)

View File

@ -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', () => {