diff --git a/lib/torque/provider.windshaft.js b/lib/torque/provider.windshaft.js index afa58bb..6c4bf5b 100644 --- a/lib/torque/provider.windshaft.js +++ b/lib/torque/provider.windshaft.js @@ -307,12 +307,12 @@ _fetchMap: function(callback) { var self = this; var layergroup = {}; - var url = this._tilerHost() + "/maps"; + var url = this._tilerHost() + "/api/v1/maps"; var named = this.options.named_map; if(named) { //tiles/template - url = this._tilerHost() + "/maps/named/" + named.name + "/jsonp" + url = this._tilerHost() + "/api/v1/maps/named/" + named.name + "/jsonp" //url = this._tilerHost() + "/maps/" + named.name + "/jsonp" } else { layergroup = { @@ -348,7 +348,7 @@ for(var k in opt) { self.options[k] = opt[k]; } - self.templateUrl = self.url() + "/maps/" + data.layergroupid + "/" + torque_key + "/{z}/{x}/{y}.json.torque"; + self.templateUrl = self.url() + "/api/v1/maps/" + data.layergroupid + "/" + torque_key + "/{z}/{x}/{y}.json.torque"; self._setReady(true); } });