Gist 6b515fcc2b7c6479d9c31059140eb611
✓ Published0🌍 Public
WWill Carter
Last edited Mar 8, 2024
Created on Mar 8, 2024
This example displays a full-screen interactive map of the contiguous United States, centered on the country’s geographic midpoint using Mapbox GL JS. The map uses a custom Mapbox style and includes a navigation control for zoom and rotation. The viewport is constrained to the bounding box spanning from the Southwest to the Northeast corners of the lower 48 states. The code sets an initial zoom level and center coordinates derived from that bounding box, but does not load or visualize any external data layers.
AI-generated description