Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View sql_geojson.js
1 2 3 4 5 6 7
var sql = new cartodb.SQL({ user: 'examples', format: 'geojson' });
 
// create the layer and add to the map, then will be filled with data
var countriesLayer = L.geoJson().addTo(map);
sql.execute("SELECT * FROM european_countries_e").done(function(geojson) {
countriesLayer.addData(geojson);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.