Original author(s) | Vladimir Agafonkin |
---|---|
Initial release | May 13, 2011 |
Stable release |
1.2.0 / August 8, 2017
|
Repository | github |
Development status | Active |
Written in | JavaScript |
Platform | See Browser support |
Type | JavaScript library |
License | BSD-2-Clause |
Website | leafletjs |
Leaflet is a widely used open source JavaScript library used to build web mapping applications. First released in 2011, it supports most mobile and desktop platforms, supporting HTML5 and CSS3. Along with OpenLayers, and the Google Maps API, it is one of the most popular JavaScript mapping libraries and is used by major web sites such as FourSquare, Pinterest and Flickr.
Leaflet allows developers without a GIS background to very easily display tiled web maps hosted on a public server, with optional tiled overlays. It can load feature data from GeoJSON files, style it and create interactive layers, such as markers with popups when clicked.
It is developed by Vladimir Agafonkin, who joined Mapbox in 2013.
A typical use of Leaflet involves binding a Leaflet "map" element to an HTML element such as a div. Layers and markers are then added to the map element.
The Leaflet library itself is accessible through the variable L
.
Leaflet supports Web Map Service (WMS) layers, GeoJSON layers, Vector layers and Tile layers natively. Many other types of layers are supported via plugins.
Like other web map libraries, the basic display model implemented by Leaflet is one basemap, plus zero or more translucent overlays, with zero or more vector objects displayed on top.
The major Leaflet object types are:
There is also a variety of utility classes such as interfaces for managing projections, transformations and interacting with the DOM.