0Pricing
Sveltejs Academy · Lesson

Leaflet Maps with Svelte Actions

Initialize and control a Leaflet map instance through a Svelte action.

Why Leaflet

Leaflet is a small, mature open-source mapping library that works well with Svelte.

Install

Add Leaflet and its CSS.

npm install leaflet
@import "leaflet/dist/leaflet.css";

All lessons in this course

  1. Using Tailwind CSS with SvelteKit
  2. D3.js Charts in Svelte
  3. Leaflet Maps with Svelte Actions
  4. Rich Text Editors: Tiptap
← Back to Sveltejs Academy