From a36d1871bab3ffaf0d9a1a7c4836b06abc3758a0 Mon Sep 17 00:00:00 2001 From: javi Date: Mon, 14 Jul 2014 11:19:37 +0200 Subject: [PATCH] added no_cdn option no windhsaft provider --- NEWS | 2 ++ lib/torque/provider.windshaft.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 7c29a69..08967b9 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ 2.4.xx - Adds support for several auth_token param - Adds support for cdn_url in winshaft provider + - Add option to jsonp to set custom callback name + - Add no_cdn option to windshaft provider 2.4.01 - fixed rectangle anchor and size #42 diff --git a/lib/torque/provider.windshaft.js b/lib/torque/provider.windshaft.js index 2b68d0b..df0c69e 100644 --- a/lib/torque/provider.windshaft.js +++ b/lib/torque/provider.windshaft.js @@ -353,7 +353,7 @@ url: function() { var opts = this.options; var protocol = opts.tiler_protocol || 'http'; - if (!this.options.cdn_url) { + if (!this.options.cdn_url || this.options.no_cdn) { return this._tilerHost(); } var h = protocol + "://"