updated urls

This commit is contained in:
javi 2014-02-05 14:14:19 +01:00
parent 2a25f89b44
commit 9191b4be3b

View File

@ -307,12 +307,12 @@
_fetchMap: function(callback) { _fetchMap: function(callback) {
var self = this; var self = this;
var layergroup = {}; var layergroup = {};
var url = this._tilerHost() + "/tiles/layergroup"; var url = this._tilerHost() + "/maps";
var named = this.options.named_map; var named = this.options.named_map;
if(named) { if(named) {
//tiles/template //tiles/template
url = this._tilerHost() + "/tiles/template/" + named.name + "/jsonp" url = this._tilerHost() + "/maps/named/" + named.name + "/jsonp"
//url = this._tilerHost() + "/maps/" + named.name + "/jsonp" //url = this._tilerHost() + "/maps/" + named.name + "/jsonp"
} else { } else {
layergroup = { layergroup = {
@ -348,7 +348,7 @@
for(var k in opt) { for(var k in opt) {
self.options[k] = opt[k]; self.options[k] = opt[k];
} }
self.templateUrl = self.url() + "/tiles/layergroup/" + data.layergroupid + "/" + torque_key + "/{z}/{x}/{y}.json.torque"; self.templateUrl = self.url() + "/maps/" + data.layergroupid + "/" + torque_key + "/{z}/{x}/{y}.json.torque";
self._setReady(true); self._setReady(true);
} }
}); });