qmetrics.net

MapLibre GL JS

Browser library for interactive vector tile maps

MapLibre GL JS screenshot

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.

Overview

MapLibre GL JS is a TypeScript library for showing interactive maps in browsers and webview-based applications. It draws vector tiles on the GPU for responsive panning and zooming, and map appearance follows the MapLibre Style Spec.

The project began as a community fork of mapbox-gl-js when Mapbox moved newer releases away from open licensing. Early releases aimed to be a drop-in replacement for the last open Mapbox GL JS generation while the codebase has since added its own features. Bindings exist for React and Angular, with additional resources listed in community catalogs.

Developers install via npm or load ES modules from a CDN, configuring worker URLs for bundlers such as Vite, webpack, esbuild, Rollup, or Next.js. Documentation covers map controls, markers, popups, sources, events, and CSP considerations for workers and images.

MapLibre GL JS is the web counterpart to MapLibre Native on mobile and other platforms within the broader MapLibre ecosystem.

Key features

  • WebGL vector tile rendering
  • MapLibre Style Spec styling
  • Markers, popups, and map controls
  • ESM bundler and CDN installs
  • Worker URL configuration helpers
  • React and Angular bindings available
  • GPU-accelerated map display
  • Content security policy guidance

Use cases

  • Embedding maps in web applications
  • Webview map UIs in hybrid apps
  • Custom-styled interactive basemaps
  • Migrating from legacy Mapbox GL OSS
  • Data visualization on geographic canvases

Open-source alternative to

Mapbox
“The library's initial versions (1.x) were intended to be a drop-in replacement for the Mapbox’s OSS version (1.x) with additional functionality, but have evolved a lot since then.” source

Tags

Compare MapLibre GL JS

Similar software

Leaflet

Lightweight JavaScript library for interactive maps

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.

  • Tile layers and WMS support
  • Markers, popups, and tooltips
  • Polylines, polygons, and GeoJSON
JavaScriptWebDetails →
★ 46k⟳ todayBSD-2-Clause
Open Source Alternative to:Mapbox

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

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