This commit is contained in:
javi 2015-11-06 11:03:55 +01:00
commit 37f4367da2

View File

@ -249,11 +249,13 @@
var limit_x = Math.pow(2, zoom);
var corrected_x = ((coord.x % limit_x) + limit_x) % limit_x;
var index = Math.abs(corrected_x + coord.y) % subdomains.length;
var extra = this._extraParams();
var url = this.templateUrl
.replace('{x}', corrected_x)
.replace('{y}', coord.y)
.replace('{z}', zoom)
.replace('{s}', subdomains[index])
url += extra;
torque.net.get( url , function (data) {
if (data && data.responseText) {
var rows = JSON.parse(data.responseText);