Skip to main content
100%

Show and hide layers

✓ Published0🌍 Public
Aandyrutkowski
Last edited Oct 7, 2018
Created on Mar 8, 2018

This interactive map displays two historical layers of Los Angeles: redlining boundaries from 1939 and locations from the same year’s Green Book. A menu of toggleable layer names lets users show or hide each raster or vector source independently. Built with Mapbox GL JS v0.44.1, the code adds both layers on map load and uses `map.getLayoutProperty` and `map.setLayoutProperty` to switch visibility. The raster HOLC layer and the circle-styled Green Book points come from Mapbox-hosted tilesets.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes