Here are the examples of the python api bokeh.tile_providers.get_provider taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
3
View Source File : geoplot.py
License : MIT License
Project Creator : PatrikHlobil
License : MIT License
Project Creator : PatrikHlobil
def _get_background_tile(provider_name):
"""Returns a Bokeh WTMS Tile Provider Source from < provider_name>. If
< provider_name is not valid, it returns False."""
if provider_name not in TILE_PROVIDERS:
return False
return get_provider(provider_name)
def _add_backgroundtile(
3
View Source File : test_tile_providers.py
License : MIT License
Project Creator : rthorst
License : MIT License
Project Creator : rthorst
def test_unknown_vendor(self):
with pytest.raises(ValueError):
bt.get_provider("This is not a valid tile vendor")
#-----------------------------------------------------------------------------
# Dev API
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Private API
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Code
#-----------------------------------------------------------------------------