Modified mapfetcher.ccp and mapfetcher.h.
[situare] / src / ui / mainwindow.cpp
index 11015df..91a2563 100644 (file)
@@ -58,9 +58,10 @@ void MainWindow::imageReceived(const QUrl &url, const QPixmap &image)
 void MainWindow::debug()
 {
     qDebug() << __PRETTY_FUNCTION__;
-    for (int j = 0; j < 10; ++j) {
-        mapFetcher->fetchMapImage(QUrl(QString("http://tile.openstreetmap.org/mapnik/13/4675/213%1.png").arg(j)));
-    }
+    for (int i = 0; i < 2; ++i)
+        for (int j = 0; j < 2; ++j)
+            mapFetcher->fetchMapImage(QUrl(QString("http://tile.openstreetmap.org/mapnik/13/467%1/213%2.png")
+                                       .arg(i).arg(j)));
 }
 
 MainWindow::~MainWindow()