mapcn
Free & open-source, ready-to-use, customizable map components for React.
Zero config. One command setup. Built on MapLibre GL, styled with Tailwind, works seamlessly with shadcn/ui.
Get Started ยท Installation ยท Components
Features
- ๐จ 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
Basemap Terms of Service
This project uses CARTO Basemaps which are based on OpenStreetMap data.
- Commercial use: Requires a CARTO Enterprise license. Request a demo for pricing details.
- Non-commercial use: Free for CARTO grantees under their basemap terms.
- Alternative: You can switch to OpenStreetMap tiles or any other MapLibre-compatible tile provider.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
MIT License - see the LICENSE file for details.
