{"version":"1.0","type":"rich","title":"Show and hide layers","description":"This example uses Mapbox GL JS to display a map of Los Angeles with two overlay layers: a Watts curfew map and a 1939 HOLC redlining map. A menu in the top-right corner contains toggle links for each layer. Clicking a link toggles the layer’s visibility via `map.getLayoutProperty` and `map.setLayoutProperty`, updating the active class on the link. Both layers are raster sources loaded from Mapbox tiles, rendered on top of a custom map style.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-c3971c105979565acc3e68b318f006d7?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}