Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
Needs more info comment that > 10 days [ID: 963198]
Comment such as: SPAM, non-actionable [ID: 963127]
Resolved actionable follow-up comments [ID: 963027]
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
If you have a Marker and want to zoom to it, let's say:
Marker marker = mMap.addMarker(new MarkerOptions()
.position(new LatLng(46, 11))
.title("Test"));
gMapReference.animateCamera(CameraUpdateFactory.newLatLngZoom(marker.getPosition(),15));
If you cancel the animation when is happening (just pan), and then press the ZoomOut or ZoomIn button (native button) the map will zoom way inside the middle point in which you are!
After that Horrible animation the zoom is fine.
If you try to stopAnimations while onCancel (adding a callback) you will receive a crash, so there is no way to fix it.
At the moment I have to concatenate two animations which give a very bad result:
gMapReference.animateCamera(CameraUpdateFactory.newLatLng(marker.getPosition()), new GoogleMap.CancelableCallback() {
@Override
public void onFinish() {
gMapReference.animateCamera(CameraUpdateFactory.zoomTo(15));
}
@Override
public void onCancel() {
}
}
);
*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************