bokeh.models.tiles¶
-
class
BBoxTileSource(**kwargs)[source]¶ Bases:
bokeh.models.tiles.MercatorTileSourceThe BBoxTileSource has the same default tile origin as the WMTSTileSource but requested tiles use a
{XMIN},{YMIN},{XMAX},{YMAX}e.g.http://your.custom.tile.service?bbox={XMIN},{YMIN},{XMAX},{YMAX}.
-
class
MercatorTileSource(**kwargs)[source]¶ Bases:
bokeh.models.tiles.TileSourceA base class for Mercator tile services (e.g.``WMTSTileSource``).
-
class
QUADKEYTileSource(**kwargs)[source]¶ Bases:
bokeh.models.tiles.MercatorTileSourceThe QUADKEYTileSource has the same tile origin as the WMTSTileSource but requests tiles using a quadkey argument instead of X, Y, Z e.g.
http://your.quadkey.tile.host/{Q}.png
-
class
TMSTileSource(**kwargs)[source]¶ Bases:
bokeh.models.tiles.MercatorTileSourceThe TMSTileSource contains tile config info and provides urls for tiles based on a templated url e.g.
http://your.tms.server.host/{Z}/{X}/{Y}.png. The defining feature of TMS is the tile-origin in located at the bottom-left.The TMSTileSource can also be helpful in implementing tile renderers for custom tile sets, including non-spatial datasets.
-
class
TileSource(**kwargs)[source]¶ Bases:
bokeh.model.ModelA base class for all tile source types.
In general, tile sources are used as a required input for
TileRenderer.-
attribution¶ property type:
StringData provider attribution content. This can include HTML content.
-
extra_url_vars¶ property type:
Dict(String,Any)A dictionary that maps url variable template keys to values.
These variables are useful for parts of tile urls which do not change from tile to tile (e.g. server host name, or layer name).
-
initial_resolution¶ property type:
FloatResolution (plot_units / pixels) of minimum zoom level of tileset projection. None to auto-compute.
-
max_zoom¶ property type:
IntA maximum zoom level for the tile layer. This is the most zoomed-in level.
-
min_zoom¶ property type:
IntA minimum zoom level for the tile layer. This is the most zoomed-out level.
-
url¶ property type:
StringTile service url e.g., http://c.tile.openstreetmap.org/{Z}/{X}/{Y}.png
-
-
class
WMTSTileSource(**kwargs)[source]¶ Bases:
bokeh.models.tiles.MercatorTileSourceThe
WMTSTileSourcebehaves much likeTMSTileSourcebut has its tile-origin in the top-left.This is the most common used tile source for web mapping applications. Such companies as Google, MapQuest, Stamen, Esri, and OpenStreetMap provide service which use the WMTS specification e.g.
http://c.tile.openstreetmap.org/{Z}/{X}/{Y}.png.