From 5aa121973b9a859fffd26c220a56a2934b3b5b03 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Thu, 9 Jun 2016 16:39:11 +0200 Subject: [PATCH] Update OsmandMapTileView.java --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 5093824825..505f407a65 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -408,7 +408,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { public void setMainLayer(BaseMapLayer mainLayer) { this.mainLayer = mainLayer; int zoom = currentViewport.getZoom(); - maxZoom = BaseMapLayer.DEFAULT_MAX_ZOOM; + maxZoom = mainLayer.getMaximumShownMapZoom(); minZoom = mainLayer.getMinimumShownMapZoom() + 1; if (maxZoom < zoom) { zoom = maxZoom; @@ -1117,4 +1117,4 @@ public class OsmandMapTileView implements IMapDownloaderCallback { public Context getContext() { return activity; } -} \ No newline at end of file +}