Libraries for interactive web maps and geospatial visualization, from tiled slippy maps with markers to GPU-rendered layers with millions of points, 3D globes and choropleths.

Leaflet is the lightweight standard for 2D tiled maps. Deck.gl and L7 render large geospatial datasets with WebGL, and Cesium focuses on 3D globes and terrain. For a choropleth of countries or regions, an SVG map such as DataMaps may be all you need.

By GitHub stars, the most popular JavaScript mapping libraries here are Leaflet (46K stars), Cesium (16K stars), and Deck.gl (14.8K stars). 15 of 22 had commits in the last 90 days.

JavaScript map & geospatial visualization libraries, ranked by GitHub stars
1 Leaflet

JavaScript library for mobile-friendly interactive maps.

46K 358 BSD-2-Clause
2 Cesium

WebGL 3D globes and maps.

16K 3,175 Apache-2.0
3 Deck.gl

WebGL framework for visual exploratory data analysis of large datasets.

14.8K 486 MIT
4 OpenLayers

Library for interactive web maps with support for many data sources, formats and projections.

12.7K 823 BSD-2-Clause
5 mapcn

Map components for React built on MapLibre GL, styled with Tailwind and compatible with shadcn/ui.

12.4K 140 MIT
6 MapLibre GL JS

WebGL-based interactive vector tile maps in the browser; community fork of Mapbox GL JS.

12.1K 1,539 BSD-3-Clause
7 react-map-gl

React components for MapLibre GL JS and Mapbox GL JS, maintained by vis.gl.

8.5K 18 MIT
8 COBE

Lightweight WebGL globe library of about 5 kB, with configurable markers.

6.1K 36 MIT
9 Potree

WebGL point cloud viewer for large datasets such as LiDAR scans.

5.7K 1 Other
10 maptalks.js

Pluggable JavaScript library for integrated 2D/3D maps.

4.5K 275 BSD-3-Clause
11 L7

Large-scale WebGL-powered Geospatial Data Visualization analysis framework, maintained by Alibaba

4.1K 119 MIT
12 DataMaps

Interactive SVG maps using D3.js.

3.8K 1 MIT
13 React Simple Maps

Composable SVG map charts for React, based on d3-geo and TopoJSON.

3.4K 18 MIT
14 globe.gl

UI component for globe data visualization using Three.js/WebGL.

3.2K 16 MIT
15 TerriaJS

Library for building web-based 2D and 3D geospatial data explorers with catalogs of map layers.

1.4K 750 Apache-2.0
16 Mapael Inactive

JQuery plugin based on raphael.js to display vector maps.

1K 0 MIT
17 Pharos AI

Open-source OSINT conflict-tracking dashboard with geospatial visualization using Deck.gl, MapLibre, and React. (Source Code)

188 477 AGPL-3.0
18 L7 Plot Inactive

Geospatial Visualization Chart Library, maintained by Alibaba

92 0 MIT
19 Dipper Archived

Map application development framework powered by L7, maintained by Alibaba.

29 0 MIT
20 VectorAtlas

Free, 80KB SVG world map with one path per country, id-keyed by ISO 3166-1 alpha-2 code, ready for choropleths.

8 11 CC-BY-4.0
21 Globedots

Dot-matrix WebGL2 globe in 17 kB with markers, arcs, labels, heat maps, and a day-night line.

2 33 MIT
22 CanvasGlobe

Interactive Canvas 2D globes and flat world maps for JavaScript and React.

0 109 Other

Head-to-head comparisons

Related topics

Related categories

Frequently asked questions

What is the most popular JavaScript mapping library?

By GitHub stars, Leaflet is the most popular, with 46K stars, followed by Cesium (16K) and Deck.gl (14.8K).

Which JavaScript mapping libraries are actively maintained?

19 of the 22 tools listed had commits in the last 12 months, including Leaflet, Cesium, Deck.gl, OpenLayers, and mapcn. Each tool page shows monthly commit activity.

Are these JavaScript mapping libraries free and open source?

19 of the 22 tools listed use an OSI-approved open-source license; the others are source-available, free to use, or use a custom license, so check each tool page. The most common license here is MIT.

Missing a tool? Add it with a one-line pull request to the README.