Skip to main content
100%

Mapbox GL 5 Color map

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

This interactive map applies the five color theorem to a precomputed GeoJSON county map, ensuring that no two adjacent counties share the same fill color. Built with Mapbox GL JS v0.26.0, it dynamically loads a vector source from Mapbox and adds five fill layers, each filtered to a specific color from a preset palette. The map centers on Texas at zoom level 5, with a toggleable menu for the fill layer. A mouse-move event queries rendered features and logs their properties to the console, demonstrating feature inspection.

AI-generated description

Mapbox GL 5 Color map

This is an example of a precomputed geojson county map where no two adjacent regions receive the same color [Five color theorem] (https://en.wikipedia.org/wiki/Five_color_theorem). Click to see in jsbin

gpl-3.0 Licensed

Similar vizzes