{"version":"1.0","type":"rich","title":"Load a public CARTO Builder URL dynamically","description":"This example loads a public CARTO Builder URL into a Mapbox GL map as a raster tile layer. It shows how a user can paste a CARTO embed URL, select specific layers from a dropdown, and dynamically add the corresponding map tiles to the Mapbox GL view. The code parses the URL to extract the username and named map template, constructs an XYZ tile request, and uses `map.addLayer` with a raster source to display the data. The interface includes an input field, layer selector, and a button to trigger the tile loading.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-ca050f65aa2c770c21781c79566ca413?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}