Hardcoding maximum zoom for gestures to 21. fixes #2648
This commit is contained in:
parent
d51e2da9e6
commit
d1816150d1
2 changed files with 3 additions and 2 deletions
|
@ -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(){
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue