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

Who uses Leaflet?

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

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

Leaflet Integrations

Pros of Leaflet
30
Light weight
23
Free
12
Evolutive via plugins
9
Strong community
8
OpenStreetMap
5
Easy API
5
Choice of map providers
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.

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
19
4627

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