Fix issue with sqlite 17th zoom
This commit is contained in:
parent
22148b7e9a
commit
9454de091d
1 changed files with 2 additions and 2 deletions
|
@ -152,9 +152,9 @@ public class SQLiteTileSource implements ITileSource {
|
|||
try {
|
||||
long z;
|
||||
z = db.compileStatement("SELECT minzoom FROM info").simpleQueryForLong(); //$NON-NLS-1$
|
||||
if (z < 17 && z >= 0)
|
||||
if (z < 17 )
|
||||
baseZoom = 17 - (int)z; // sqlite base zoom, =11 for SRTM hillshade
|
||||
maxZoom = 17; // Cheat to have tiles request even if zoom level not in sqlite
|
||||
maxZoom = 24; // Cheat to have tiles request even if zoom level not in sqlite
|
||||
// decrease maxZoom if too much scaling would be required
|
||||
while ((tileSize >> (maxZoom - baseZoom)) < minScaledSize)
|
||||
maxZoom--;
|
||||
|
|
Loading…
Reference in a new issue