make use v2...
This commit is contained in:
parent
e58912eb9e
commit
10183d8df2
@ -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;
|
||||
|
||||
/**
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user