From 1f88da6439441856e6cb74c65acdb3da9a49a2b4 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Fri, 30 Oct 2015 06:11:19 -0700 Subject: [PATCH] Pass extra_params to server --- lib/torque/provider/tilejson.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/torque/provider/tilejson.js b/lib/torque/provider/tilejson.js index 93c3467..e4df63c 100644 --- a/lib/torque/provider/tilejson.js +++ b/lib/torque/provider/tilejson.js @@ -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);