Simple Leaflet maps for your Svelte projects.
- Works in SSR pages
- TypeScript : events, props and options are fully typed
- Simple event usage with the
oneventnamesyntax - Fully reactive : update props and options, the components will update
- Customize
DivIcon,Popupand more with Svelte components or HTML instead of strings - Single dependency : no
leafletor@types/leafletneeded
- Version 1.0.0 and above are compatible with Svelte 5.
- For Svelte 3 and 4, use version 0.1.x (not actively maintained).
npm i -D @radiofrance/svelte-leaflet
- ✅ Marker
- DivOverlay (abstract class)
- ✅ Popup
- ✅ Tooltip
- ✅ TileLayer
- ✅ TileLayer.WMS
- ✅ ImageOverlay
- ✅ VideoOverlay
- Path
- ✅ Polyline
- ✅ Polygon
- ✅ Rectangle
- ✅ Circle
- ✅ CircleMarker
- ✅ SVGOverlay
- SVG (this is a Renderer, won't be implemented)
- Canvas (this is a Renderer, won't be implemented)
- LayerGroup
- FeatureGroup
- GeoJSON
- GridLayer
- LatLng
- LatLngBounds
- Point
- Bounds
- ✅ Icon
- ✅ DivIcon
- ✅ Zoom
- Attribution
- Layers
- Scale

