---
title: "leaflet.markercluster 2.0.0 Breaking Changes on npm"
description: "What each leaflet.markercluster release removed, renamed or changed: 29 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/leaflet.markercluster
last_updated: 2026-12-04
---

# leaflet.markercluster breaking changes

leaflet.markercluster 2.0.0 (November 25, 2026) is its newest release with breaking changes, 13 of them. The first: Removed DistanceGrid. Every breaking API change we have recorded in leaflet.markercluster on npm: 29 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.0.0`, released November 25, 2026. [Source repository](https://github.com/Leaflet/Leaflet.markercluster)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.0.0-beta.1](#v-2-0-0-beta-1) to [2.0.0](#v-2-0-0): 13 breaking changes in 1 version.

## leaflet.markercluster 2.0.0 breaking changes

leaflet.markercluster 2.0.0, released November 25, 2026: 13 breaking changes.

- **Removed** `DistanceGrid`  

DistanceGrid is no longer exported for direct use. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0)
- **Removed** `L.MarkerClusterGroup`  

The package no longer sets L.MarkerClusterGroup or other globals; import MarkerClusterGroup and use new MarkerClusterGroup(options). [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0)
- **Removed** `marker.__parent`  

Use group.getParent(marker) or group.getVisibleParent(marker) instead. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0)
- **Removed** `MarkerCluster.css`  

Drop the MarkerCluster.css import or link; keep MarkerCluster.Default.css. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0)
- **Removed** `MarkerClusterNonAnimated`  

MarkerClusterNonAnimated is no longer exported for direct use. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0)
- **Removed** `QuickHull`  

QuickHull is no longer exported for direct use. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0)
- **Behavior changed**  

Internet Explorer and old-browser CSS fallbacks are removed; Leaflet 1.9 or 2.0 is required. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0)
- **Behavior changed** `clusterkeypress`  

Keyboard activation on a cluster now fires clusterclick instead of clusterkeypress on Leaflet 2.0. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0)
- **Behavior changed** `getLayer`  

getLayer(id) now returns undefined instead of null for an unknown id. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0)
- **Behavior changed** `getVisibleParent`  

For a visible CircleMarker, getVisibleParent returns the marker rather than its cluster. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0)
- **Behavior changed** `MarkerClusterGroup`  

On Leaflet 2.0 subclass with class extends; extend() and initialize() still work on 1.9. Enter or Space on a cluster now fires clusterclick instead of clusterkeypress. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0)
- **Behavior changed** `MarkerClusterGroup.addLayer`  

Adding a marker to another group removes it from the first group. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0)
- **Signature changed** `MarkerCluster.unspiderfy`  

unspiderfy() no longer accepts arguments. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0)

## leaflet.markercluster 2.0.0-beta.1 breaking changes

leaflet.markercluster 2.0.0-beta.1, released November 25, 2026: 16 breaking changes.

- **Removed** `DistanceGrid`  

DistanceGrid is no longer exported for direct use. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0-beta.1)
- **Removed** `L.markerClusterGroup`  

Use new MarkerClusterGroup(options) from the ES module; the factory global is gone except in the -global build on Leaflet 1.x. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0-beta.1)
- **Removed** `L.MarkerClusterGroup`  

The package no longer sets L.MarkerClusterGroup or other globals; import MarkerClusterGroup and use new MarkerClusterGroup(options). Plain script tags should use the -global build. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0-beta.1)
- **Removed** `marker.__parent`  

Use group.getParent(marker) or group.getVisibleParent(marker) instead. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0-beta.1)
- **Removed** `MarkerCluster.css`  

Drop the MarkerCluster.css import or link; keep MarkerCluster.Default.css. Use animationDuration instead of CSS transition overrides. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0-beta.1)
- **Removed** `MarkerClusterNonAnimated`  

MarkerClusterNonAnimated is no longer exported for direct use. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0-beta.1)
- **Removed** `QuickHull`  

QuickHull is no longer exported for direct use. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0-beta.1)
- **Removed** `window.Leaflet.markercluster`  

The -src build and the window.Leaflet.markercluster global are gone; use the -global build for script tags. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0-beta.1)
- **Behavior changed**  

Internet Explorer and old-browser CSS fallbacks are removed; Leaflet 1.9 or 2.0 is required. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0-beta.1)
- **Behavior changed** `clusterkeypress`  

Keyboard activation on a cluster now fires clusterclick instead of clusterkeypress on Leaflet 2.0. [github.com](https://github.com/Leaflet/Leaflet.markercluster/releases/tag/v2.0.0-beta.1)

And 6 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
