finds.dev

leaflet-extras/leaflet-providers

An extension to Leaflet that contains configurations for various free tile providers.

View on GitHubHomepage ↗

★ 2,369JavaScriptBSD-2-Clauseupdated Jun 2026

// the take

A Leaflet plugin that centralizes tile provider configurations so you don't hand-write URLs and attribution strings for OpenStreetMap, Esri, Stadia, and 30+ others. One-liner to swap providers. Aimed at anyone building a web map who doesn't want to bookmark tile provider docs.

The preview page at leaflet-extras.github.io is genuinely useful — you can visually compare all providers before committing. The provider string API is clean: one argument replaces a URL template, subdomains list, attribution, and max-zoom config. Active enough that the Stamen-to-Stadia migration was handled promptly and documented. Dependabot and CI are wired up, so the package doesn't silently rot.

The entire library is one 1600-line JS file with provider configs embedded as a giant data object — no tree-shaking possible, you ship all 200+ providers to load two. No TypeScript types shipped or maintained; you're on your own with autocomplete for provider strings. Some providers in the list have drifted (tile URLs change, services sunset) and the only way to notice is a broken map. The 'free' label is loose — several providers require registration and have usage caps that will surprise you at production traffic.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
2,369
Forks
738
Language
JavaScript
License
BSD-2-Clause
Last commit
11 Jun 2026

// nearby

If leaflet-providers isn't quite it.

All repos →