From a21b524586244f705a39d1d32244ac0cfcb4b7b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20Makovi=C4=8Dka?= Date: Tue, 4 Dec 2012 18:55:22 +0100 Subject: [PATCH] do not load tiles beyond the maximum zoom level --- OsmAnd/src/net/osmand/plus/SQLiteTileSource.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/SQLiteTileSource.java b/OsmAnd/src/net/osmand/plus/SQLiteTileSource.java index 486b179caa..9eaa3211af 100644 --- a/OsmAnd/src/net/osmand/plus/SQLiteTileSource.java +++ b/OsmAnd/src/net/osmand/plus/SQLiteTileSource.java @@ -98,6 +98,8 @@ public class SQLiteTileSource implements ITileSource { @Override public String getUrlToLoad(int x, int y, int zoom) { + if (zoom > baseZoom) + return null; SQLiteDatabase db = getDatabase(); if(db == null || db.isReadOnly() || urlTemplate == null){ return null;