diff --git a/cmd/mtwebmapper/web/js/auto-update.js b/cmd/mtwebmapper/web/js/auto-update.js index 5f739db..69ac090 100644 --- a/cmd/mtwebmapper/web/js/auto-update.js +++ b/cmd/mtwebmapper/web/js/auto-update.js @@ -58,12 +58,12 @@ L.Control.AutoUpdate = L.Control.extend({ last[xz.X + "#" + xz.Z] = xz; } for (var p = 7; p >= 0; p--) { - var prev = pyramid[p+1] + var prev = pyramid[p+1]; var curr = new Object(); pyramid[p] = curr; for (var k in prev) { if (prev.hasOwnProperty(k)) { - var oxz = prev[k] + var oxz = prev[k]; var nxz = { X: oxz.X >> 1, Z: oxz.Z >> 1 }; curr[nxz.X + "#" + nxz.Z] = nxz; }