Installation

Node 16 or higher is required.

$ npm install leaflet leafletjs-svelte

Import stylesheet for Leaflet in your app entry point:

import "leaflet/dist/leaflet.css";

Component Import:

<script>
  import { Leaflet } from "leafletjs-svelte";
</script>