Skip to main content
100%

Mapbox GL map example - turn on/off county 5 color

✓ Published0🌍 Public
JJn1532
Last edited Mar 20, 2018
Created on Mar 18, 2018

This example displays a Mapbox GL map of U.S. counties with a categorical five-color fill scheme. A menu allows toggling the visibility of the county fill layer on and off. The map uses the Mapbox GL JavaScript API and loads vector data from a Mapbox-hosted source. The layer’s fill color is determined by a categorical property, with each category assigned a distinct hex color stop. The map setup includes a center point in Texas and a zoom level of 5.

AI-generated description

Mapbox GL map example - turn on/off county 5 color

gpl-3.0 Licensed

Similar vizzes