Merge pull request #1 from alpha-ninja/patch-1
authorRobert Kaiser <kairo@kairo.at>
Mon, 18 Aug 2014 00:21:40 +0000 (02:21 +0200)
committerRobert Kaiser <kairo@kairo.at>
Mon, 18 Aug 2014 00:21:40 +0000 (02:21 +0200)
Distribute load evenly

js/map.js

index ec9a05c0c0d324fdaf8384552d2bb8fd197e082b..cd9eddd399dd889eac5b9b62e5954ec5df6bc539 100644 (file)
--- a/js/map.js
+++ b/js/map.js
@@ -1094,8 +1094,8 @@ var gTileService = {
                   .replace("{x}", norm.x)
                   .replace("{y}", norm.y)
                   .replace("{z}", norm.z)
-                  .replace("[a-c]", String.fromCharCode(97 + Math.floor(Math.random() * 2)))
-                  .replace("[1-4]", 1 + Math.floor(Math.random() * 3)),
+                  .replace("[a-c]", String.fromCharCode(97 + Math.floor(Math.random() * 3)))
+                  .replace("[1-4]", 1 + Math.floor(Math.random() * 4)),
                 true);
       XHR.responseType = "blob";
       XHR.addEventListener("load", function () {