Yes. Leaflet and MapLibre GL JS are both free, open-source libraries, and both allow commercial use. You can build a paid product on either without paying a license fee. What you may pay for is map data: the tiles drawn under your features. This guide explains what each license asks of you, where costs come from, and how Geoman's Free and Pro editions fit in.
This is a practical overview, not legal advice. Read the license texts for your situation.
Leaflet: BSD 2-Clause
Leaflet is licensed under the BSD 2-Clause license. It lets you use, modify and redistribute Leaflet, including in closed-source commercial products. The main condition is to keep Leaflet's copyright notice and license text with the copies you distribute. Bundlers usually keep license comments, or you can list them on a third-party notices page.
There is no paid Leaflet edition and no usage-based fee. "Leaflet pricing" really means the price of the tiles you show.
MapLibre GL JS: BSD 3-Clause
MapLibre GL JS is licensed under the BSD 3-Clause license. It has the same permissions as Leaflet's license, plus one more condition: you may not use the contributors' names to endorse your product without permission. MapLibre needs no account or access token of its own.
MapLibre started as a fork of Mapbox GL JS 1.x, before Mapbox moved version 2 to a proprietary license in December 2020. That is why "MapLibre pricing" is zero, while Mapbox GL JS is billed by map loads. See MapLibre vs Mapbox for the full comparison.
What does cost money: map tiles
Neither library ships map data. You choose a tile source, and that is where costs and terms come in:
- Self-hosted tiles. Serve vector tiles or a single PMTiles file from your own storage. You pay only for hosting and bandwidth.
- Commercial tile providers. Many providers sell raster and vector tiles for Leaflet and MapLibre, usually with a free tier and usage-based pricing.
- OpenStreetMap. OpenStreetMap data is free under the ODbL license and requires attribution, such as "© OpenStreetMap contributors". The OpenStreetMap Foundation's own tile servers have a usage policy and are not meant for heavy production traffic.
Whatever you choose, show the attribution your data and tile provider require.
Summary
| Leaflet | MapLibre GL JS | Mapbox GL JS v2+ | |
|---|---|---|---|
| License | BSD 2-Clause | BSD 3-Clause | Mapbox Terms of Service |
| Free for commercial use | Yes | Yes | No; billed by map loads |
| Account or token needed | No | No | Yes |
| Tiles | Any provider or self-hosted | Any provider or self-hosted | Mapbox |
Where Geoman fits
Leaflet and MapLibre show maps. Geoman adds drawing and editing: drawing shapes, moving vertices, snapping, cutting and more.
- Geoman Free (Leaflet, MapLibre and Mapbox) is open source under the MIT license and free for commercial use. It covers drawing, editing, dragging, rotation, cutting and snapping.
- Geoman Pro adds advanced tools such as splitting, scaling, measurements, auto tracing and lasso selection, with support. It needs a commercial license. A MapLibre/Mapbox-Geoman Pro license covers both adapters; Leaflet-Geoman Pro is licensed separately.
Not sure which library to start with? Read Leaflet vs MapLibre, then try the Leaflet demo or the MapLibre demo.