Max zoom can't be more than 22
This commit is contained in:
parent
957fff9ce8
commit
a8dcdd70c4
1 changed files with 4 additions and 0 deletions
|
@ -462,6 +462,10 @@ public class MapActivity extends AccessibleActivity implements
|
|||
// changeLocation = false;
|
||||
// }
|
||||
final int newZoom = mapView.getZoom() + stp;
|
||||
if (newZoom > 22) {
|
||||
AccessibleToast.makeText(this, "Max zoom", Toast.LENGTH_SHORT).show(); //$NON-NLS-1$
|
||||
return;
|
||||
}
|
||||
mapView.getAnimatedDraggingThread().startZooming(newZoom, changeLocation);
|
||||
if (app.accessibilityEnabled())
|
||||
AccessibleToast.makeText(this, getString(R.string.zoomIs) + " " + newZoom, Toast.LENGTH_SHORT).show(); //$NON-NLS-1$
|
||||
|
|
Loading…
Reference in a new issue