make use v2...

This commit is contained in:
Simon Tokumine 2012-10-01 16:20:50 +01:00
parent e58912eb9e
commit 10183d8df2
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ Backbone.CartoDB = function(options, query, cache) {
};
var resource_path= options.user + '.cartodb.com/api/v1/sql';
var resource_path= options.user + '.cartodb.com/api/v2/sql';
var resource_url = 'https://' + resource_path;
/**

View File

@ -65,7 +65,7 @@ var CartoDB = CartoDB || {};
// If the table is private you can't auto zoom without being authenticated
if (!params.map_key) {
$.ajax({
url:'http://'+params.user_name+'.cartodb.com/api/v1/sql/?q='+escape('select ST_Extent(the_geom) from '+ params.table_name),
url:'http://'+params.user_name+'.cartodb.com/api/v2/sql/?q='+escape('select ST_Extent(the_geom) from '+ params.table_name),
dataType: 'jsonp',
timeout: 2000,
callbackParameter: 'callback',
@ -429,7 +429,7 @@ var CartoDB = CartoDB || {};
$.ajax({
url:'http://'+ this.params_.user_name +'.cartodb.com/api/v1/sql/?q='+infowindow_sql,
url:'http://'+ this.params_.user_name +'.cartodb.com/api/v2/sql/?q='+infowindow_sql,
dataType: 'jsonp',
timeout: 2000,
callbackParameter: 'callback',