Skip to content
Submit

Tool

Leaflet

Lightweight open-source 2D map library for the web

Leaflet preview

About

Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps. Weighing just about 42 KB of JS , 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 tiles of our choice , and then add a marker with some text in a popup:

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.

Features

  • Tile layers, WMS
  • Markers, Popups
  • Vector layers : polylines, polygons, circles, rectangles
  • Image overlays
  • Drag panning with inertia
  • Scroll wheel zoom
Pricing
Open Source
Pricing detail
Free BSD library
Platforms
Web / JS

Alternatives from our catalog

Tools on the same shelves as Leaflet, ordered by shared tags and our own comparisons. Not vendor endorsements.

  • MapLibre GL JSOpen Source · Web / JS

    Default open vector-map engine in 2026 stacks

    same tags

  • ProtomapsOpen Source · Web / Static hosting

    Game-changer static global tiles on S3/R2

    same tags

  • OpenLayersOpen Source · Web / JS

    Gov/enterprise choice when Leaflet is too small

    same tags

  • CesiumJSOpen Source · Web / JS

    Standard for digital twins and 3D tiles on the web

    same tags

  • MapboxUsage-based · Web + Mobile SDKs

    Still the commercial default for custom map UX

    same tags

  • MapTilerFreemium · Web + SDK

    Popular Mapbox alternative for hosted vector tiles

    same tags

Listed in