Leaflet logo

Leaflet

JavaScript library for mobile-friendly interactive maps
1.5K
1.1K
+ 1
107

What is Leaflet?

Leaflet is an open source JavaScript library for mobile-friendly interactive maps. It is developed by Vladimir Agafonkin of MapBox with a team of dedicated contributors. Weighing just about 30 KB of gzipped JS code, it has all the features most developers ever need for online maps.
Leaflet is a tool in the Mapping APIs category of a tech stack.
Leaflet is an open source tool with 39.7K GitHub stars and 5.7K GitHub forks. Here’s a link to Leaflet's open source repository on GitHub

Who uses Leaflet?

Companies
653 companies reportedly use Leaflet in their tech stacks, including Strava, GrubHub, and Hivebrite.

Developers
628 developers on StackShare have stated that they use Leaflet.
Pros of Leaflet
32
Light weight
28
Free
12
Evolutive via plugins
10
OpenStreetMap
9
Strong community
7
Choice of map providers
6
Easy API
3
Alternative to Google Maps
Decisions about Leaflet

Here are some stack decisions, common use cases and reviews by companies and developers who chose Leaflet in their tech stack.

Needs advice
on
MapboxMapbox
and
OpenStreetMapOpenStreetMap

Which will give a better map (better view, markers options, info window) in an Android OS app?

Leaflet with Mapbox or Leaflet with OpenStreetMap?

See more

Blog Posts

JavaScriptGitHubNode.js+26
20
4937

Leaflet's Features

  • Tile layers
  • Drag panning with inertia
  • Scroll wheel zoom
  • Multi-touch zoom
  • Zoom animation
  • Hardware acceleration on iOS
  • Smart polyline/polygon rendering

Leaflet Alternatives & Comparisons

What are some alternatives to Leaflet?
OpenLayers
An opensource javascript library to load, display and render maps from multiple sources on web pages.
Google Maps
Create rich applications and stunning visualisations of your data, leveraging the comprehensiveness, accuracy, and usability of Google Maps and a modern web platform that scales as you grow.
OpenStreetMap
OpenStreetMap is built by a community of mappers that contribute and maintain data about roads, trails, cafés, railway stations, and much more, all over the world.
Mapbox
We make it possible to pin travel spots on Pinterest, find restaurants on Foursquare, and visualize data on GitHub.
Leaf
Leaf is a Machine Intelligence Framework engineered by software developers, not scientists. It was inspired by the brilliant people behind TensorFlow, Torch, Caffe, Rust and numerous research papers and brings modularity, performance and portability to deep learning. Leaf is lean and tries to introduce minimal technical debt to your stack.
See all alternatives

Leaflet's Followers
1053 developers follow Leaflet to keep up with related blogs and decisions.