MapLibre GL JS is a community led fork derived from mapbox-gl-js prior to their switch to a non-OSS license. It’s a web mapping library based on WebGL.

Using MapLibre GL JS for serving OpenMapTiles tileset is the most common use case.

Reference the Style

Create an HTML page and include the MapLibre GL JS viewer. You need to point the style to an HTTP endpoint of your Mapbox GL style specification JSON.

<!DOCTYPE html>
    <meta charset='utf-8' />
    <title>OpenMapTiles OSM Bright style</title>
    <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
    <script src="[email protected]/dist/maplibre-gl.js"></script>
    <link href="[email protected]/dist/maplibre-gl.css" rel="stylesheet" />
        body { margin:0; padding:0; }
        #map { position:absolute; top:0; bottom:0; width:100%; }
    <div id='map'></div>
        var map = new maplibregl.Map({
            container: 'map',
            style: '<key>',
            center: [8.5456, 47.3739],
            zoom: 11

Use the OpenMapTiles styles

All OpenMapTiles styles can be referenced directly in a viewer.

  • OSM Bright:
  • Positron:
  • Dark Matter:
  • Klokantech Basic:

Fonts and Sprites

MapLibre GL JS requires fonts being packaged as PBFs and symbols packaged as sprites. Check the Mapbox GL style specification documentation for OpenMapTiles to create your own fonts and sprites packages. is an open-source project from OMT community and MapTiler who provides Maps API.
See an example of use-case on the map of London. Share this page on