TileManager: load parent by default
This commit is contained in:
parent
5a4e422740
commit
d1daa92126
@ -238,7 +238,7 @@ public class TileManager {
|
|||||||
/* greater 1 when zoomed in further than current zoomlevel */
|
/* greater 1 when zoomed in further than current zoomlevel */
|
||||||
double scaleDiv = pos.scale / (1 << tileZoom);
|
double scaleDiv = pos.scale / (1 << tileZoom);
|
||||||
|
|
||||||
mLoadParent = false;
|
mLoadParent = true;
|
||||||
|
|
||||||
if (mZoomTable == null) {
|
if (mZoomTable == null) {
|
||||||
/* positive when current zoomlevel is greater than previous */
|
/* positive when current zoomlevel is greater than previous */
|
||||||
@ -247,8 +247,9 @@ public class TileManager {
|
|||||||
/* dont switch zoomlevel if */
|
/* dont switch zoomlevel if */
|
||||||
if (scaleDiv < mLevelUpThreshold)
|
if (scaleDiv < mLevelUpThreshold)
|
||||||
tileZoom = mPrevZoomlevel;
|
tileZoom = mPrevZoomlevel;
|
||||||
|
mLoadParent = false;
|
||||||
} else if (zoomDiff == -1) {
|
} else if (zoomDiff == -1) {
|
||||||
mLoadParent = true;
|
//mLoadParent = true;
|
||||||
/* dont switch zoomlevel if */
|
/* dont switch zoomlevel if */
|
||||||
if (scaleDiv > mLevelDownThreshold)
|
if (scaleDiv > mLevelDownThreshold)
|
||||||
tileZoom = mPrevZoomlevel;
|
tileZoom = mPrevZoomlevel;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user