AnmolSaini16/mapcn
Beautiful map components. 100% Free, Zero config, one command setup.
🗺️ Map UIs Without the Boilerplate
One command to drop a map into a React app.
mapcn is a free and open-source set of ready-to-use, customizable map components for React. Built on MapLibre GL, styled with Tailwind, and designed to work seamlessly with shadcn/ui, it lets you build map UIs with simple, declarative components while keeping full access to MapLibre's mapping capabilities.
✨ Highlights
- Theme-aware: Automatically adapts to light/dark mode.
- Zero config: Works out of the box with sensible defaults.
- shadcn/ui compatible: Uses the same patterns and styling conventions.
- MapLibre GL powered: Full access to MapLibre's powerful mapping capabilities.
- Composable: Build complex map UIs with simple, declarative components.
- Markers & Popups: Rich marker system with popups, tooltips, and labels.
- Routes: Draw routes and paths on your maps.
- Controls: Zoom, compass, locate, and fullscreen controls.
💡 Why it matters
Instead of wiring up MapLibre from scratch, mapcn fits right into the shadcn/ui workflow. Components can be composed together while keeping styling consistent with the rest of a shadcn/ui project, with no loss of MapLibre's features.
By default it uses CARTO Basemaps, which have stated terms of use for commercial and non-commercial cases, but any MapLibre-compatible tile provider can be swapped in instead.
#React #MapLibre #shadcnui #Maps #OpenSource #TiniX