Subscribe to our Newsletter

Originally posted in Data Science Central by Mirko Krivanek

Leaflet is a modern open-source JavaScript library for mobile-friendly interactive maps. It is developed by Vladimir Agafonkin with a team of dedicated contributors. Weighing just about 33 KB of JS, it has all the features most developers ever need for online maps.

Leaflet is designed with simplicityperformance and usability in mind. It works efficiently across all major desktop and mobile platforms out of the box, taking advantage of HTML5 and CSS3 on modern browsers while still being accessible on older ones. It can be extended with a huge amount 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.

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:

For an interactive map and source code in text format, click here.

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 FAQ first.

Related Articles

E-mail me when people leave their comments –

You need to be a member of Data Plumbing to add comments!

Join Data Plumbing

Webinar Series

Follow Us

@DataScienceCtrl | RSS Feeds

Data Science Jobs

Sr. Data Scientist

Child Trends - Child Trends is seeking a Data Scientist to help advance our work in the quantitative field and implement effective and innovative solutions in our...

Data Reporter

Simons Foundation - POSITION SUMMARY   Spectrum is looking for an experienced and savvy data reporter to bring a new era of quantitative reporting to our site.   Spect...

Director of Data Management

Cal Poly, San Luis Obispo - Cal Poly, San Luis Obispo Director of Data Management Department: US-Data Management (155000) College/Division: President Salary Range: Salary com...