MCPcopy Index your code
hub / github.com/AnmolSaini16/mapcn

github.com/AnmolSaini16/mapcn @main

repository ↗ · DeepWiki ↗ · + Follow
393 symbols 862 edges 130 files 2 documented · 1% updated 1d ago★ 10,4999 open issues
README

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

Vercel OSS Program

mapcn banner

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 (MapTiler, Stadia Maps, etc).

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License - see the LICENSE file for details.

Star History

Star History Chart

Extension points exported contracts — how you extend this code

ChoroplethColors (Interface)
Resolved colors for the choropleth, per theme.
src/registry/blocks/choropleth/data.ts
CodeCopyButtonProps (Interface)
(no doc)
src/components/code-copy-button.tsx
RegistryBlockItem (Interface)
(no doc)
src/lib/blocks.ts
BlockViewPageProps (Interface)
(no doc)
src/app/(view)/view/[name]/page.tsx
RegistryFile (Interface)
(no doc)
scripts/fix-registry-imports.ts
HoverInfo (Interface)
(no doc)
src/registry/blocks/choropleth/page.tsx
PageHeaderProps (Interface)
(no doc)
src/components/page-header.tsx
RegistrySchema (Interface)
(no doc)
src/lib/blocks.ts

Core symbols most depended-on inside this repo

cn
called by 132
src/lib/utils.ts
getExampleSource
called by 19
src/app/(main)/docs/_components/get-example-source.ts
code
called by 17
src/lib/llm-content.ts
useMap
called by 13
src/registry/map.tsx
setHover
called by 8
src/registry/map.tsx
useSidebar
called by 5
src/components/ui/sidebar.tsx
trackEvent
called by 4
src/lib/events.ts
getDocumentTheme
called by 3
src/registry/map.tsx

Shape

Function 325
Interface 68

Languages

TypeScript100%

Modules by API surface

src/registry/map.tsx47 symbols
src/components/ui/sidebar.tsx25 symbols
src/app/(main)/docs/_components/docs.tsx15 symbols
src/lib/llm-content.ts13 symbols
src/components/ui/sheet.tsx10 symbols
src/components/ui/dialog.tsx10 symbols
src/components/ui/command.tsx9 symbols
src/components/page-header.tsx9 symbols
src/components/ui/table.tsx8 symbols
src/components/ui/dropdown-menu.tsx8 symbols
src/components/ui/card.tsx7 symbols
src/components/ui/breadcrumb.tsx7 symbols

Dependencies from manifests, versioned

@types/geojson7946.0.16 · 1×
@types/node20 · 1×
@types/react19 · 1×
@types/react-dom19 · 1×
@vercel/analytics1.6.1 · 1×
class-variance-authority0.7.1 · 1×
clsx2.1.1 · 1×
cmdk1.1.1 · 1×
eslint9 · 1×
eslint-config-next16.2.7 · 1×
lucide-react0.562.0 · 1×

For agents

$ claude mcp add mapcn \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact