Class: QgsMapBoxGlStyleRasterSource¶
- class qgis.core.QgsMapBoxGlStyleRasterSource¶
Bases:
QgsMapBoxGlStyleAbstractSource
Encapsulates a MapBox GL style raster source.
Warning
This is private API only, and may change in future QGIS versions
New in version 3.28.
QgsMapBoxGlStyleRasterSource(name: str) Constructor for QgsMapBoxGlStyleRasterSource.
QgsMapBoxGlStyleRasterSource(
QgsMapBoxGlStyleRasterSource
)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.
- param json:
Returns the associated tile size.
Returns the list of tile sources.
Returns a new raster layer representing the raster source, or
None
if the source cannot be represented as a raster layer.- rtype:
Qgis.MapBoxGlStyleSourceType
- attribution(self) str ¶
Returns the source’s attribution text.
- Return type:
str
- maximumZoom(self) int ¶
Returns the maximum tile zoom for which tiles are available.
See also
- Return type:
int
- minimumZoom(self) int ¶
Returns the minimum tile zoom for which tiles are available.
See also
- Return type:
int
- setFromJson(self, json: Dict[str, Any], context: QgsMapBoxGlStyleConversionContext) bool ¶
- Parameters:
json (Dict[str) –
context (QgsMapBoxGlStyleConversionContext) –
- Return type:
bool
- tileSize(self) int ¶
Returns the associated tile size.
- Return type:
int
- tiles(self) List[str] ¶
Returns the list of tile sources.
- Return type:
List[str]
- toRasterLayer(self) QgsRasterLayer ¶
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:
- type(self) Qgis.MapBoxGlStyleSourceType ¶
- Return type: