Merge branch 'master' of linz:/srv/git/git-kairo
[lantea.git] / js / map.js
index 48b1128ac66cfee0d651977b763dab9fab98da49..f27b0191c51efa38c6108e7cae000a3d56d22a75 100644 (file)
--- a/js/map.js
+++ b/js/map.js
@@ -265,7 +265,7 @@ function drawMap() {
   // Go through all the tiles we want.
   // If any of them aren't loaded or being loaded, do so.
   for (var x = Math.floor(xMin / size); x < Math.ceil(xMax / size); x++) {
-    for (var y = Math.floor(yMin / size); y < Math.ceil(yMax / size); y++) {
+    for (var y = Math.floor(yMin / size); y < Math.ceil(yMax / size); y++) { // slow script warnings on the tablet appear here!
       var xoff = (x * size - xMin) / gZoomFactor;
       var yoff = (y * size - yMin) / gZoomFactor;
       var tileKey = encodeIndex(x, y, gPos.z);