Commit 08167246 authored by DonLakeFlyer's avatar DonLakeFlyer

parent 285afe82
...@@ -222,15 +222,6 @@ QGCMapEngine::cacheTile(QString type, const QString& hash, const QByteArray& ima ...@@ -222,15 +222,6 @@ QGCMapEngine::cacheTile(QString type, const QString& hash, const QByteArray& ima
QString QString
QGCMapEngine::getTileHash(QString type, int x, int y, int z) QGCMapEngine::getTileHash(QString type, int x, int y, int z)
{ {
#if 0
int maxCachedZoom = 15;
if (z > maxCachedZoom) {
double unZoomFactor = qPow(2, z - maxCachedZoom);
x = (double)x / unZoomFactor;
y = (double)y / unZoomFactor;
z = maxCachedZoom;
}
#endif
return QString::asprintf("%010d%08d%08d%03d", getQGCMapEngine()->urlFactory()->getIdFromType(type), x, y, z); return QString::asprintf("%010d%08d%08d%03d", getQGCMapEngine()->urlFactory()->getIdFromType(type), x, y, z);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment