Tile Layers#

class RasterWebTile(url: str, options: dict[str, str | bool | int | float] | None = None, kind: str = 'raster_web_tile')[source]#

A class for the background tile layer of Leaflet map that uses a raster tile server as the source of the tiles.

The available options can be found at: https://leafletjs.com/reference.html#tilelayer

url: str#
options: dict[str, str | bool | int | float] | None = None#
kind: str = 'raster_web_tile'#
classmethod from_xyzservices(provider: TileProvider) RasterWebTile[source]#

Create a RasterWebTile from an xyzservices TileProvider.

Parameters:

provider – The xyzservices TileProvider to use.

Returns:

A RasterWebTile instance.

to_dict() dict[source]#
class WMSWebTile(url: str, options: dict[str, str | bool | int | float] | None = None, kind: str = 'wms_web_tile')[source]#

A class for the background tile layer of Leaflet map that uses a WMS service as the source of the tiles.

The available options can be found at: https://leafletjs.com/reference.html#tilelayer-wms

kind: str = 'wms_web_tile'#
classmethod from_xyzservices(provider: TileProvider) RasterWebTile#

Create a RasterWebTile from an xyzservices TileProvider.

Parameters:

provider – The xyzservices TileProvider to use.

Returns:

A RasterWebTile instance.

options: dict[str, str | bool | int | float] | None = None#
to_dict() dict#
url: str#