From: Robert Kaiser Date: Mon, 18 Aug 2014 00:21:40 +0000 (+0200) Subject: Merge pull request #1 from alpha-ninja/patch-1 X-Git-Tag: producution~27^2 X-Git-Url: https://git-public.kairo.at//?p=lantea.git;a=commitdiff_plain;h=924d3e552181b8d4312f4af073a01b938faf5eec;hp=16e4f664efa5ad905ffa77ef38808c325c98185c Merge pull request #1 from alpha-ninja/patch-1 Distribute load evenly --- diff --git a/js/map.js b/js/map.js index ec9a05c..cd9eddd 100644 --- 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 () {