# mapcn

> React map components built on MapLibre and installed with the shadcn CLI

Worth exploring: Switch map styling automatically with the interface’s light and dark themes

Why it works: Theme switching keeps the map visually consistent with the rest of the interface.

Watch out: Keep attribution visible and monitor the number of tile requests.

- Category: UI components (`components`)
- Tags: `react`, `open-source`, `free`
- Official: https://www.mapcn.dev/
- GitHub: https://github.com/AnmolSaini16/mapcn
- Wunderlust: https://wunderlust.xyz/r/mapcn
- Image: https://wunderlust.xyz/media/mapcn-poster.jpg
- Video preview: https://wunderlust.xyz/media/mapcn.webm
- Added: 2026-11-16

## What it is

It includes markers, popups, routes and zoom controls, and adapts the map to light and dark themes. Default styles use CARTO basemaps with OpenStreetMap data.

## What it’s for

A developer can add a map with markers and routes to a React app.

## Benefits

- Markers and routes
- Map controls

## Caveats

- The code uses the MIT license. CARTO’s free commercial tier allows up to 1 million tile requests a month and requires visible attribution.

## Similar on Wunderlust

- [React Bits](https://wunderlust.xyz/r/react-bits.md): A library of animated React components: text, backgrounds and microinteractions
- [shadcn/ui](https://wunderlust.xyz/r/shadcn-ui.md): Accessible, customizable components for building your own design system
- [Magic UI](https://wunderlust.xyz/r/magic-ui.md): 150+ animated components in React, Tailwind and Motion
- [AI Website Cloner Template](https://wunderlust.xyz/r/ai-website-cloner-template.md): A template that recreates a site as a Next.js app from a URL
- [coss ui](https://wunderlust.xyz/r/coss-ui.md): React components from Cal.com to copy and adapt
- [Astryx](https://wunderlust.xyz/r/astryx.md): React design system with themes and a CLI for people and agents
