Skip to main content
100%

Client side hexgrid | CartoDB.js

✓ Published0🌍 Public
Aandrewxhill
Last edited Feb 14, 2014
Created on Feb 14, 2014

This example visualizes point data from a table named `za` as a hexbin density grid over a Leaflet map, using the CartoDB.js library. It initially renders hexagonal cells colored by point density, then recomputes the grid at a finer resolution and updates the map’s SQL and CartoCSS style to reflect the new bin size. The client-side SQL queries use PostGIS functions like `CDB_HexagonGrid` and `ST_Expand`, while `cartodb.SQL` and sublayer methods handle dynamic style and data updates. The base map uses Stamen toner tiles.

AI-generated description

Similar vizzes