Pre-configured tile sources for common third party tile services.
.. bokeh-enum:: Vendors
bokeh.tile_providers
get_provider
Use this function to retrieve an instance of a predefined tile provider.
provider_name (Union[str, Vendors]) – Name of the tile provider to supply. Use tile_providers.Vendors enum, or the name of a provider as string
The desired tile provider instance
WMTSTileProviderSource
ValueError, if the provider can not be found –
ValueError, if the attribution for that 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'>
CARTODBPOSITRON
Tile Source for CartoDB Tile Service
BokehDeprecationWarning – Deprecated in bokeh 1.1.0. Use get_provider instead
CARTODBPOSITRON_RETINA
Tile Source for CartoDB Tile Service (tiles at ‘retina’ resolution)
STAMEN_TERRAIN
Tile Source for Stamen Terrain Service
STAMEN_TERRAIN_RETINA
STAMEN_TONER
Tile Source for Stamen Toner Service
STAMEN_TONER_BACKGROUND
Tile Source for Stamen Toner Background Service which does not include labels
STAMEN_TONER_LABELS
Tile Source for Stamen Toner Service which includes only labels
Additional information available at:
Stamen tile service - http://maps.stamen.com/
CartoDB tile service - https://carto.com/location-data-services/basemaps/