Pass extra_params to server

This commit is contained in:
Paul Ramsey 2015-10-30 06:11:19 -07:00
parent 1bdaed7bcb
commit 1f88da6439

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);