Failed to load resource: the server responded with a status of 400 (Bad Request)

المشرف العام

Administrator
طاقم الإدارة
Am new to cartodb and am following this tutorial (http://docs.cartodb.com/tutorials/create_map_cartodbjs.html) on how to create a map.

When Implement the sql query, i get an error on the console saying "Failed to load resource: the server responded with a status of 400 (Bad Request)". I have included the screenshot of my browser displaying the error.

var subLayerOptions = { sql: "SELECT * FROM my_cartodb_table_title WHERE city = 'CITY X' "}cartodb.createLayer(map, layerUrl/*, {no_cdn: true}*/).addTo(map).done( function(layer) { layer.getSubLayer(0).set(subLayerOptions); data_layer = layer.getSubLayer(0);}).error( function(err) { console.log("some error occurred: " + err);}); }What could be the problem?





أكثر...
 
أعلى