Class: QgsMapBoxGlStyleAbstractSource¶
- class qgis.core.QgsMapBoxGlStyleAbstractSource¶
Bases:
sip.wrapper
Abstract base class for MapBox GL style sources.
Warning
This is private API only, and may change in future QGIS versions
New in version 3.28.
QgsMapBoxGlStyleAbstractSource(name: str) Constructor for QgsMapBoxGlStyleAbstractSource.
QgsMapBoxGlStyleAbstractSource(
QgsMapBoxGlStyleAbstractSource
)Methods
Returns the source's name.
Sets the source's state from a
json
map.Returns the source type.
- name(self) str ¶
Returns the source’s name.
- Return type:
str
- setFromJson(self, json: Dict[str, Any], context: QgsMapBoxGlStyleConversionContext) bool ¶
Sets the source’s state from a
json
map.- Parameters:
json (Dict[str) –
context (QgsMapBoxGlStyleConversionContext) –
- Return type:
bool
- type(self) Qgis.MapBoxGlStyleSourceType ¶
Returns the source type.
- Return type: