Hardcoding maximum zoom for gestures to 21. fixes #2648

This commit is contained in:
GaidamakUA 2016-06-09 17:05:05 +03:00
parent d51e2da9e6
commit d1816150d1
2 changed files with 3 additions and 2 deletions

View file

@ -2,11 +2,12 @@ package net.osmand.plus.views;
public abstract class BaseMapLayer extends OsmandMapLayer {
public static final int DEFAULT_MAX_ZOOM = 21;
private int alpha = 255;
protected int warningToSwitchMapShown = 0;
public int getMaximumShownMapZoom(){
return 21;
return DEFAULT_MAX_ZOOM;
}
public int getMinimumShownMapZoom(){

View file

@ -408,7 +408,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
public void setMainLayer(BaseMapLayer mainLayer) {
this.mainLayer = mainLayer;
int zoom = currentViewport.getZoom();
maxZoom = mainLayer.getMaximumShownMapZoom();
maxZoom = BaseMapLayer.DEFAULT_MAX_ZOOM;
minZoom = mainLayer.getMinimumShownMapZoom() + 1;
if (maxZoom < zoom) {
zoom = maxZoom;