{"version":"1.0","type":"rich","title":"On the fly size sort of polygons in CartoDB","description":"A CartoDB map displays building polygons from OpenStreetMap, sorted and repositioned by size. The polygons are ordered by height and laid out in rows using a recursive SQL query that translates each geometry into a packed grid. The visualization uses CartoDB.js with Leaflet to render the map and tiles, while the query employs `ST_Area`, `ST_Translate`, and `ST_Transform` to compute offsets and project the geometries. Red polygons with white outlines appear over a Mapbox basemap.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-5588148?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}