Tile Layers¶
Tile Layers¶
- class mesa_geo.tile_layers.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
- 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.
- kind: str = 'raster_web_tile'¶
- options: dict[str, str | bool | int | float] | None = None¶
- url: str¶
- class mesa_geo.tile_layers.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
- classmethod from_xyzservices(provider: TileProvider) RasterWebTile¶
Create a RasterWebTile from an xyzservices TileProvider.
- Parameters:
provider – The xyzservices TileProvider to use.
- Returns:
A RasterWebTile instance.
- kind: str = 'wms_web_tile'¶
- options: dict[str, str | bool | int | float] | None = None¶
- to_dict() dict¶
- url: str¶