summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <[email protected]>2015-10-03 22:42:16 +0200
committerDennis Nienhüser <[email protected]>2015-10-03 22:42:16 +0200
commitc6323db431eb6403e6fa9035e279736b0e031fe5 (patch)
treeab69daf5c87e1513d14030fa4ef893dd1294e590
parent3823412566feb001c57fdcc641652904586e3d52 (diff)
Use a larger cache area
-rw-r--r--src/lib/marble/VectorTileModel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/marble/VectorTileModel.cpp b/src/lib/marble/VectorTileModel.cpp
index 7509fda..6ac1094 100644
--- a/src/lib/marble/VectorTileModel.cpp
+++ b/src/lib/marble/VectorTileModel.cpp
@@ -154,7 +154,7 @@ void VectorTileModel::setViewport( const GeoDataLatLonBox &bbox, int radius )
void VectorTileModel::removeTilesOutOfView(const GeoDataLatLonBox &boundingBox)
{
- GeoDataLatLonBox const extendedViewport = boundingBox.scaled(2.0, 2.0);
+ GeoDataLatLonBox const extendedViewport = boundingBox.scaled(3.0, 3.0);
for (auto iter = m_documents.begin(); iter != m_documents.end();) {
bool const isOutOfView = !extendedViewport.contains(iter.value()->m_boundingBox);
if (isOutOfView) {
@@ -218,7 +218,6 @@ void VectorTileModel::setViewport( int tileZoomLevel,
for ( unsigned int x = minTileX; x <= maxTileX; ++x ) {
for ( unsigned int y = minTileY; y <= maxTileY; ++y ) {
const TileId tileId = TileId( 0, tileZoomLevel, x, y );
-
if ( !m_documents.contains( tileId ) && !m_pendingDocuments.contains( tileId ) ) {
m_pendingDocuments << tileId;
TileRunner *job = new TileRunner( m_loader, m_layer, tileId );