mapcn: React Map Components Built on MapLibre GL

Published: (December 29, 2025 at 08:56 PM EST)
1 min read
Source: Dev.to

Source: Dev.to

Cover image for mapcn: React Map Components Built on MapLibre GL

Overview

mapcn is a map component library built on MapLibre GL that can be installed with a single npx command.
It follows the shadcn/ui pattern, where you copy components directly into your project instead of importing them from node_modules.

Key Features

  • Automatic theme switching between light and dark map styles.
  • Marker components with popups and tooltips.
  • Route rendering for paths.
  • Built‑in zoom and navigation controls.
  • Free CARTO basemap tiles that require no API keys.
  • Components accept MapLibre props and expose the full mapping API through a useMap hook.

Resources

Back to Blog

Related posts

Read more »