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.
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.





