maplibre-gl breaking changes
Updated December 4, 2026
On this page
Latest version 6.21.0, released December 4, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 5.0.0 to 6.20.0: 591 breaking changes in 32 versions.
- From 4.0.0 to 6.20.0: 694 breaking changes in 34 versions.
maplibre-gl 6.20.0 breaking changes
- Signature changed
ProjectionData
Was type ProjectionData<MainMatrix extends mat4 = mat4, FallbackMatrix extends mat4 = MainMatrix> = {mainMatrix: MainMatrix; tileMercatorCoords: [number, number, number, number]; clippingPlane: [number, number, number, number]... npmjs.com - Signature changed
Style.tileManagers
Was tileManagers: {[_: string]: TileManager;}; now tileManagers: Record<string, TileManager>. npmjs.com
maplibre-gl 6.19.0 breaking changes
- Removed
BoxZoomHandler._tr
BoxZoomHandler._tr was removed in maplibre-gl 6.19.0 npmjs.com - Removed
KeyboardHandler._tr
KeyboardHandler._tr was removed in maplibre-gl 6.19.0 npmjs.com - Removed
Map._resizeTransform
Map._resizeTransform was removed in maplibre-gl 6.19.0 npmjs.com - Removed
MapLibreMap._resizeTransform
MapLibreMap._resizeTransform was removed in maplibre-gl 6.19.0 npmjs.com - Signature changed
BoxZoomHandler.constructor
Was constructor(canvasContainer: HTMLElement, container: HTMLElement, options: {clickTolerance: number;}, transformProvider: TransformProvider, boxZoomEnd?: (startPos: Point$1, endPos: Point$1, originalEvent: MouseEvent) => void); now... npmjs.com - Signature changed
KeyboardHandler.constructor
Was constructor(transformProvider: TransformProvider); now constructor(camera: Camera). npmjs.com - Signature changed
Map._resizeInternal
Was _resizeInternal(constrainTransform?: boolean): void; now _resizeInternal(constrainView?: boolean): void. npmjs.com - Signature changed
Map.migrateProjection
Was migrateProjection(newTransform: ITransform, newCameraHelper: ICameraHelper): void; now migrateProjection(projection: CameraProjectionKind, worldCoordinateHelper: WorldCoordinateHelper): void. npmjs.com - Signature changed
Map.resize
Was resize(eventData?: any, constrainTransform?: boolean): this; now resize(eventData?: any, constrainView?: boolean): this. npmjs.com - Signature changed
MapLibreMap._resizeInternal
Was _resizeInternal(constrainTransform?: boolean): void; now _resizeInternal(constrainView?: boolean): void. npmjs.com
And 9 more in this version. Sign up to see every change
maplibre-gl 6.18.0 breaking changes
- Removed
BoxZoomHandler._map
BoxZoomHandler._map was removed in maplibre-gl 6.18.0 npmjs.com - Removed
CooperativeGesturesHandler._map
CooperativeGesturesHandler._map was removed in maplibre-gl 6.18.0 npmjs.com - Removed
HandlerResult.cameraAnimation
HandlerResult.cameraAnimation was removed in maplibre-gl 6.18.0 npmjs.com - Removed
Map._handlers
Map._handlers was removed in maplibre-gl 6.18.0 npmjs.com - Removed
MapLibreMap._handlers
MapLibreMap._handlers was removed in maplibre-gl 6.18.0 npmjs.com - Removed
Painter.layerOpacityFbo
Painter.layerOpacityFbo was removed in maplibre-gl 6.18.0 npmjs.com - Removed
ScrollZoomHandler._active
ScrollZoomHandler._active was removed in maplibre-gl 6.18.0 npmjs.com - Removed
ScrollZoomHandler._aroundCenter
ScrollZoomHandler._aroundCenter was removed in maplibre-gl 6.18.0 npmjs.com - Removed
ScrollZoomHandler._aroundPoint
ScrollZoomHandler._aroundPoint was removed in maplibre-gl 6.18.0 npmjs.com - Removed
ScrollZoomHandler._defaultZoomRate
ScrollZoomHandler._defaultZoomRate was removed in maplibre-gl 6.18.0 npmjs.com
And 43 more in this version. Sign up to see every change
maplibre-gl 6.17.0 breaking changes
- Signature changed
Style._placementInputsChanged
Was _placementInputsChanged(transform: ITransform, showCollisionBoxes: boolean, crossSourceCollisions: boolean): boolean; now _placementInputsChanged(transform: IReadonlyTransform, showCollisionBoxes: boolean, crossSourceCollisions... npmjs.com - Signature changed
Style._updatePlacement
Was _updatePlacement(transform: ITransform, showCollisionBoxes: boolean, fadeDuration: number, crossSourceCollisions: boolean, forceFullPlacement?: boolean): boolean; now _updatePlacement(transform: IReadonlyTransform, showCollisionBoxes... npmjs.com - Signature changed
Style._updateSources
Was _updateSources(transform: ITransform): void; now _updateSources(transform: IReadonlyTransform): void. npmjs.com
maplibre-gl 6.16.0 breaking changes
- Removed
Dispatcher.actorsPromise
Dispatcher.actorsPromise was removed in maplibre-gl 6.16.0 npmjs.com - Removed
Map._getStyleAndImages
Map._getStyleAndImages was removed in maplibre-gl 6.16.0 npmjs.com - Removed
Map._lostContextStyle
Map._lostContextStyle was removed in maplibre-gl 6.16.0 npmjs.com - Removed
MapLibreMap._getStyleAndImages
MapLibreMap._getStyleAndImages was removed in maplibre-gl 6.16.0 npmjs.com - Removed
MapLibreMap._lostContextStyle
MapLibreMap._lostContextStyle was removed in maplibre-gl 6.16.0 npmjs.com - Signature changed
getGlobalDispatcher
Was function getGlobalDispatcher(): Dispatcher; now function getGlobalDispatcher(): GlobalDispatcher. npmjs.com - Signature changed
MapOptions
Was type MapOptions = {hash?: boolean | string; interactive?: boolean; container: HTMLElement | string; bearingSnap?: number; zoomSnap?: number; attributionControl?: false | AttributionControlOptions; maplibreLogo?: boolean; logoPosition?... npmjs.com - Signature changed
RequestResponseMessageMap
Was type RequestResponseMessageMap = {[MessageType.loadDEMTile]: [WorkerDEMTileParameters, DEMData]; [MessageType.getClusterExpansionZoom]: [ClusterIDAndSource, number]; [MessageType.getClusterChildren]: [ClusterIDAndSource... npmjs.com
maplibre-gl 6.15.0 breaking changes
- Signature changed
DragRotateHandler.enable
Was enable(): void; now enable(options?: DragRotateOptions | boolean): void. npmjs.com - Signature changed
FeatureIndex.loadMatchingFeature
Was loadMatchingFeature(result: QueryResults, bucketIndex: number, sourceLayerIndex: number, featureIndex: number, filter: FeatureFilter, filterLayerIDs: Set<string> | undefined, availableImages: string[], styleLayers: {[_: string]... npmjs.com - Signature changed
FeatureIndex.lookupSymbolFeatures
Was lookupSymbolFeatures(symbolFeatureIndexes: number[], serializedLayers: {[_: string]: StyleLayer;}, bucketIndex: number, sourceLayerIndex: number, filterParams: {filterSpec: FilterSpecification; globalState: Record<string, any>;}... npmjs.com - Signature changed
GeoJSONFeature.constructor
Was constructor(vectorTileFeature: VectorTileFeatureLike, z: number, x: number, y: number, id: string | number | undefined); now constructor(vectorTileFeature: VectorTileFeatureLike, z: number, x: number, y: number, id: string | number |... npmjs.com - Signature changed
MapOptions
Was type MapOptions = {hash?: boolean | string; interactive?: boolean; container: HTMLElement | string; bearingSnap?: number; zoomSnap?: number; attributionControl?: false | AttributionControlOptions; maplibreLogo?: boolean; logoPosition?... npmjs.com - Signature changed
MapOptions.dragRotate
Was dragRotate?: boolean; now dragRotate?: boolean | DragRotateOptions. npmjs.com - Signature changed
Tile.querySourceFeatures
Was querySourceFeatures(result: GeoJSONFeature[], params?: QuerySourceFeatureOptionsStrict): void; now querySourceFeatures(result: GeoJSONFeature[], params: QuerySourceFeatureOptionsStrict): void. npmjs.com
Older versions
29 older versions, each with its first changes. Sign up to see every change
Show 29 older versions
maplibre-gl 6.14.0 breaking changes
- Removed
Painter.frameRenderContext
Painter.frameRenderContext was removed in maplibre-gl 6.14.0 npmjs.com - Signature changed
MapOptions
Was type MapOptions = {hash?: boolean | string; interactive?: boolean; container: HTMLElement | string; bearingSnap?: number; zoomSnap?: number; attributionControl?: false | AttributionControlOptions; maplibreLogo?: boolean; logoPosition?... npmjs.com
And 4 more in this version.
maplibre-gl 6.13.0 breaking changes
- Removed
Painter.crossTileSymbolIndex
Painter.crossTileSymbolIndex was removed in maplibre-gl 6.13.0 npmjs.com - Removed
Painter.emptyProgramConfiguration
Painter.emptyProgramConfiguration was removed in maplibre-gl 6.13.0 npmjs.com
And 11 more in this version.
maplibre-gl 6.12.0 breaking changes
- Removed
GeoJSONSource._isUpdatingWorker
GeoJSONSource._isUpdatingWorker was removed in maplibre-gl 6.12.0 npmjs.com - Removed
GeoJSONSource._pendingWorkerUpdate
GeoJSONSource._pendingWorkerUpdate was removed in maplibre-gl 6.12.0 npmjs.com
And 36 more in this version.
maplibre-gl 6.11.2 breaking changes
- Removed
Map._createDelegatedListener
Map._createDelegatedListener was removed in maplibre-gl 6.11.2 npmjs.com - Removed
MapLibreMap._createDelegatedListener
MapLibreMap._createDelegatedListener was removed in maplibre-gl 6.11.2 npmjs.com
And 7 more in this version.
maplibre-gl 6.11.1 breaking changes
- Behavior changed
Attribution text is filtered against an allow list of tags and attributes, so markup not on the list is now removed. Check any custom attribution HTML that relied on tags or attributes outside the list. github.com
maplibre-gl 6.11.0 breaking changes
- Behavior changed
map.setSky
Paint, light and sky properties reading global-state now transition from the value they had when the state changed instead of snapping to the new value. github.com - Signature changed
AddProtocolAction
Was type AddProtocolAction = (requestParameters: RequestParameters, abortController: AbortController) => Promise<GetResourceResponse<any>>; now type AddProtocolAction = (requestParameters: RequestParameters, abortController... npmjs.com
And 3 more in this version.
maplibre-gl 6.10.0 breaking changes
- Removed
Marker._opacityTimeout
Marker._opacityTimeout was removed in maplibre-gl 6.10.0 npmjs.com - Removed
Painter.getTerrainDataForTile
Painter.getTerrainDataForTile was removed in maplibre-gl 6.10.0 npmjs.com
And 6 more in this version.
maplibre-gl 6.9.1 breaking changes
- Behavior changed
Map.project
Map#project now returns a point outside the viewport, on the side the location left the screen, instead of an incorrect on-screen point. Code that relies on the old returned point for locations behind the camera must be updated. github.com
maplibre-gl 6.8.0 breaking changes
- Removed
Painter.currentLayer
Painter.currentLayer was removed in maplibre-gl 6.8.0 npmjs.com - Removed
Painter.depthRangeFor3D
Painter.depthRangeFor3D was removed in maplibre-gl 6.8.0 npmjs.com
And 3 more in this version.
maplibre-gl 6.7.0 breaking changes
- Behavior changed
Thai, Khmer, Burmese, Lao, Tibetan, Javanese and Balinese labels now wrap at word boundaries in every style instead of running on in one line, so existing label layouts will look different. github.com - Behavior changed
Map
The Map constructor now throws GPUInitializationError instead of firing an error event and returning a partially constructed map. Code that constructs a map should catch this error. github.com
And 3 more in this version.
maplibre-gl 6.6.0 breaking changes
- Removed
Painter.maybeDrawCoords
Painter.maybeDrawCoords was removed in maplibre-gl 6.6.0 npmjs.com - Removed
Painter.terrainFacilitator.coordsDirty
Painter.terrainFacilitator.coordsDirty was removed in maplibre-gl 6.6.0 npmjs.com
And 3 more in this version.
maplibre-gl 6.5.0 breaking changes
- Removed
ImageSource.perspectiveTransform
ImageSource.perspectiveTransform was removed in maplibre-gl 6.5.0 npmjs.com
maplibre-gl 6.4.1 breaking changes
- Behavior changed
CustomRenderMethodInput.defaultProjectionData.projectionTransition
Custom layers previously got a hardcoded projectionTransition of 1 during the globe/mercator transition; they now receive the live value, so custom layers that read it will see different values. github.com
maplibre-gl 6.4.0 breaking changes
- Removed
ImageSource._request
ImageSource._request was removed in maplibre-gl 6.4.0 npmjs.com - Removed
Marker._originalTabIndex
Marker._originalTabIndex was removed in maplibre-gl 6.4.0 npmjs.com
And 5 more in this version.
maplibre-gl 6.3.0 breaking changes
- Signature changed
ErrorEvent
Was class ErrorEvent$1 extends Event$1; now class ErrorEvent extends Event$1<"error">. npmjs.com - Signature changed
ErrorEvent.constructor
Was constructor(error: ErrorLike, data?: any); now constructor(error: ErrorLike, data?: object). npmjs.com
And 19 more in this version.
maplibre-gl 6.1.0 breaking changes
- Removed
UpdateImageOptions.coordinates
UpdateImageOptions.coordinates was removed in maplibre-gl 6.1.0 npmjs.com - Removed
UpdateImageOptions.url
UpdateImageOptions.url was removed in maplibre-gl 6.1.0 npmjs.com
And 4 more in this version.
maplibre-gl 6.0.0 breaking changes
- Removed
The UMD bundles maplibre-gl.js and maplibre-gl-csp.js are no longer published; load the ESM build via script type=module. github.com - Removed
WebGL2 is now required; listen to the error event if no WebGL is available. github.com
And 354 more in this version.
maplibre-gl 6.0.0-22 breaking changes
- Behavior changed
light.position
Light position transitions are interpolated spherically instead of cartesian, so transition paths change. github.com
maplibre-gl 6.0.0-20 breaking changes
- Removed
map.transform
Map now composes a Camera and map.transform was removed; use the public API instead. github.com - Removed
transform.getMatrixForModel
The internal transform.getMatrixForModel helper was removed. github.com
maplibre-gl 6.0.0-14 breaking changes
- Renamed
pragma mapbox
Shader code relying on #pragma mapbox must change to #pragma maplibre. github.com
maplibre-gl 6.0.0-13 breaking changes
- Behavior changed
Icon scaling with offset is disabled, which changes rendering of existing styles. github.com
maplibre-gl 6.0.0-5 breaking changes
- Removed
The UMD bundles and the CSP-specific bundle were dropped; script tags must become type=module and default imports must become namespace or named imports. github.com - Behavior changed
maplibregl
Consumers using a default import must switch to a namespace or named imports. github.com
maplibre-gl 6.0.0-4 breaking changes
- Default changed
zoomLevelsToOverscale
The default was changed to 4, which can change queryRenderedFeatures results and polygon center label rendering; set it to undefined to revert. github.com
maplibre-gl 6.0.0-3 breaking changes
- Behavior changed
Consumers targeting older browsers or tooling released before 2022 may need to transpile MapLibre or update their tooling. github.com
maplibre-gl 6.0.0-2 breaking changes
- Removed
Map._showWebGL2Error
WebGL (v1) support has been removed and WebGL2 is required; listen for the webgl error via .on("error") instead of overriding Map._showWebGL2Error. github.com
maplibre-gl 6.0.0-0 breaking changes
- Behavior changed
Hash
The Hash-based location control was refactored to use URLSearchParams, so some hash strings are now parsed or normalized differently; code relying on the old parsing may break. github.com
maplibre-gl 5.0.0 breaking changes
- Removed
The unminified prod build is no longer shipped. Switch to a different build to get the library. github.com - Removed
AttributionControl._attribHTML
AttributionControl._attribHTML was removed in maplibre-gl 5.0.0 npmjs.com
And 100 more in this version.
maplibre-gl 5.0.0-pre.4 breaking changes
- Behavior changed
loadSprite now normalizes the sprite URL before calling transformRequest, so transformRequest receives a different URL than before. github.com
maplibre-gl 4.0.0 breaking changes
- Removed
ActiveTextureUnit
ActiveTextureUnit was removed in maplibre-gl 4.0.0 npmjs.com - Removed
Actor
Actor was removed in maplibre-gl 4.0.0 npmjs.com
And 442 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.