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

an open-source JavaScript libraryfor mobile-friendly interactive maps

Sep 27, 2016 — Leaflet 1.0, the fastest, most stable and polished Leaflet release ever, is finally out!

Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps.
Weighing just about ,
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.

Here we create a map in the ‘map’ div, add , and then add a marker with some text in a popup:

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. Easily customizable.’)

Learn more with the quick start guide, check out other tutorials,
or head straight to the API documentation.
If you have any questions, take a look at the

Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/i2KldSzsh_I/

Original article

Comments are closed.

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑

%d bloggers like this: