Leaflet logo

Leaflet

JavaScript library for mobile-friendly interactive maps

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 30.2K GitHub stars and 4.8K GitHub forks. Here’s a link to Leaflet's open source repository on GitHub

Who uses Leaflet?

Companies
625 companies reportedly use Leaflet in their tech stacks, including Strava, GrubHub, and Foursquare.

Developers
450 developers on StackShare have stated that they use Leaflet.

Leaflet Integrations

Pros of Leaflet
29
Light weight
21
Free
11
Evolutive via plugins
8
Strong community
6
OpenStreetMap
4
Easy API
3
Choice of map providers
2
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.

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

JavaScriptGitHubjQuery+26
18
4521

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
736 developers follow Leaflet to keep up with related blogs and decisions.