This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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