sigon426 / RepoList

Index of my GitHub proyects
http://sigon426.github.io/RepoList/
0 stars 0 forks source link

Create a leaflet map that let you get the geojson from any CartoDB table with a sql on the url #3

Open sigon426 opened 8 years ago

sigon426 commented 8 years ago

Simple leaflet map that use geojson taken from any cartoDB user/table

Could be something like this:

lalaweb.com/user=username&sql=select * from barcelona_trees where esp_count < 2

The app internally will use the sql API from CartoDB to get the geojson

https://{username}.cartodb.com/api/v2/sql?format=GeoJSON&q=select * from barcelona_trees where esp_count < 2'

👉 use browserify