mapbox / mapbox/mapbox-gl-leaflet

📢 Leaflet V2.0 Coming Soon

Open
#165 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
546
Forks
148
PR merge metrics
No merged PRs in 30d

Description

Dear Leaflet Plugin Maintainer,

We’re excited to announce the release of the **Leaflet V2.0 alpha version**! 🎉
This marks a significant step toward modernizing Leaflet’s architecture and aligning it with the modern JavaScript ecosystem.

## ⚠️ Key Changes in Leaflet 2.0

To ensure your plugin remains compatible, please take note of the following important updates:

- **Factory methods have been replaced by constructors:**
`L.marker(latlng)` ➜ `new Marker(latlng)`

- **The global `L` object has been removed:**
Use **explicit imports** instead:
`import { Marker } from 'leaflet'`

- **Util methods have been replaced with native browser methods:**
`Util.isArray()` ➜ `Array.isArray()`

- **Pointer events support:**
Pointer events are now supported in place of mouse and touch events.

🔗 **Read the full announcement and changelog:**
https://leafletjs.com/2025/05/18/leaflet-2.0.0-alpha.html

---

## 🔧 What You Can Do Now

- Test your plugin with the **Leaflet 2.0 alpha** release.
- **Update your code** to reflect the changes.
- **Report any issues or feedback** on our GitHub repo: https://github.com/Leaflet/Leaflet
- Update the [`compatible-v2`](https://github.com/Leaflet/Leaflet/blob/647f52677bd608992aa9f8cad1db34fe1645d762/docs/_plugins/template.md?plain=1#L10) flag of your plugin to make it visible on the [Plugins](https://leafletjs.com/plugins.html) page.

Our **target for the stable release is November 2025**, and we’d love your help to ensure the Leaflet plugin ecosystem is fully prepared.

Thank you for your continued contributions to the Leaflet community!

Cheers,
**The Leaflet Team**

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Leaflet 2.0 alpha announcement and the referenced docs/_plugins/template.md compatible-v2 flag. The issue does not identify a repository file to update or define a verifiable completion condition, so the required scope must be clarified before work begins.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.