{"version":"1.0","type":"rich","title":"Leaflet.draw drawing and editing tools","description":"This interactive map uses Leaflet.draw to let users draw polygons over a CartoDB layer of global populated places. The drawing tools are customized to allow only polygon shapes, with intersection checking and area display enabled. After a polygon is drawn, the map queries the CartoDB SQL API to filter the underlying dataset using ST_Intersects and ST_MakePolygon, then applies dynamic CartoCSS styling that colors points based on population thresholds. The example demonstrates combining Leaflet.draw's editing capabilities with CartoDB's SQL and styling APIs for on-the-fly spatial queries and visual updates.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-9885c36421fa7790abe6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}