How to Make Maps Using Leaflet.js, PostGIS and Chicago Open Data
A fun tip, if you're using PostGIS you can actually generate the Geojson directly in the SQL query with <a href="http://www.postgis.org/docs/ST_AsGeoJSON.html" rel="nofollow">http://www.postgis.org/docs/ST_AsGeoJSON.html</a><p>and if you're running a version of PostGIS with protobuffers enabled (Not AWS RDS) you can generate vector tiles on the fly with <a href="https://postgis.net/docs/ST_AsMVT.html" rel="nofollow">https://postgis.net/docs/ST_AsMVT.html</a>
which are great for displaying large datasets.