Skip to content

Releases: maplibre/maplibre-gl-js

v6.0.0-9

08 May 20:45
Immutable release. Only release title and notes can be modified.
af9af4d

Choose a tag to compare

v6.0.0-9 Pre-release
Pre-release

✨ Features and improvements

  • Adopt isolatedDeclarations and switch dts emitter from tsgo to oxc (#7566) (by @birkskyum)

🐞 Bug fixes

  • Fix feature state bulk remove + feature set per-id set does not remove state of first feature (#7554) (by @xavierjs)
  • Remove error when actor doesn't have a registered message type for better usability of custom messages in workers (#7589) (by @HarelM)
  • Auto-load worker module for CDN usage (#7595) (by @birkskyum)
  • Fix Large number of feature state keys leads to zoom lag when loading cached tiles (#7590) (by @xavierjs)

v6.0.0-8

03 May 15:36
Immutable release. Only release title and notes can be modified.
ac1ca72

Choose a tag to compare

v6.0.0-8 Pre-release
Pre-release

✨ Features and improvements

v6.0.0-7

03 May 11:35
Immutable release. Only release title and notes can be modified.
b0de948

Choose a tag to compare

v6.0.0-7 Pre-release
Pre-release

✨ Features and improvements

  • Replace dts-bundle-generator with rolldown-plugin-dts for 78.2x faster .d.ts generation. (#7564) (by @birkskyum)
  • Replace ts-node with Node 24's native TypeScript support for build scripts. (#7565) (by @birkskyum)
  • Bump typescript to v7 beta - 3.5x faster typecheck (#7556) (by @birkskyum)

🐞 Bug fixes

  • ⚠️ Fix transparent, overlapping lines creating artefacts. This is fixed for line-opacity, but purposefully not for transparent line-color properties, thus still allowing transparent colors to stack their effect. (#7490) (by @CommanderStorm)
  • Fix issue when map's max zoom and source max zoom are close to eachother (#7567) (by @HarelM)

v6.0.0-6

01 May 10:27
Immutable release. Only release title and notes can be modified.
954f81d

Choose a tag to compare

v6.0.0-6 Pre-release
Pre-release

✨ Features and improvements

  • Add a new map creation option, terrainSkirtLength, which allows the removal of visually unappealing vertical artifacts when using a terrain along with a transparent background (#7523) (by @safwat-halaby)
  • Bundle with Rolldown instead of Rollup (#7555) (by @birkskyum)
  • Optimization for Feature State: Replace String-Indexed Object with Array (up to 3.4X speedup) (#7550) (by @xavierjs)

v6.0.0-5

29 Apr 11:36
Immutable release. Only release title and notes can be modified.
52e1353

Choose a tag to compare

v6.0.0-5 Pre-release
Pre-release

✨ Features and improvements

  • ⚠️ Switch to an ESM-only distribution (maplibre-gl.mjs). The UMD bundles (maplibre-gl.js, maplibre-gl-csp.js) are no longer published. The CSP-specific bundle is also dropped: the ESM build loads its worker as a real URL, so worker-src blob: is no longer required. Consumers using <script src=".../maplibre-gl.js"> must switch to <script type="module">, and consumers using import maplibregl from 'maplibre-gl' must switch to import * as maplibregl from 'maplibre-gl' or named imports. See the docs ESM section for migration steps. (#6254) (by @birkskyum)

v6.0.0-4

29 Apr 07:59
Immutable release. Only release title and notes can be modified.
5f0c671

Choose a tag to compare

v6.0.0-4 Pre-release
Pre-release

✨ Features and improvements

  • ⚠️ zoomLevelsToOverscale default value was changed to 4 to support better handling of high level zoom with dense labels. This might have a side effect of changing a bit the results of queryRenderedFeatures and some rendering of polygon center label. To revert this change, set the value to undefined (#7537) (by @HarelM)

v6.0.0-3

29 Apr 06:37
Immutable release. Only release title and notes can be modified.
16d719e

Choose a tag to compare

v6.0.0-3 Pre-release
Pre-release

✨ Features and improvements

  • ⚠️ Remove the second parameter from GeoJSONSource.setData (waitForCompletion) and remove the return value of this to allow future changes to the API (#7538) (by @HarelM)
  • ⚠️ The TypeScript target has been updated to ES2022.
    This results in smaller bundles and improved runtime performance by relying on modern JavaScript features and reducing transpilation. Consumers targeting browsers or using some tooling released before 2022 may need to transpile MapLibre or update. This change also aligns all internal build configurations to a single target instead of ES2016 + ES2019, avoiding inconsistencies in emitted code. (#7404) (by @CommanderStorm)

v6.0.0-2

28 Apr 20:28
Immutable release. Only release title and notes can be modified.
8e0566b

Choose a tag to compare

v6.0.0-2 Pre-release
Pre-release

✨ Features and improvements

  • ⚠️ WebGL (v1) support has been removed; WebGL2 is now required.
    In practical terms, this will not change how you interact with the map.
    This enables performance improvements (e.g. line opacity), Terrain3D enhancements, and several bug fixes.
    WebGL2 support has been widely available for years, and usage of the legacy path had plateaued, so maintaining it no longer justified the added complexity.
    To ease this breaking change, we have also refactored how we handle the case that no webgl is avaliableWebGL (e.g. due to browser restrictions).
    You can now listen to the webgl error via .on("error"), or by overriding Map._showWebGL2Error.
    See caniuse.com/webgl2 for ecosystem support and our RFC for details. (#7453) (by @CommanderStorm)

v6.0.0-1

27 Apr 21:09
Immutable release. Only release title and notes can be modified.
26db9cb

Choose a tag to compare

v6.0.0-1 Pre-release
Pre-release

✨ Features and improvements

  • ⚠️ Support geojson nested objects, this is a breaking change as it encodes __$json__ before properties that used to be an object. It also parses them back, but this is still a breaking change if you assumed this bug existed. (#6992) (by HarelM)
  • ⚠️ Improve types for {get,set}LayoutProperty, {get,set}PaintProperty to be the actual type instead of string/any (#7481) (by @CommanderStorm)

v6.0.0-0

27 Apr 20:06
Immutable release. Only release title and notes can be modified.
ce321fd

Choose a tag to compare

v6.0.0-0 Pre-release
Pre-release

✨ Features and improvements

  • ⚠️ Refactored the Hash-based location control (the option that syncs map state to the URL like #map=5/1/2) to use URLSearchParams internally. This improves extensibility for custom use cases, but may break existing code that relies on the previous implementation. It also changes how certain edge cases are parsed—for example, strings like #10%2F3.00%2F-1.00 are now accepted, and hashes like #foo are normalized to #foo=. (#7073) (by @CommanderStorm)
  • Expose getProjectionData function in custom layer args objects (#7471) (by @kubapelc)
  • Marked package sideEffects as CSS-only in package metadata, which may improve tree-shaking and reduce bundle size in some bundlers (#7258) (by @CommanderStorm)