Skip to content

Commit 94fcc3e

Browse files
Eric Neoitsmichaeldiego
authored andcommitted
Pass zoom value to zoom animation callbacks (google-map-react#742)
1 parent b3c27df commit 94fcc3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/google_map.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ export default class GoogleMap extends Component {
715715
if (this_.geoService_.getZoom() !== map.getZoom()) {
716716
if (!this_.zoomAnimationInProgress_) {
717717
this_.zoomAnimationInProgress_ = true;
718-
this_._onZoomAnimationStart();
718+
this_._onZoomAnimationStart(map.zoom);
719719
}
720720

721721
// If draw() is not called each frame during a zoom animation,
@@ -762,7 +762,7 @@ export default class GoogleMap extends Component {
762762

763763
if (this_.zoomAnimationInProgress_) {
764764
this_.zoomAnimationInProgress_ = false;
765-
this_._onZoomAnimationEnd();
765+
this_._onZoomAnimationEnd(map.zoom);
766766
}
767767

768768
this_.updateCounter_++;

0 commit comments

Comments
 (0)