Mapcn Svelte

screenshot of Mapcn Svelte
svelte
vite
tailwind
bits-ui

Beautiful shadcn-svelte map components.

Overview

If you’re looking for an intuitive and powerful mapping solution for your Svelte applications, this port of mapcn by Anmol is definitely worth your attention. This Svelte adaptation of the original React library offers a seamless integration of sophisticated map components while preserving the rich functionality that developers have come to love. With the added benefits of Svelte's reactive paradigms, building interactive maps has never been easier.

The flexibility and customization options available through this library allow developers to create complex and visually appealing user interfaces effortlessly. Whether you're working on a simple map or a detailed mapping application, the features included in this library cater to a wide range of mapping needs while ensuring a solid developer experience.

Features

  • 🎨 Theme-aware: Automatically adapts to both light and dark modes to ensure your maps visually align with your application's theme.
  • 🎯 Zero config: Get started immediately with sensible defaults, eliminating the hassle of extensive configuration.
  • 📦 shadcn-svelte compatible: Leverages the same patterns and styling conventions, enhancing integration with your existing Svelte ecosystem.
  • 🗺️ MapLibre GL powered: Harness the robust capabilities of MapLibre, giving you full access to dynamic mapping features.
  • 🧩 Composable: Create intricate map UIs effortlessly using simple, declarative components that make your code clean and maintainable.
  • 📍 Markers & Popups: A rich system that includes customizable markers with popups, tooltips, and labels to deliver interactive experiences.
  • 🛤️ Routes: Easily draw routes and paths on your maps, adding an extra layer of functionality for users.
  • 🎮 Controls: Provides intuitive UI controls for zoom, compass, locate, and fullscreen for a complete mapping experience.
  • ⚡ Svelte 5: Built using Svelte 5's runes, ensuring optimal reactivity for a seamless user experience.
svelte
Svelte

Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

bits-ui
Bits UI

Bits UI is a headless component library for Svelte that provides unstyled, accessible UI primitives. It powers shadcn-svelte and offers a foundation for building custom component libraries with full accessibility support in the Svelte ecosystem.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

zod
Zod

Zod is a TypeScript-first schema declaration and validation library. It allows you to define schemas that can validate data at runtime while providing excellent TypeScript inference, making it perfect for API validation, form validation, and type-safe data handling.