node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป



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


Leaflet-providers providers are refered to with a provider[.<variant>]-string. Let's say you want to add the nice Watercolor style from Stamen to your map, you pass Stamen.Watercolor to the L.tileLayer.provider-constructor, which will return a L.TileLayer instance for Stamens Watercolor tile layer.

// add Stamen Watercolor to map.


Leaflet-providers provides tile layers from different providers, including OpenStreetMap, MapQuestOpen, Stamen, Esri and OpenWeatherMap. The full listing of free to use layers can be previewed. The page will show you the name to use with leaflet-providers.js and the code to use it without dependencies.

Providers requiring registration

In addition to the providers you are free to use, we support some layers which require registration.

HERE (formerly Nokia).

In order to use HERE basemaps, you must register. With your app_id and app_code specified in the options. Available HERE layers

For example:

L.tileLayer.provider('HERE.terrainDay', {
    app_id: 'insert ID here',
    app_code: 'insert ID here'


In order to use Mapbox maps, you must register. If your user name is YourName and your map is called MyMap you can add it with



In order to use ArcGIS maps, you must register and abide by the terms of service. Available Esri layers:

  • Esri.WorldStreetMap
  • Esri.DeLorme
  • Esri.WorldTopoMap
  • Esri.WorldImagery
  • Esri.WorldTerrain
  • Esri.WorldShadedRelief
  • Esri.WorldPhysical
  • Esri.OceanBasemap
  • Esri.NatGeoWorldMap
  • Esri.WorldGrayCanvas


This work was inspired from, and originally created by Stefan Seelmann.