--- layout: default ---

July 27, 2012 — Leaflet 0.4 Released with Lots of Exciting Improvements! — Read More in the Blog

Leaflet is a modern open-source JavaScript library for mobile-friendly interactive maps. It is developed by [Vladimir Agafonkin][] of [CloudMade][] with a team of dedicated [contributors][]. Weighing just about 26 KB of gzipped JS code, it still has all the [features][] most developers ever need for online maps, while providing a smooth, pleasant user experience. It is built from the ground up to work efficiently on both desktop and mobile platforms like iOS and Android, taking advantage of HTML5 and CSS3 on modern browsers. The focus is on usability, performance, small size, [A-grade][] browser support and [a simple API][] with convention over configuration. The OOP-based [code of the library][] is designed to be modular, extensible and very easy to understand. {: .usedby} Used by: [Flickr](http://flickr.com/map) [Foursquare](https://foursquare.com/) [Wikipedia](http://blog.wikimedia.org/2012/04/05/new-wikipedia-app-for-ios-and-an-update-for-our-android-app/) [City-Data.com](http://city-data.com) [Meetup](http://www.meetup.com/) [Geocaching](http://geocaching.com) [StreetEasy](http://streeteasy.com/) [Nestoria](http://www.nestoria.co.uk) [CityMaps](http://www.citymaps.com) [Chartbeat](http://chartbeat.com/) [GisCloud](http://www.giscloud.com/) [Skobbler](http://maps.skobbler.com/) ...
In this basic example, we create a map with tiles of our choice, add a marker and bind a popup with some text to it:
// create a map in the "map" div, set the view to a given place and zoom
var map = L.map('map').setView([51.505, -0.09], 13);

// add a CloudMade tile layer with style #997
L.tileLayer('http://{s}.tile.cloudmade.com/[API-key]/997/256/{z}/{x}/{y}.png', {
    attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://cloudmade.com">CloudMade</a>'
}).addTo(map);

// add a marker in the given location, attach some popup content to it and open the popup
L.marker([51.5, -0.09]).addTo(map)
    .bindPopup('A pretty CSS3 popup. <br> Easily customizable.').openPopup();
Learn more with the [quick start guide](examples/quick-start.html), check out [other tutorials](examples.html), or head straight to the [API documentation](reference.html). ## Contributing to Leaflet The project is [hosted on GitHub][], waiting for your contributions --- just send your pull requests to [@mourner][] (Vladimir Agafonkin, Leaflet author and maintainer). Let’s make the best library for maps that can possibly exist! You can also help the project a lot by reporting bugs on the [GitHub issues page][], showing your support for your favorite feature suggestions on [Leaflet UserVoice page][], tweeting to [@LeafletJS][] or joining the [Leaflet mailing list][]. [Vladimir Agafonkin]: http://agafonkin.com/en [CloudMade]: http://cloudmade.com [contributors]: https://github.com/CloudMade/Leaflet/graphs/contributors [features]: features.html [A-grade]: http://developer.yahoo.com/yui/articles/gbs/ [a simple API]: reference.html "Leaflet API reference" [code of the library]: https://github.com/CloudMade/Leaflet "Leaflet GitHub repository" [hosted on GitHub]: http://github.com/CloudMade/Leaflet [@mourner]: http://github.com/mourner [GitHub issues page]: http://github.com/CloudMade/Leaflet/issues [Leaflet UserVoice page]: http://leaflet.uservoice.com [@LeafletJS]: http://twitter.com/LeafletJS [Leaflet mailing list]: https://groups.google.com/group/leaflet-js