B
    @\                 @   s|   d Z ddlmZmZmZmZ ddlZeeZ	ddl
Z
ddlZG dd dejZeedZe e_ de_ee
jd< [[
[dS )a'   Pre-configured tile sources for common third party tile services.


Attributes:

    CARTODBPOSITRON
        Tile Source for CartoDB Tile Service

        .. raw:: html

            <img src="https://tiles.basemaps.cartocdn.com/light_all/14/2627/6331.png" />

    CARTODBPOSITRON_RETINA
        Tile Source for CartoDB Tile Service (tiles at 'retina' resolution)

        .. raw:: html

            <img src="https://tiles.basemaps.cartocdn.com/light_all/14/2627/6331@2x.png" />

    STAMEN_TERRAIN
        Tile Source for Stamen Terrain Service

        .. raw:: html

            <img src="http://c.tile.stamen.com/terrain/14/2627/6331.png" />

    STAMEN_TERRAIN_RETINA
        Tile Source for Stamen Terrain Service

        .. raw:: html

            <img src="http://c.tile.stamen.com/terrain/14/2627/6331@2x.png" />

    STAMEN_TONER
        Tile Source for Stamen Toner Service

        .. raw:: html

            <img src="http://c.tile.stamen.com/toner/14/2627/6331.png" />

    STAMEN_TONER_BACKGROUND
        Tile Source for Stamen Toner Background Service which does not include labels

        .. raw:: html

            <img src="http://c.tile.stamen.com/toner-background/14/2627/6331.png" />

    STAMEN_TONER_LABELS
        Tile Source for Stamen Toner Service which includes only labels

        .. raw:: html

            <img src="http://c.tile.stamen.com/toner-labels/14/2627/6331.png" />

Additional information available at:

* Stamen tile service - http://maps.stamen.com/
* CartoDB tile service - https://carto.com/location-data-services/basemaps/

    )absolute_importdivisionprint_functionunicode_literalsNc               @   sh   e Zd ZdZdZedd Zedd Zedd Zed	d
 Z	edd Z
edd Zedd ZdS )_TileProvidersModulez&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors,&copy; <a href="https://cartodb.com/attributions">CartoDB</a>zMap tiles by <a href="https://stamen.com">Stamen Design</a>, under <a href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="https://openstreetmap.org">OpenStreetMap</a>, under %s.c             C   s   ddl m} |d| jdS )Nr   )WMTSTileSourcez=https://tiles.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png)urlattribution)bokeh.models.tilesr   _CARTO_ATTRIBUTION)selfr    r   3lib/python3.7/site-packages/bokeh/tile_providers.pyCARTODBPOSITRONz   s    z$_TileProvidersModule.CARTODBPOSITRONc             C   s   ddl m} |d| jdS )Nr   )r   z@https://tiles.basemaps.cartocdn.com/light_all/{z}/{x}/{y}@2x.png)r   r	   )r
   r   r   )r   r   r   r   r   CARTODBPOSITRON_RETINA   s    z+_TileProvidersModule.CARTODBPOSITRON_RETINAc             C   s   ddl m} |d| jd dS )Nr   )r   z.http://tile.stamen.com/terrain/{Z}/{X}/{Y}.pngzE<a href="https://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>)r   r	   )r
   r   _STAMEN_ATTRIBUTION)r   r   r   r   r   STAMEN_TERRAIN   s    z#_TileProvidersModule.STAMEN_TERRAINc             C   s   ddl m} |d| jd dS )Nr   )r   z1http://tile.stamen.com/terrain/{Z}/{X}/{Y}@2x.pngzE<a href="https://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>)r   r	   )r
   r   r   )r   r   r   r   r   STAMEN_TERRAIN_RETINA   s    z*_TileProvidersModule.STAMEN_TERRAIN_RETINAc             C   s   ddl m} |d| jd dS )Nr   )r   z,http://tile.stamen.com/toner/{Z}/{X}/{Y}.pngz:<a href="https://www.openstreetmap.org/copyright">ODbL</a>)r   r	   )r
   r   r   )r   r   r   r   r   STAMEN_TONER   s    z!_TileProvidersModule.STAMEN_TONERc             C   s   ddl m} |d| jd dS )Nr   )r   z7http://tile.stamen.com/toner-background/{Z}/{X}/{Y}.pngz:<a href="https://www.openstreetmap.org/copyright">ODbL</a>)r   r	   )r
   r   r   )r   r   r   r   r   STAMEN_TONER_BACKGROUND   s    z,_TileProvidersModule.STAMEN_TONER_BACKGROUNDc             C   s   ddl m} |d| jd dS )Nr   )r   z3http://tile.stamen.com/toner-labels/{Z}/{X}/{Y}.pngz:<a href="https://www.openstreetmap.org/copyright">ODbL</a>)r   r	   )r
   r   r   )r   r   r   r   r   STAMEN_TONER_LABELS   s    z(_TileProvidersModule.STAMEN_TONER_LABELSN)__name__
__module____qualname__r   r   propertyr   r   r   r   r   r   r   r   r   r   r   r   j   s   r   zbokeh.tile_providers)r   r   r   r   r   r   r   )__doc__Z
__future__r   r   r   r   ZloggingZ	getLoggerr   logsystypes
ModuleTyper   strZ_mod__all__modulesr   r   r   r   <module>B   s   
L
