tiles#
- class BBoxTileSource(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
Has the same default tile origin as the
WMTSTileSourcebut requested tiles use a{XMIN},{YMIN},{XMAX},{YMAX}e.g.http://your.custom.tile.service?bbox={XMIN},{YMIN},{XMAX},{YMAX}.- use_latlon#
Flag which indicates option to output
{XMIN},{YMIN},{XMAX},{YMAX}in meters or latitude and longitude.
- class MercatorTileSource(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
A base class for Mercator tile services (e.g.
WMTSTileSource).- snap_to_zoom#
Forces initial extents to snap to the closest larger zoom level.
- wrap_around#
Enables continuous horizontal panning by wrapping the x-axis based on bounds of map.
Note
Axis coordinates are not wrapped. To toggle axis label visibility, use
plot.axis.visible = False.
- class QUADKEYTileSource(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
Has the same tile origin as the
WMTSTileSourcebut requests tiles using a quadkey argument instead of X, Y, Z e.g.http://your.quadkey.tile.host/{Q}.png
- class TMSTileSource(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
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.TMSTileSourcecan also be helpful in implementing tile renderers for custom tile sets, including non-spatial datasets.
- class TileSource(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
A base class for all tile source types.
In general, tile sources are used as a required input for
TileRenderer.- attribution#
Data provider attribution content. This can include HTML content.
- extra_url_vars#
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#
Resolution (plot_units / pixels) of minimum zoom level of tileset projection. None to auto-compute.
- max_zoom#
A maximum zoom level for the tile layer. This is the most zoomed-in level.
- min_zoom#
A minimum zoom level for the tile layer. This is the most zoomed-out level.
- tile_size#
Tile size in pixels (e.g. 256)
- url#
//c.tile.openstreetmap.org/{Z}/{X}/{Y}.png
- Type:
Tile service url e.g., http
- x_origin_offset#
An x-offset in plot coordinates
- y_origin_offset#
A y-offset in plot coordinates
- class WMTSTileSource(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
Behaves much like
TMSTileSourcebut 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, Stadia, Esri, and OpenStreetMap provide service which use the WMTS specification e.g.
http://c.tile.openstreetmap.org/{Z}/{X}/{Y}.png.