Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

maplibre-gl-js

> 编程语言
Open source

MapLibre GL JS - Interactive vector tile maps in the browser

11.2K stars0 likes2 views
WebsiteGitHub

About

MapLibre GL JS - Interactive vector tile maps in the browser

MapLibre GL JS

MapLibre GL JS is an open-source library for publishing maps on your websites or webview based apps. Fast displaying of maps is possible thanks to GPU-accelerated vector tile rendering.

It originated as an open-source fork of mapbox-gl-js, before their switch to a non-OSS license in December 2020. 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.

Getting Started

Include the CSS file in the <head> of your HTML file.

xml
<link href='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.css' rel='stylesheet' />

Include the following code in the <body> of your HTML file.

xml

<script type='module'>
import * as maplibregl from 'https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.mjs';

const map = new maplibregl.Map({
  container: 'map',
  style: 'https://demotiles.maplibre.org/style.json', // stylesheet location
  center: [-74.5, 40], // starting position [lng, lat]
  zoom: 9 // starting zoom
});
</script>

Enjoy the map!


Documentation

Full documentation for this library is available here.

Check out the features through examples.

Showcases

Want an example? Have a look at the official MapLibre GL JS Documentation.

Use MapLibre GL JS bindings for React and Angular. Find more at awesome-maplibre.


Contribution

Getting Involved

Join the #maplibre slack channel at OSMUS: get an invite at https://slack.openstreetmap.us/ Read the CONTRIBUTING.md guide in order to get familiar with how we do things around here.

Avoid Fragmentation

If you depend on a free software alternative to mapbox-gl-js, please consider joining our effort! Anyone with a stake in a healthy community-led fork is welcome to help us figure out our next steps. We welcome contributors and leaders! MapLibre GL JS already represents the combined efforts of a few early fork efforts, and we all benefit from "one project" rather than "our way". If you know of other forks, please reach out to them and direct them here.

MapLibre GL JS is developed following Semantic Versioning (2.0.0).

Sponsors

We thank everyone who supported us financially in the past and special thanks to the people and organizations who support us with recurring donations!

Read more about the MapLibre Sponsorship Program at https://maplibre.org/sponsors/.

Gold:

Silver:

Backers and Supporters:


Thank you Mapbox

We'd like to acknowledge the amazing work Mapbox has contributed to open source. The open source community is sad to part ways with them, but we simultaneously feel grateful for everything they already contributed. mapbox-gl-js 1.x is an open source achievement that now lives on as maplibre-gl. We're proud to develop on the shoulders of giants, thank you Mapbox ‍♀️.

Please keep in mind: Unauthorized backports are the biggest threat to the MapLibre project. It is unacceptable to backport code from mapbox-gl-js, which is not covered by the former BSD-3 license. If you are unsure about this issue, please ask!


License

MapLibre GL JS is licensed under the 3-Clause BSD license.

Issues· 289 open

View all issuesOpen on GitHub
  • #8542

    A layer filter using ["id"] never matches string ids promoted with promoteId

    bugenhancementPR is more than welcomedUpdated Sep 28, 2026
  • #6744

    Map.flyTo padding not being cleared -> fitBounds is summing it up with it's own padding argument.

    bugenhancementPR is more than welcomedUpdated Sep 28, 2026
  • #4961

    fill-color-transition not honored on first 1-2 transitions, if the fill-color is an expression

    bugPR is more than welcomedUpdated Sep 28, 2026
  • #7640

    [Tracking] Graphics Modernization (GM)

    enhancementperformancemetaUpdated Sep 28, 2026
  • #8549

    Terrain: after a jumpTo the camera drops 3.7 km while the DEM loads, then climbs 4.8 km in one frame

    bugterrainUpdated Sep 28, 2026
  • #7149

    source.setUrl does not abort in-flight raster tile requests (tilejson completed)

    bugPR is more than welcomedUpdated Sep 28, 2026
  • #8572

    Version 7 breaking changes

    Updated Sep 28, 2026
  • #8349

    Map occasionally slips to opposite direction when dragging

    need more infoUpdated Sep 24, 2026
  • #8539

    Zoom scroll can land inside the terrain

    Updated Sep 23, 2026
  • #6711

    Color terrain by normal-derived attributes: slope, aspect, curvature, matcap etc

    Updated Sep 23, 2026

> Tags

TypeScripthacktoberfestmaplibremaplibre-glmaplibre-gl-js

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言