do not load tiles beyond the maximum zoom level
This commit is contained in:
parent
e85ca6463a
commit
a21b524586
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue