Skip to content

timblazing/us-zip-codes-map

Repository files navigation

US Zip Codes Map

Interactive map visualization of all US zip code boundaries using vector tiles for fast, efficient rendering.

Example

Features

  • 33,791 zip codes across the United States
  • PMTiles vector tiles for optimal performance
  • Color-coded regions with 10-color palette
  • Smooth panning and zooming
  • City/town labels remain visible above zip boundaries

Getting Started

# Install dependencies
bun install

# Run development server
bun dev

Open http://localhost:3001 to view the map.

Data Processing

The zip code boundaries are sourced from TIGER/Line Shapefiles provided by the US Census Bureau. The GeoJSON data is converted to PMTiles vector tiles for efficient web delivery.

To regenerate tiles from source data:

cd apps/web

# Apply hash-based coloring to GeoJSON
bun run color-us-zips

# Convert to PMTiles (requires tippecanoe)
bun run generate-tiles

Tech Stack

  • Next.js + React
  • MapLibre GL JS
  • PMTiles
  • TypeScript
  • TailwindCSS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published