shadcn-svelte map
DocsComponentsBlocks

Maps for shadcn-svelte

Map components for shadcn-svelte, built on MapLibre GL: markers, data layers, controls and drawing. Install them into your project and own the code.

Get Started Browse blocks
pnpm dlx shadcn-svelte@latest add https://shadcn-svelte-map.vercel.app/r/map.json
npx shadcn-svelte@latest add https://shadcn-svelte-map.vercel.app/r/map.json
yarn dlx shadcn-svelte@latest add https://shadcn-svelte-map.vercel.app/r/map.json
bunx --bun shadcn-svelte@latest add https://shadcn-svelte-map.vercel.app/r/map.json

Use the arrow keys to pan, plus and minus to zoom, and Shift with the arrow keys to rotate.

Markers and popups Real buttons and dialogs. Tab to a marker, open it with Enter, close with Escape.Data layers GeoJSON, routes with progress, arcs, clusters, heatmaps and shapes, in your theme colours.Drawing Points, lines, polygons, rectangles, circles and freehand, with edit, undo and redo.Controls Zoom, compass, scale, fullscreen, locate, basemap switcher and place search.100,000 points A canvas point layer that pans at 60 frames per second with a hundred thousand points.Strict CSP No CDN, no inline scripts or styles. The worker is bundled with your app.

Blocks

Complete map screens you install and adapt.

All 10 blocks
  • Geofence editor
  • Store locator
  • Plot mapper

Handcrafted by Oggy. The source code is on GitHub.