Pre-configured tile sources for common third party tile services.
Use this function to retrieve an instance of a predefined tile provider.
Name of the tile provider to supply.
Use a tile_providers.Vendors enumeration value, or the string name of one of the known providers.
tile_providers.Vendors
WMTSTileProviderSource: The desired tile provider instance
ValueError, if the specified provider can not be found
Example:
>>> from bokeh.tile_providers import get_provider, Vendors >>> get_provider(Vendors.CARTODBPOSITRON) <class 'bokeh.models.tiles.WMTSTileSource'> >>> get_provider('CARTODBPOSITRON') <class 'bokeh.models.tiles.WMTSTileSource'>
The available built-in tile providers are listed in the Vendors enum:
Vendors
Enumeration(CARTODBPOSITRON, CARTODBPOSITRON_RETINA, STAMEN_TERRAIN, STAMEN_TERRAIN_RETINA, STAMEN_TONER, STAMEN_TONER_BACKGROUND, STAMEN_TONER_LABELS, OSM, WIKIMEDIA, ESRI_IMAGERY)
Any of these values may be be passed to the get_provider function in order to obtain a tile provider to use with a Bokeh plot. Representative samples of each tile provider are shown below.
get_provider
Tile Source for CartoDB Tile Service
Tile Source for CartoDB Tile Service (tiles at ‘retina’ resolution)
Tile Source for ESRI public tiles.
Tile Source for Open Street Maps.
Tile Source for Stamen Terrain Service
Tile Source for Stamen Terrain Service (tiles at ‘retina’ resolution)
Tile Source for Stamen Toner Service
Tile Source for Stamen Toner Background Service which does not include labels
Tile Source for Stamen Toner Service which includes only labels
Tile Source for Wikimedia tile service.