secret
Created

  • Download Gist
filter_sql.js
JavaScript
1 2 3
sql.execute("SELECT * FROM european_countries_e WHERE ST_Area(the_geom::geography)/1000000 > {{area}}", { area: 1000000 }).done(function(geojson) {
countriesLayer.addData(geojson);
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.