{"version":"1.0","type":"rich","title":"Adjust a layer's opacity","description":"This example uses Mapbox GL JS to display a historical map layer and lets the user adjust its opacity with a range slider. A raster layer sourced from Mapbox tiles is overlaid on a custom style, and moving the slider calls `map.setPaintProperty` with a `raster-opacity` value. A second map instance shows a clickable polygon layer that opens a popup with property details. The code includes two map setups, one centered on Chicago and another on Los Angeles, both using Mapbox styles and tile sources.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-b147442deb556ba0a421e2825d055854?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}