Skip to content
Permalink
Browse files

bug #1299: Zoom Button Crash in 6.1.0 (#1307)

fix StackOverflow, because when zooming in with zoom buttons,
osm tries to keep the map centered to the current user location.
See: org.osmdroid.views.overlay.mylocation.MyLocationNewOverlay.onSnapToItem
  • Loading branch information...
shorti1996 authored and spyhunter99 committed Jul 20, 2019
1 parent 7b4bfbd commit 7813013e7cc5f10d50ae6383bd05c71e3155e124
Showing with 1 addition and 1 deletion.
  1. +1 −1 osmdroid-android/src/main/java/org/osmdroid/views/MapController.java
@@ -164,7 +164,7 @@ public void animateTo(final IGeoPoint point, final Double pZoom, final Long pSpe
}

if (mCurrentAnimator != null) {
mCurrentAnimator.end();
mapAnimatorListener.onAnimationCancel(mCurrentAnimator);
}
mCurrentAnimator = mapAnimator;
mapAnimator.start();

0 comments on commit 7813013

Please sign in to comment.
You can’t perform that action at this time.