Skip to content
Florian DIDIER edited this page Jan 14, 2022 · 4 revisions

This project implements the Leaflet library to manipulate map in the form of reactive svelte components.

What is Leaflet ?

Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps. It has all the mapping features most developers ever need. Leaflet is designed with simplicity, performance and usability in mind. It works efficiently across all major desktop and mobile platforms, can be extended with lots of plugins, has a beautiful, easy to use and well-documented API and a simple, readable source code that is a joy to contribute to.

Link of Leaflet library : https://leafletjs.com/index.html

Installation

Install module : npm i svelte-map-leaflet

Import leaflet global css : import 'leaflet/dist/leaflet.css';

Leaflet Features

General

Name Status
Map
TileLayer
TileLayerWms

Control

Name Status
Zoom
Scale
ControlLayers
Attribution
BaseLayer
Overlay
CustomControl

Layer Group

Name Status
FeatureGroup
GeoJson
LayerGroup

Layer Overlay

Name Status
ImageOverlay
SvgOverlay
VideoOverlay

Layer UI

Name Status
Marker
Popup
ToolTip
DivIcon
Icon

Layer Vector

Name Status
Circle
CircleMarker
Rectangle
Polygon
Polyline
Clone this wiki locally