mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Pass zoom value to zoom animation callbacks (#742)
This commit is contained in:
parent
b3c27dfb0e
commit
94fcc3e541
@ -715,7 +715,7 @@ export default class GoogleMap extends Component {
|
||||
if (this_.geoService_.getZoom() !== map.getZoom()) {
|
||||
if (!this_.zoomAnimationInProgress_) {
|
||||
this_.zoomAnimationInProgress_ = true;
|
||||
this_._onZoomAnimationStart();
|
||||
this_._onZoomAnimationStart(map.zoom);
|
||||
}
|
||||
|
||||
// If draw() is not called each frame during a zoom animation,
|
||||
@ -762,7 +762,7 @@ export default class GoogleMap extends Component {
|
||||
|
||||
if (this_.zoomAnimationInProgress_) {
|
||||
this_.zoomAnimationInProgress_ = false;
|
||||
this_._onZoomAnimationEnd();
|
||||
this_._onZoomAnimationEnd(map.zoom);
|
||||
}
|
||||
|
||||
this_.updateCounter_++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user