Leaflet: open-source JavaScript library for mobile-friendly interactive maps

Leaflet is a well developed library for mobile-friendly interactive maps, offering a lot of interesting features.

Leaflet maps in action

Mobile-friendly interactive maps? Try Leaflet! It’s the leading open-source JavaScript library for this purpose. Lightweight, but it has all the mapping features most developers ever need!

Check out the rich list of features:


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.

Demo of JS library for mobile-friendly interactive maps
Demo of JS library for mobile-friendly interactive maps

Code example:

var map = L.map('map').setView([51.505, -0.09], 13);

L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
    attribution: '© OpenStreetMap contributors'

L.marker([51.5, -0.09]).addTo(map)
    .bindPopup('A pretty CSS3 popup.<br> Easily customizable.')

Full usage, step by step:




Leaflet interactive maps on GitHub:


License: BSD


You may also like:

Highcharts: Interactive JavaScript charts for your website

Creating 3D rotatable objects with jQuery Interactive 3D plugin

Vector Graphics JavaScript Library – Raphaël

Good and simple jQuery charts plugin – Morris.js

JavaScript Mind Map visualization and management – MindMup MapJs

Open MCT – a web based mission control framework. From NASA!

JavaScript physics animations library – dynamics.js