bokeh.tile_providers¶
Pre-configured tile sources for common third party tile services.
-
.. bokeh-enum:: Vendors - Module
bokeh.tile_providers
-
get_provider¶ Use this function to retrieve an instance of a predefined tile provider.
- Parameters
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
- Returns
The desired tile provider instance
- Return type
WMTSTileProviderSource
- Raises
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
- Warns
BokehDeprecationWarning – Deprecated in bokeh 1.1.0. Use get_provider instead

-
CARTODBPOSITRON_RETINA¶ Tile Source for CartoDB Tile Service (tiles at ‘retina’ resolution)
- Warns
BokehDeprecationWarning – Deprecated in bokeh 1.1.0. Use get_provider instead

-
STAMEN_TERRAIN¶ Tile Source for Stamen Terrain Service
- Warns
BokehDeprecationWarning – Deprecated in bokeh 1.1.0. Use get_provider instead

-
STAMEN_TERRAIN_RETINA¶ Tile Source for Stamen Terrain Service
- Warns
BokehDeprecationWarning – Deprecated in bokeh 1.1.0. Use get_provider instead

-
STAMEN_TONER¶ Tile Source for Stamen Toner Service
- Warns
BokehDeprecationWarning – Deprecated in bokeh 1.1.0. Use get_provider instead

-
STAMEN_TONER_BACKGROUND¶ Tile Source for Stamen Toner Background Service which does not include labels
- Warns
BokehDeprecationWarning – Deprecated in bokeh 1.1.0. Use get_provider instead

-
STAMEN_TONER_LABELS¶ Tile Source for Stamen Toner Service which includes only labels
- Warns
BokehDeprecationWarning – Deprecated in bokeh 1.1.0. Use get_provider instead

Additional information available at:
Stamen tile service - http://maps.stamen.com/
CartoDB tile service - https://carto.com/location-data-services/basemaps/