do not load tiles beyond the maximum zoom level

This commit is contained in:
Jindřich Makovička 2012-12-04 18:55:22 +01:00
parent e85ca6463a
commit a21b524586

View file

@ -98,6 +98,8 @@ public class SQLiteTileSource implements ITileSource {
@Override @Override
public String getUrlToLoad(int x, int y, int zoom) { public String getUrlToLoad(int x, int y, int zoom) {
if (zoom > baseZoom)
return null;
SQLiteDatabase db = getDatabase(); SQLiteDatabase db = getDatabase();
if(db == null || db.isReadOnly() || urlTemplate == null){ if(db == null || db.isReadOnly() || urlTemplate == null){
return null; return null;