qmetrics.net

Leaflet

Lightweight JavaScript library for interactive maps

Leaflet screenshot

Leaflet embeds pan-zoom maps in web pages with markers, vector layers, and controls. It targets browsers with a small footprint and an extension plugin ecosystem.

Overview

Leaflet is a JavaScript mapping library for adding interactive maps to websites. You attach a map to a page element, load tile layers such as OpenStreetMap-backed rasters, then stack markers, popups, and vector geometry on top. The design favors a focused core rather than bundling every GIS feature upfront.

Core capabilities include tile and WMS layers, markers with popups and tooltips, polylines, polygons, circles, GeoJSON, and image or SVG overlays. Interaction covers smooth panning, multiple zoom gestures, pointer modalities, draggable markers, and standard on-map controls for zoom, layers, scale, attribution, and fullscreen modes.

Rendering uses GPU-assisted pan and zoom where available, with SVG or Canvas vectors clipped and simplified during movement. Maps resize with their container, support fractional zoom levels, and remain sharp on high-DPI displays. Customization relies on CSS styling, HTML markers, and optional non-geographic projections for floor plans or game boards.

For developers, the project distributes tree-shakable ES modules, ships TypeScript types, avoids runtime dependencies, and documents an event model on maps and layers. Accessibility features include keyboard navigation, labeled controls, and screen-reader-friendly popups, with translatable built-in strings.

Key features

  • Tile layers and WMS support
  • Markers, popups, and tooltips
  • Polylines, polygons, and GeoJSON
  • Touch, mouse, and pen interaction
  • GPU-assisted pan and zoom
  • Layer and attribution controls
  • Plugin extension model
  • TypeScript types and ES modules

Use cases

  • Embedding location maps in web applications
  • Plotting GeoJSON feature collections
  • Building dashboards with draggable markers
  • Non-geographic canvases such as floor plans

Does the same job as

Leaflet doesn't name these products itself, but its own description shows it does the same job.

Tags

Compare Leaflet

Similar software

react-native-maps

Declarative map components for React Native mobile apps

react-native-maps provides MapView and map child components for iOS and Android React Native apps. Markers, polygons, overlays, and region control use a React-like declarative API.

  • MapView with declarative marker children
  • Polylines, polygons, and tile overlays
  • Custom marker images and React callouts
TypeScriptAndroid, iOSDetails →
★ 16k⟳ 2 months agoMIT

CesiumJS

JavaScript library for 3D globes and web maps

CesiumJS renders interactive 3D globes and 2D maps in the browser with WebGL, streaming terrain, imagery, 3D Tiles, and time-dynamic geospatial data.

  • WebGL 3D globe and 2D maps
  • 3D Tiles and glTF models
  • Terrain and imagery streaming
JavaScriptWebDetails →
★ 16k⟳ todayApache-2.0

prettymaps

Custom map plots from OpenStreetMap with Python

prettymaps fetches OpenStreetMap data and renders styled map images using osmnx, matplotlib, shapely, and vsketch.

  • OpenStreetMap layer fetching
  • Matplotlib style per layer
  • JSON map presets
PythonDetails →
★ 14.4k⟳ 4 months agoAGPL-3.0

OpenLayers

High-performance JavaScript library for interactive web maps

OpenLayers renders tiled maps, vectors, and markers in the browser from diverse sources. Install the ol npm package and import only the modules your page needs.

  • XYZ and OGC tiled layers
  • GeoJSON and vector tile support
  • Canvas 2D and WebGL rendering
JavaScriptDetails →
★ 12.7k⟳ todayBSD-2-Clause

MapLibre GL JS

Browser library for interactive vector tile maps

MapLibre GL JS renders map styles with WebGL from vector tiles in web pages or webviews. It continues the open mapbox-gl-js lineage after Mapbox’s license change.

  • WebGL vector tile rendering
  • MapLibre Style Spec styling
  • Markers, popups, and map controls
TypeScriptWebDetails →
★ 12.2k⟳ todayBSD-3-Clause
Open Source Alternative to:Mapbox

react-map-gl

React components for Mapbox and MapLibre maps

React component suite wrapping Mapbox GL JS or MapLibre GL JS as controlled, reactive map views with hooks and context for extensions.

  • React API for Mapbox or MapLibre
  • Controlled map state
  • Context and hooks for custom UI
TypeScriptDetails →
★ 8.5k⟳ 3 months agoMIT · open core