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. |
- 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
Noneif the source cannot be represented as a raster layer.The caller takes ownership of the returned layer.
- Return type:
Optional[QgsRasterLayer]