talira

MapLibre GL JS

Open-source TypeScript library for interactive vector tile maps in the browser

open sourceBSD-3-Clausefree

Forked from Mapbox GL JS in 2020. Mapbox moved mapbox-gl-js to a non-open-source licence in December 2020

MapLibre GL JS is a TypeScript library for publishing interactive maps on websites and in webview-based apps, drawn with GPU-accelerated vector tile rendering. Maps are described by a MapLibre style document (JSON) that says which data to draw and how, from vector, raster, raster-DEM, GeoJSON, image or video sources, with any tile provider or your own tiles. It handles markers, popups, controls, heatmaps, 3D terrain, extruded 3D buildings, a globe view and custom WebGL layers. It started as the community's open-source fork of Mapbox GL JS when Mapbox moved that library to a non-open-source licence in December 2020, and has evolved well past it since. BSD-3-Clause, maintained by the MapLibre Organization; React and Angular bindings exist.

Problems it solves

  • show an interactive vector map on my website without paying Mapbox per map load
  • an open-source replacement for Mapbox GL JS after its licence change
  • render vector tiles from my own tile server in the browser
  • add 3D terrain and 3D buildings to a web map
  • draw a heatmap of GeoJSON points on a web map
  • show a globe view of the world in a web app

Features

  • GPU-accelerated vector tile rendering
  • Styles defined by the MapLibre Style Specification
  • Vector, raster, raster-DEM, GeoJSON, image and video sources
  • Markers, popups and navigation, geolocate, fullscreen, scale and terrain controls
  • 3D terrain, 3D building extrusions and a globe projection
  • Heatmap layers and custom WebGL layers
  • Plugin ecosystem; React and Angular bindings

Alternatives

The same job

These do what MapLibre GL JS does.

  1. Protomaps An open source map of the world in a single file
  2. Mapbox GL JS JavaScript library for interactive vector maps with Mapbox
  3. CesiumJS Open source JavaScript library for 3D globes and 2D maps in the browser
  4. OpenLayers High-performance JavaScript library for interactive web maps

Compare MapLibre GL JS with the top 3