A modern Next.js boilerplate for building powerful interactive maps, powered by Mapbox, with clustering, custom markers, theming support, and scalable user interfaces: entirely built with Next.js, React Map GL, Tailwind CSS, and Supercluster.
- 🧭 Mapbox GL JS integration using
react-map-gl
- 📍 Marker clustering with
supercluster
- 🌗 Theme-aware styling (dark/light mode via
next-themes
) - ⚛️ React + Next.js App Router support
- 🎯 Clickable, animated markers with custom popups
- 💨 Tailwind CSS for styling
- ⚒️ Easy customization and component structure
- 🧪 Typescript-first development
- Clone the repository:
git clone https://github.com/ayukumar34/mapboxes.git cd mapboxes
- Install dependencies:
pnpm install
- Add your Mapbox token to an
.env
fileecho "NEXT_PUBLIC_MAPBOX_TOKEN=your_token_here" > .env
- Run the development server
pnpm run dev