Class: QgsMapBoxGlStyleAbstractSource¶
Abstract base class for MapBox GL style sources.
Warning
This is private API only, and may change in future QGIS versions
Added in version 3.28.
Note
This is an abstract class, with methods which must be implemented by a subclass.
The following methods must be implemented: setFromJson()
, type()
Class Hierarchy¶
Subclasses¶
Encapsulates a MapBox GL style raster source. |
Abstract Methods
Sets the source's state from a json map. |
|
Returns the source type. |
Methods
Returns the source's name. |
- class qgis.core.QgsMapBoxGlStyleAbstractSource[source]¶
Bases:
object
- __init__(name: str | None)
Constructor for QgsMapBoxGlStyleAbstractSource.
- Parameters:
name (Optional[str])
- __init__(a0: QgsMapBoxGlStyleAbstractSource)
- Parameters:
- abstract setFromJson(self, json: Dict[str, Any], context: QgsMapBoxGlStyleConversionContext | None) bool [source]¶
Sets the source’s state from a
json
map.- Parameters:
json (Dict[str, Any])
context (Optional[QgsMapBoxGlStyleConversionContext])
- Return type:
bool
- abstract type(self) Qgis.MapBoxGlStyleSourceType [source]¶
Returns the source type.
- Return type: