download
This commit is contained in:
@@ -54,6 +54,14 @@ OSM::TilePixmap OSMTileCache::getTile(OSM::TileIndex index, QRectF & rect_src) {
|
||||
}
|
||||
|
||||
|
||||
bool OSMTileCache::isTileFileExists(OSM::TileIndex index) const {
|
||||
QString hashdir = index.cacheDir();
|
||||
if (!cache_dir.exists(hashdir)) return false;
|
||||
QString hashname = hashdir + "/" + index.hashName();
|
||||
return cache_dir.exists(hashname);
|
||||
}
|
||||
|
||||
|
||||
void OSMTileCache::setCacheRoot(const QString & p) {
|
||||
cache_root = p;
|
||||
cache_dir.setPath(cache_root);
|
||||
|
||||
Reference in New Issue
Block a user