finds.dev← search

// the find

leaflet-extras/leaflet-providers

★ 2,369 · JavaScript · BSD-2-Clause · updated Jun 2026

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

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.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →