From 94fcc3e5416f8e2494024be978c24bf42c85c4ab Mon Sep 17 00:00:00 2001 From: Eric Neo Date: Wed, 15 May 2019 01:54:23 +1000 Subject: [PATCH] Pass zoom value to zoom animation callbacks (#742) --- src/google_map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/google_map.js b/src/google_map.js index 44de1d4..fe10065 100644 --- a/src/google_map.js +++ b/src/google_map.js @@ -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_++;