Tile Layer
The TileLayer class serves as the base class for both RasterTileLayer and VectorTileLayer. It provides the fundamental functionality for managing tile-based layers on a map.
-
class ipyopenlayers.openlayers.TileLayer(*args: t.Any, **kwargs: t.Any)[source]
The TileLayer class serves as the foundational class for both raster and vector tile layers.
-
url
The URL template for the tile images.
- Type:
str
-
attribution
Attribution text for the tile layer.
- Type:
str, default “”
-
opacity
Opacity of the tile layer, between 0.0 and 1.0.
- Type:
float, default 1.0
-
visible
Whether the layer is visible or not.
- Type:
bool, default True
-
min_zoom
Minimum zoom level for the layer.
- Type:
int, default 0
-
max_zoom
Maximum zoom level for the layer.
- Type:
int, default 18
-
source_format
Additional format options for the tile source.
- Type:
dict