Class: QgsMapBoxGlStyleRasterSource¶
Encapsulates a MapBox GL style raster source.
Warning
This is private API only, and may change in future QGIS versions
Added in version 3.28.
Class Hierarchy¶
Base classes¶
Abstract base class for MapBox GL style sources. |
Methods
Returns the source's attribution text. |
|
Returns the maximum tile zoom for which tiles are available. |
|
Returns the minimum tile zoom for which tiles are available. |
|
Returns the associated tile size. |
|
Returns the list of tile sources. |
|
Returns a new raster layer representing the raster source, or |
- class qgis.core.QgsMapBoxGlStyleRasterSource[source]¶
Bases:
QgsMapBoxGlStyleAbstractSource
- __init__(name: str | None)
Constructor for QgsMapBoxGlStyleRasterSource.
- Parameters:
name (Optional[str])
- __init__(a0: QgsMapBoxGlStyleRasterSource)
- Parameters:
- maximumZoom(self) int [source]¶
Returns the maximum tile zoom for which tiles are available.
See also
- Return type:
int
- minimumZoom(self) int [source]¶
Returns the minimum tile zoom for which tiles are available.
See also
- Return type:
int
- toRasterLayer(self) QgsRasterLayer | None [source]¶
Returns a new raster layer representing the raster source, or
None
if the source cannot be represented as a raster layer.The caller takes ownership of the returned layer.
- Return type:
Optional[QgsRasterLayer]