bokeh.tile_providers.get_provider

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 7

3 Source : geoplot.py
with MIT License
from 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 Source : test_tile_providers.py
with MIT License
from 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
#-----------------------------------------------------------------------------